/* ============================= */
/*            FONTS              */
/* ============================= */

@font-face {
  font-family: Ghost-Regular;
  src: url("/fonts/Ghost-Regular.woff2") format('woff2');
  /** Ghost **/
}

@font-face {
  font-family: Avenir-Black;
  src: url("/fonts/Avenir-Black.woff2") format('woff2');
  /** Avenir Black **/
}

@font-face {
  font-family: Avenir-Book-01;
  src: url("/fonts/Avenir-Book-01.ttf") format('truetype');
  /** Avenir Book **/
}


/* ============================= */
/*          GLOBAL STYLES        */
/* ============================= */

body {
  font-family: Avenir-Book-01, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-weight: 400;
  font-size: 14px;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.modal-open {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

h1, h2, h3, h4 {
  font-family: Ghost-Regular, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-weight: 400;
}

h1, h2 {
  font-size: 25px;
  line-height: 50px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
}

/* ============================= */
/*           LAYOUT              */
/* ============================= */

.logo {
  width: 100%;
  max-width: 300px;
}

header {
  padding: 30px 0 10px;
  box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.2);
}

.sub-header {
  font-family: Avenir-Book-01, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 13px;
  max-width: 500px; 
  margin: 0 auto 20px; 
  line-height: 1.6;
}

/* ============================= */
/*         PROMOTIONS            */
/* ============================= */

.promo-block {
  max-width: 560px;
  margin: 15px auto;
  padding: 0 10px;
  text-align: center;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  background-color: #fafafa;
}

.promo-card__image {
  flex: 0 0 auto;
}

.promo-card__img {
  display: block;
  max-width: 100%;
  height: auto;
}

.promo-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.promo-card__title {
  font-family: Ghost-Regular, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.promo-card__description {
  font-size: 14px;
  line-height: 1.5;
}

.promo-card__end-date {
  font-size: 12px;
  font-style: italic;
  margin-top: 6px;
  text-align: right;
}

/* ============================= */
/*         FORM STYLES           */
/* ============================= */

form input {
  display: block;
  margin: 0 auto;
  text-align: center;
  border-radius: 0;
}

form input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.textBox {
  font-family: Ghost-Regular, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif !important;
  appearance: none;
  background: rgba(0, 0, 0, 0);
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  font-family: inherit;
  height: 40px;
  line-height: 40px;
  padding-left: 0;
  width: 360px;
  text-align: start;
}

/* ============================= */
/*       SELECT DROPDOWN         */
/* ============================= */

.form-select {
  font-family: Avenir-Book-01, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #000;
  height: 40px;
  width: auto;
  display: inline-block;
  border: none;
  background-color: transparent;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 50px;
  cursor: pointer;
}

.form-select:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* ============================= */
/*          FOOTER               */
/* ============================= */

.footer {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.footer .container {
  display: flex;
  width: 100%;
  justify-content: space-between; 
  align-items: center;
}

.footer-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

#lang-dropdown {
  outline: none;
  padding: 8px;
  margin-left: 0; 
  width: 100px;
}

.footer-link {
  color: #000;
}

.footer-link:hover {
  color: #000;
}

.footer-button {
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.cookie-empty {
  margin: 0;
  font-weight: 600;
}

.cookie-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background: #fff;
  color: #2b2b2b;
  font-size: 16px;
  border: 1px solid #9b9b9b;
  border-width: 1px;
  border-style: solid;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #9b9b9b;
  border-width: 1px;
  border-style: solid;
  padding: 12px 16px;
  vertical-align: top;
  word-break: normal;
}

.cookie-table th {
  font-weight: 700;
  text-align: left;
  color: #1f1f1f;
  background: #f7f7f7;
}

.cookie-table td {
  font-weight: 500;
}

.cookie-table th:nth-child(1),
.cookie-table td:nth-child(1) {
  width: 24%;
  white-space: nowrap;
}

.cookie-table th:nth-child(2),
.cookie-table td:nth-child(2) {
  width: 22%;
  white-space: nowrap;
}

.cookie-table th:nth-child(3),
.cookie-table td:nth-child(3) {
  width: 38%;
}

.cookie-table th:nth-child(4),
.cookie-table td:nth-child(4) {
  width: 16%;
  text-align: center;
  white-space: nowrap;
}

.cookie-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

@media (max-width: 768px) {
  .cookie-table {
    font-size: 13px;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 10px 8px;
  }
}

@media (max-width: 640px) {
  #cookie-modal .summary-container-wide {
    width: 92vw;
  }

  .cookie-table {
    font-size: 12px;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 8px 6px;
    white-space: normal;
  }
}


/* ============================= */
/*         REDIRECT PAGE         */
/* ============================= */

.redirect-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2001;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  backdrop-filter: blur(10px);
}

