/*!
Theme Name: Sting
Theme URI: https://www.notion.so/luuk-arends/Sting-v1-0-1-2ae58397e72b8002af4ac6f01e333a49?source=copy_link
Author: Luuk Arends
Author URI: https://luukarends.nl
Description: Sting is a lightweight, flexible WordPress theme that cuts through the noise. Custom-built for speed and adaptability, every line of code serves a purpose. Clean, precise, and ready to shape around your vision.
Version: 1.0.1
Tested up to: 8.3
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sting
*/

/* Fonts */

/* @font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-v4-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-v4-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-v4-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
} */

/* Root */

:root {
  --white: #ffffff;
  --beige: #E7E7D8;
  --black: #000000;
  --orange: #ff9800;
  --darkgreen: #152111;
  --green: #60A241;
  --brown: #442c1d;
}

/* Body */

body {
  font-family:
    "mundial",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--beige);
}

/* Anchors */

a {
  color: var(--green);
  text-decoration: none;
  transition: all ease 0.3s;
}

/* Headings */

h1, h2, h3, h4, h5 {
  font-family: "rubik";
}

.title {
  font-family: "rubik";
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brown);
}

/* Typography */

b,
strong,
.fw-bold {
  font-weight: 400 !important;
}

/* Buttons */

.btn-primary,
.btn.active {
  background-color: var(--green);
  border-color: var(--green);
  background-color: var(--green);
  border-color: var(--green);
  padding: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .05rem;
  font-size: .925rem;
}

.btn-primary:hover, :not(.btn-check)+.btn:active {
  background-color: var(--brown);
  border-color: var(--brown);
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--orange);
  border-color: var(--orange);
  opacity: 0.65;
}

.btn-secondary {
  background-color: var(--brown);
  border-color: var(--brown);
}

.btn-secondary:hover {
  background-color: var(--black);
  border-color: var(--black);
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background-color: var(--brown);
  border-color: var(--brown);
  opacity: 0.65;
}

/* Backgrounds */

.b2b-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .05;
  z-index: -1;
}

/* Tables */

table {
  font-size: 0.925rem;
}

.table > :not(caption) > * > *,
tbody,
td,
tfoot,
th,
thead,
tr {
  background-color: transparent;
  font-weight: normal;
}

.table-wrapper {
  padding: 1rem;
  background-color: var(--white);
  border-radius: 0.375rem;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
  font-weight: normal;
}

.woocommerce table.shop_table {
  border: 0;
  background-color: var(--white);
}

/* Forms */

.info-text {
  font-size: 0.85rem;
}

.form-check-input:checked {
  background-color: var(--brown);
  border-color: var(--brown);
}

/* Login */

