:root {
  /* Palette Tokens */
  --color-primary: 62 44 40; /* #3E2C28 (Dark Roast) */
  --color-accent: 90 61 54; /* #5A3D36 (Espresso) */
  --color-cta: 232 93 4; /* #E85D04 (Lava) */
  --color-bg: 250 249 246; /* #FAF9F6 (Bone/Off-white) */
  --color-green: 107 122 80; /* #6B7A50 (Plantation) */
  --color-muted: 140 130 120; /* Warm Muted Grey */

  /* Line Specifics (V2 Branding) */
  --color-line-purple: 106 13 173;
  --color-line-brown: 62 44 40;
  --color-line-aqua: 64 224 208;
  --color-line-orange: 232 93 4;
  --color-line-yellow: 255 215 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background-color: rgb(var(--color-bg));
  color: rgb(var(--color-primary));
  line-height: 1.6;
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.02em;
}

/* Responsive Typography */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
}

/* Custom scrollbar matching the roast theme */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgb(var(--color-bg));
}
::-webkit-scrollbar-thumb {
  background: rgb(var(--color-primary) / 0.1);
  border-radius: 10px;
  border: 2px solid rgb(var(--color-bg));
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--color-primary) / 0.2);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.woocommerce-checkout input,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  width: 100%;
  /* height: 56px; */
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  padding: 10px 16px;
  background: #fff;
  color: #3b2a28;
  font-size: 16px;
  outline: none;
  box-shadow: none;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
  border-color: #e66a00;
  box-shadow: 0 0 0 2px rgba(230, 106, 0, 0.1);
}

.woocommerce-checkout .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.woocommerce-checkout label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #3b2a28;
}

.woocommerce-checkout input::placeholder {
  color: #9ca3af;
}

/* .woocommerce-checkout #place_order {
  display: none !important;
} */

/* .woocommerce-checkout-payment button.place-order {
  display: none !important;
} */

.checkout-btn {
  background: #e66a00;
  color: #fff;
  border: none;
  height: 64px;
  min-width: 320px;
  padding: 0 40px;
  border-radius: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-btn:hover {
  background: #cc5d00;
}

.blockOverlay,
.blockUI.blockOverlay,
.woocommerce .blockUI.blockOverlay {
  background: transparent !important;
  opacity: 0 !important;
}

/* .woocommerce .loader,
.woocommerce .blockUI::before {
  display: none !important;
}

.blockUI.blockOverlay::before {
  display: none !important;
} */
.checkout-btn {
  min-width: 340px;
  height: 64px;
  white-space: nowrap;
}
/* .woocommerce-checkout-payment #place_order {
  display: none !important;
}
.woocommerce-error {
  display: none !important;
} */
.woocommerce-invalid input {
  border-color: #dc2626 !important;
}

.woocommerce-error,
.woocommerce-invalid-required-field .woocommerce-error,
.checkout-inline-error-message,
.woocommerce form .form-row .required {
  color: #dc2626;
}

.woocommerce form .form-row label {
  margin-bottom: 8px;
}
.select2-container .select2-selection--single {
  height: 56px !important;
  border: 1px solid #d6d3d1 !important;
  border-radius: 10px !important;
  background: #fff !important;

  display: flex !important;
  align-items: center !important;

  padding: 0 14px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: normal !important;
  color: #3b2a28 !important;
  font-size: 16px !important;
  padding-left: 0 !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 56px !important;
  right: 10px !important;
}

.select2-dropdown {
  border-radius: 10px !important;
  border: 1px solid #d6d3d1 !important;
}

.select2-search__field {
  border-radius: 8px !important;
  padding: 8px !important;
}

/* .woocommerce-NoticeGroup-checkout {
  display: block !important;
} */

.custom-cart-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b2a25;
  color: #fff;
  padding: 18px 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 999999;
  min-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.3s ease;
}

.custom-cart-toast .icon {
  color: #ff7a00;
  font-size: 24px;
}

.custom-cart-toast .close-toast {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.8;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