body:has(.redirect-page:not([hidden])) {
  overflow: hidden
}

.redirect-card {
  background-color: white;
  padding-top: 3%;
  padding-bottom: 1%;
  border-radius: 5px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.redirect-card .b-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  max-width: 90%;
}

.redirect-countdown {
  margin: 4px 0 8px 0;
}

.redirect-error {
  display: none;
  color: #b00020;
  margin-top: 8px;
}

.redirect-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.redirect-lang {
  width: 140px;
}

/* ============================= */
/*      FORM SECTIONS (Shared)   */
/* ============================= */

.address-section, .order-form-section {
  margin: 0 auto;
  max-width: 100%;
}

.address-header, .order-header {
  background-color: #f8f9fa;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  padding: 20px 0;
}

.address-header:hover, .order-header:hover {
  background-color: #e9ecef;
}

#address-content, #order-content,#deliverySubheader {
  max-width: 800px;
  padding: 20px 20px 0;
  margin: auto;
}

#commentsValue, .order-input {
  width: 100%;
}

.commentSection {
  padding: 10px 20px;
  
}

.commentSection .sub-header-comments {
  font-family: Avenir-Book-01, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}

.order-label {
  font-weight: bold;
  font-size: 16px;
  flex: 0 0 25%;
  text-align: left;
}

.order-price {
  font-size: 16px;
  color: #333;
  flex: 0 0 25%;
  text-align: center;
}

.order-quantity {
  flex: 0 0 25%;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.d-flex {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px; 
}

.form-static {
  white-space: pre-line;
}

.address-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.address-actions .b-button,
.address-actions .b-button-inverted {
  margin: 0;
  width: 100%;
  max-width: 280px;
}

.address-actions.has-revert {
  flex-wrap: wrap;
}

.address-actions.has-revert #confirm-address {
  flex-basis: 100%;
  width: 100%;
  max-width: 572px;
  align-self: center;
}


/* ============================= */
/*          BUTTONS              */
/* ============================= */

.b-button {
  font-family: Avenir-Book-01, HelveticaNeue, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  color: #fff;
  background: #0a0f9e;
  width: 360px;
  height: 40px;
  border: 1px solid #0a0f9e;
  margin: 0 auto;
  transition: cubic-bezier(0.3, 0.46, 0.45, 0.94) .4s;
  transition-property: background-color, color, border;
  text-decoration: none;
}

.b-button:hover {
  background-color: #e6e7f5;
  border-color: #e6e7f5;
  color: #0a0f9e;
  text-decoration: none;
}

.b-button-muted {
  background-color: #e6e7f5;
  border-color: #e6e7f5;
  color: #0a0f9e;
}

.b-button-muted:hover {
  background-color: #0a0f9e;
  border-color: #0a0f9e;
  color: #fff;
}

.b-button-muted {
  background-color: #e6e7f5;
  border-color: #e6e7f5;
  color: #0a0f9e;
}

.b-button-muted:hover {
  background-color: #0a0f9e;
  border-color: #0a0f9e;
  color: #fff;
}

.category-title {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}

.product-name {
  font-weight: 600;
  font-size: 16px;
  flex: 0 0 50%;
  text-align: left;
}

.product-price {
  font-size: 16px;
  color: #333;
  flex: 0 0 30%; 
  text-align: center; 
}

.deliverWindowSection {
  background-color: #f8f9fa;
}

.quantity-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100px;
  padding: 5px 0;
  position: relative;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  text-align: center;
  color: #000;
  outline: none;
}

.product-quantity {
  width: 100%;
  text-align: center;
  border: none;
  font-size: 16px;
  outline: none;
  font-family: inherit;
  background: none;
  -moz-appearance: textfield; 
}

.product-quantity::-webkit-outer-spin-button,
.product-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Clickable input */
.quantity-box label {
  display: none; 
}

#order-total {
  margin-bottom: 20px;

}

/* Order Summary Modal */
.summary-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 1100;
  display: none;
  justify-content: center;
  align-items: center;
}

/* Centered Summary Box */
.summary-container {
  background: white;
  padding: 20px;
  width: 400px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
}