.login-brand {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.b2b-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-block {
  min-width: 320px;
}

/* layout */

.b2b-layout {
  display: flex;
}

.b2b-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Menu */

.b2b-nav {
  background-color: var(--white);
  padding: 2rem;
  height: 100vh;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-brand {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
}

.nav-menu {
  display: grid;
  gap: 0.5rem;
}

.nav-item {
  color: var(--brown);
  padding: 0.5rem;
  border-radius: 0.375rem;
  display: flex;
  gap: 0.5rem;
}

.nav-item.active {
  color: var(--green);
  background-color: var(--beige);
}

.nav-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.925rem;
  margin-left: auto;
}

/* Content */

.b2b-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.b2b-message {
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: var(--white);
}

.b2b-discount-badge {
  background-color: var(--white);
  color: var(--orange);
  padding: 0.6rem 1.25rem;
  font-size: 0.925rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--warm-gray);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.profile-dropdown {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.profile-avatar {
  border-radius: 50%;
}

.profile-name {
  font-weight: 600;
}

.rank-math-question {
  font-size: 1.25rem;
}

.rank-math-list-item {
  margin-bottom: 2rem;
}

/* Widgets */

.widget-title {
  font-size: 1.125rem;
}

.quick-item {
  background-color: var(--white);
  padding: 1rem;
  border-radius: 0.375rem;
  display: flex;
  justify-content: space-between;
  color: inherit;
}

/* Modals */

.modal-body {
  font-size: 0.925rem;
}

/* Products */

.product-item {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 0.375rem;
  overflow: hidden;
  height: 100%;
}

.product-media {
  position: relative;
}

.product-bookmark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 50%;
}

.product-item .product-bookmark {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.product-item .product-img {
  width: 100%;
  height: 282px;
  object-fit: cover;
}

.product-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.product-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.product-item .product-title,
.product-tooltip {
  font-size: 1.125rem;
}

.table .product-title {
  font-size: 1rem;
}

.product-info-btn {
  cursor: pointer;
}

.product-attributes,
.product-descr {
  opacity: 0.75;
  font-size: 0.925rem;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.product-stock::before {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
}

.stock-available::before {
  background-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.stock-unavailable::before {
  background-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.product-content .btn {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.table .product-img {
  border-radius: 0.375rem;
}

.table .sku {
  font-size: 0.85rem;
  opacity: 0.5;
}

.table .btn {
  font-size: .75rem;
  padding: inherit;
}

.bi-star-fill {
  color: var(--orange);
}

#infoProductImageMain {
  border-radius: 0.5rem;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

#variableProductImage,
#infoProductGallery img {
  border-radius: 0.375rem;
}

.modal-dialog .product-title {
  font-size: 1.25rem;
}

.modal-dialog .btn {
  font-size: 0.925rem;
}

.info-data,
.variable-info {
  display: flex;
  gap: 1rem;
}

.status.completed {
  color: green;
}

.status.pending {
  color: orange;
}

.status.cancelled {
  color: red;
}

/* Cart & Checkout */

.woocommerce-cart table.cart img {
  width: 50px;
  border-radius: 0.375rem;
}

.actions {
  display: none;
}

.woocommerce .quantity .qty {
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 0.5rem;
}

.cart_totals h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

body.page .woocommerce .checkout-button,
body.page .woocommerce #place_order {
  background-color: var(--green);
  border-color: var(--green);
  background-color: var(--green);
  border-color: var(--green);
  padding: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .05rem;
  font-size: .925rem;
}

body.page .woocommerce .checkout-button:hover {
  background-color: var(--brown);
  border-color: var(--brown);
}

#customer_details h3 {
  font-size: 1.25rem;
}

#customer_details #b2b_shipping_autofill_heading {
  font-size: 1rem;
}

.b2b-checkout-location-selector {
  padding: 1rem;
  background-color: #fff;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.b2b-checkout-location-selector p {
  opacity: 0.5;
}

.woocommerce-billing-fields {
  margin-bottom: 1rem;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.select2-container .select2-dropdown,
.select2-container .select2-selection {
  border: var(--bs-border-width) solid var(--bs-border-color);
}

.woocommerce form .form-row {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.select2-container .select2-selection--single {
  margin: 0;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
  float: none;
  width: auto;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.5rem;
}

.woocommerce ul#shipping_method .amount {
  font-weight: normal;
}

.woocommerce ul#shipping_method li:last-of-type {
  margin-bottom: 0;
}

.woocommerce-terms-and-conditions-wrapper {
  display: none;
}

.woocommerce-shipping-destination {
  font-size: 0.85rem;
  opacity: 0.5;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: var(--warm-gray);
}

.accept-terms {
  font-size: 0.85rem;
}

.optional {
  display: none;
}

/* Sales */

.person-created {
  font-size: 0.85rem;
  opacity: 0.5;
}

.person-item {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 1rem;
  font-size: 1rem;
}

.person-info {
  display: flex;
  justify-content: space-between;
}

/* Calculator */

#calcForm {
  display: grid;
  gap: 1rem;
}

.btn-calculate {
  justify-self: start;
}

.result-section {
  display: none;
}

.result-section.visible {
  display: block;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-heading {
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  margin-bottom: 0.5rem;
  font-size: 0.925rem;
}

.result-item {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 1rem;
  font-size: 1rem;
}

.result-label {
  font-weight: 600;
}

.result-desc {
  white-space: pre-line;
}

/* Modals */

.modal-dialog {
  max-width: 620px;
}

/* Filters */

.products-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.products-search .form-control,
#locationSearchInput {
  padding: 1rem;
  min-width: 420px;
  font-size: 0.925rem;
}

.products-options {
  display: flex;
  gap: 1rem;
}

/* Pagination */

.pagination .page-link {
  color: var(--brown);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  color: var(--orange);
  background-color: var(--linen);
  border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Shipping Notice Banner */

.woocommerce-info.sting-manual-shipping-notice {
  border-top-color: #212529;
  background-color: #f8f9fa;
  color: #333;
  margin-bottom: 2em;
  border-top-width: 3px;
  border-top-style: solid;
  font-size: 0.925rem;
}

.woocommerce-info.sting-manual-shipping-notice::before {
  color: #212529;
}

/* Forms */

.gform_heading {
  display: none !important;
}

/* Translate */

.gtranslate_wrapper .gt_switcher {
  border-radius: 0.5rem;
  font-family:
    "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;
}

.gtranslate_wrapper .gt_switcher .gt_selected a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem !important;
}

#billing_vat_number-description {
  display: none;
  margin-top: 5px;
  position: absolute;
}