.summary-container-wide {
  width: 460px;
  max-width: 92vw;
}

.dropship-modal .summary-container-wide {
  padding: 24px 28px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.dropship-modal .summary-content {
  flex: 1;
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
}

.dropship-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ds-field {
  margin: 0;
}

.ds-field--full {
  grid-column: 1 / -1;
}

.dropship-input {
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
  width: 95%;
}

.dropship-input:focus {
  border-color: #0a0f9e;
  box-shadow: none;
}

.summary-container-wide {
  width: 460px;
  max-width: 92vw;
}
.summary-header {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.summary-content {
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  margin-bottom: 15px;
}

#cookie-modal .summary-content {
  max-height: none;
  overflow: visible;
}

#cookie-modal .summary-container-wide {
  width: 640px;
}
.summary-qty {
  margin-left: 10px;
  min-width: fit-content;
  text-align: end;
}
.summary-item {
  text-align: left;
  font-weight: bold;
}

.summary-total {
  margin-top: 10px;
  float: right;
  font-size: 15px;
  font-weight: bold;
}

.summary-discount {
  font-size: 15px;
  font-weight: bold;
  margin-top: 5px;
  float: right;
  clear: right;
}

.summary-tax {
  font-size: 15px;
  font-weight: bold;
  margin-top: 5px;
  float: right;
  clear: right;
}

#final-order-summary .summary-total {
  float: revert;
}
#final-order-summary .summary-discount{
  float: revert;
}
#final-order-summary .summary-tax {
  float: revert;
}

/* Buttons */
.summary-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.b-button-inverted {
  transition: cubic-bezier(0.3, 0.46, 0.45, 0.94) .4s;
  transition-property: background-color, color, border;
  background-color: rgba(0, 0, 0, 0);
  border-color: #0a0f9e;
  color: #0a0f9e;
}

.b-button-inverted:hover {
  background-color: #0a0f9e;
  border-color: #0a0f9e;
  color: #e6e7f5;
  text-decoration: none;
}

#final-order-summary ul,
#summary-content ul {
  list-style: none;
  padding: 0; 
  margin: 0;
}

#final-order-summary ul li,
#summary-content ul li {
  display: flex;
  justify-content: space-between; 
  padding: 8px 0;
  font-size: 16px;
  border-bottom: 1px solid #ddd; 
}

#final-order-summary {
  margin: 0 auto;
  background: white;
  padding: 20px;
  width: 400px;
  box-shadow: none;
  text-align: center;
  position: revert;
  transform: revert;
}

/* Spinner Overlay */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000; 
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; 
  backdrop-filter: blur(10px);
}

/* Spinner Styles */
.spinner {
  border: 5px solid white;
  border-top: 5px solid #0a0f9e;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Spinner Message */
#spinner-message {
  max-width: 300px; 
  text-align: center; 
  font-size: 21px;
  font-weight: bold;
  color: white;
  margin-top: 25px; 
  padding: 0 10px; 
  word-wrap: break-word; /
}
/* Spinner Animation */
@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

/* Scroll Arrow */
.scroll-arrow {
  cursor: pointer;
  transition: transform 0.3s ease-in-out, opacity 0.3s;
  user-select: none;
}

/* Hide when scrolling is not needed */
.scroll-arrow.hidden {
  display: none;
}

/* Rotate arrow when scrolling up */
.scroll-arrow.up svg {
  transform: rotate(180deg);
}
/* ============================= */
/*         MEDIA QUERIES         */
/* ============================= */

@media (max-width: 1200px) {
  body {
    font-size: 16px;
  }
  h1, h2 {
    font-size: 30px;
    line-height: 40px;
  }
}

@media (max-width: 768px) {
  .address-actions {
    flex-direction: column;
    align-items: center;
  }

  .address-actions .b-button + .b-button,
  .address-actions .b-button-inverted + .b-button {
    margin-top: 12px;
  }

  .address-actions .b-button,
  .address-actions .b-button-inverted {
    max-width: 360px;
  }

  .address-actions.has-revert #confirm-address {
    flex-basis: auto;
    margin-top: 12px;
    max-width: 360px;
    align-self: center;
  }

  .address-actions.has-revert {
    flex-wrap: nowrap;
  }

  .dropship-modal .summary-container-wide {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 20px 16px;
    max-height: none;
  }

  .dropship-modal .summary-content {
    flex: 1;
    max-height: none;
    overflow-y: auto;
  }

  .dropship-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