/* Variable Product Modal */

#variableModal .modal-dialog {
  --bs-modal-width: 920px !important;
  max-width: 920px !important;
  width: 95% !important;
}

#variableModal .table td,
#variableModal .table th {
  vertical-align: middle;
}

/* Product Info Modal */

@media (min-width: 768px) {
  #infoModal .modal-info-dialog {
    max-width: 650px;
  }
}

.info-main-image-container {
  min-height: 280px;
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #edf2f7;
}

#infoProductGallery .info-gallery-img {
  border-radius: 6px;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

#infoProductGallery .info-gallery-img:hover {
  transform: scale(1.05);
}

/* Products Table View Layout & Spacing */
#table-view .product-table-view,
.table-wrapper .product-table-view {
  width: 100%;
}

#table-view .product-table-view th,
.table-wrapper .product-table-view th {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--brown, #442c1d);
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  border-bottom: 2px solid rgba(68, 44, 29, 0.1);
}

#table-view .product-table-view td,
.table-wrapper .product-table-view td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(68, 44, 29, 0.08);
}

#table-view .table-col-check,
.table-wrapper .table-col-check {
  width: 34px;
  padding-left: 0.75rem !important;
  padding-right: 0.25rem !important;
}

#table-view .table-col-fav,
.table-wrapper .table-col-fav {
  width: 42px;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

#table-view .table-col-fav .product-bookmark,
.table-wrapper .table-col-fav .product-bookmark {
  margin: 0 auto;
}

#table-view .table-col-img,
.table-wrapper .table-col-img {
  width: 58px;
  padding-left: 0.25rem !important;
  padding-right: 0.5rem !important;
}

#table-view .table-col-title,
.table-wrapper .table-col-title {
  min-width: 190px;
  padding-left: 0.5rem !important;
  padding-right: 0.75rem !important;
}

#table-view .table-col-cat,
.table-wrapper .table-col-cat {
  min-width: 180px;
  padding-left: 0.5rem !important;
  padding-right: 0.75rem !important;
}

#table-view .table-col-stock,
.table-wrapper .table-col-stock {
  width: 65px;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

#table-view .table-col-price,
.table-wrapper .table-col-price {
  width: 130px;
  white-space: nowrap;
  font-size: 0.9rem;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

#table-view .table-col-qty,
.table-wrapper .table-col-qty {
  width: 75px;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

#table-view .table-col-action,
.table-wrapper .table-col-action {
  width: 135px;
  padding-left: 0.5rem !important;
  padding-right: 0.75rem !important;
  white-space: nowrap;
}

/* Category boxed badges matching website */
.product-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.product-cat-badge {
  display: inline-block;
  background-color: #f2f2e8;
  color: var(--brown, #442c1d);
  border: 1px solid rgba(68, 44, 29, 0.16);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  transition: all 0.2s ease;
}

.product-cat-badge:hover {
  background-color: #e8e8dc;
  border-color: rgba(68, 44, 29, 0.3);
}

/* Product title and info tooltip in table view */
#table-view .product-title-wrap,
.table-wrapper .product-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

#table-view .product-title-text,
.table-wrapper .product-title-text {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--brown, #442c1d);
  line-height: 1.3;
}

#table-view .product-info-btn,
.table-wrapper .product-info-btn {
  color: #8c857b;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

#table-view .product-info-btn:hover,
.table-wrapper .product-info-btn:hover {
  color: var(--brown, #442c1d);
  transform: scale(1.1);
}

#table-view .sku,
.table-wrapper .sku {
  font-size: 0.78rem;
  color: #8c857b;
  margin-bottom: 2px;
  font-weight: 500;
}


