/* Custom CSS */

/* WordPress Admin Bar offset */
body.admin-bar header.sticky {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header.sticky {
    top: 46px;
  }
}

/* Fix WordPress Admin Bar on mobile to be fixed so it doesn't leave a gap when header is sticky */
@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
  }
}

/* Base custom styles to align with premium look */
.font-serif {
  font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
}

body {
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  font-size: 16px;
}

/* Menu font overrides */
#site-navigation a,
#mobile-menu a,
#site-navigation ul li a,
#mobile-menu ul li a {
  font-family: 'Inter', sans-serif !important;
}

/* Custom details accordion styling */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary svg {
  transform: rotate(180deg);
}

/* FluentForm overrides */
.fluentform.ff-default .ff-el-form-control {
  padding: 0.75rem 1rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0 !important;
  outline: none !important;
  width: 100% !important;
  background-color: #ffffff !important;
  transition: border-color 0.15s ease-in-out !important;
}

.fluentform.ff-default .ff-el-form-control:focus {
  border-color: #b45309 !important;
  /* amber-700 */
}

.fluentform.ff-default .ff-btn-submit {
  width: 100% !important;
  background-color: #b45309 !important;
  /* amber-700 */
  color: #ffffff !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  transition: background-color 0.15s ease-in-out !important;
  cursor: pointer !important;
  border: none !important;
}

.fluentform.ff-default .ff-btn-submit:hover {
  background-color: #92400e !important;
  /* amber-800 */
}

/* --- WordPress Desktop Dropdown Navigation --- */
#site-navigation {
  height: 100%;
}

#site-navigation ul:not(.sub-menu) {
  height: 100%;
  display: flex;
}

#site-navigation ul:not(.sub-menu)>li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

#site-navigation ul:not(.sub-menu)>li>a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: #374151;
  /* text-stone-700 */
  transition: color 0.2s;
}

#site-navigation ul:not(.sub-menu)>li>a:hover {
  color: #b45309;
  /* text-amber-700 */
}

/* First-level dropdown (second-level menu) */
#site-navigation ul:not(.sub-menu)>li>.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  /* border-stone-200 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* shadow-xl */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

#site-navigation ul:not(.sub-menu)>li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
}

/* Second-level dropdown (third-level menu - flyout to right) */
#site-navigation ul .sub-menu li {
  position: relative;
  height: auto;
  width: 100%;
  display: block;
}

#site-navigation ul .sub-menu .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  transform: none;
  min-width: 240px;
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

#site-navigation ul .sub-menu li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
}

/* Reset links inside sub-menus */
#site-navigation ul .sub-menu li a {
  display: block;
  height: auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #44403c;
  /* text-stone-750 */
  border-bottom: 1px solid #f5f5f4;
  /* border-stone-100 */
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

#site-navigation ul .sub-menu li:last-child>a {
  border-bottom: none;
}

#site-navigation ul .sub-menu li a:hover {
  background-color: #fef3c7;
  /* bg-amber-50 */
  color: #b45309;
  /* text-amber-700 */
}

/* --- Refined Mobile Menu Styling --- */
#mobile-menu {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

#mobile-menu ul {
  list-style: none;
  margin: 0;
}

#mobile-menu ul.flex-col>li {
  position: relative;
  display: block;
}

/* Link styling for parent items */
#mobile-menu ul.flex-col>li>a {
  display: block;
  padding: 0.875rem 0;
  font-size: 0.9375rem;
  color: #1c1917;
  /* stone-900 */
  font-weight: 600;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s ease-in-out;
}

#mobile-menu ul.flex-col>li>a:hover,
#mobile-menu ul.flex-col>li>a:active {
  color: #b45309;
  /* amber-700 */
}

/* Mobile Sub-menu Indentation */
#mobile-menu .sub-menu {
  padding-left: 1.5rem;
  margin-left: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  border-left: 1.5px solid #d6d3d1;
  list-style: none;
}

#mobile-menu .sub-menu li {
  display: block;
  border: none !important;
}

#mobile-menu .sub-menu li a {
  display: block;
  padding: 0.75rem 0;
  color: #57534e;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.15s ease-in-out;
}

#mobile-menu .sub-menu li a:hover,
#mobile-menu .sub-menu li a:active {
  color: #b45309;
  padding-left: 0.375rem;
}

/* Brand logo sizing overrides to prevent WooCommerce/WordPress/Global style stretch */
.brand-logo-img {
  height: 48px !important;
  width: auto !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

/* Global Pagination Styling */
.page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.page-numbers span.current {
  background-color: #1c1917;
  color: #ffffff;
  border-color: #1c1917;
}

.page-numbers span.dots {
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

.page-numbers a:hover {
  border-color: #b45309;
  color: #b45309;
}

/* Navigation dropdown arrow indicators */
#site-navigation ul:not(.sub-menu)>li.menu-item-has-children>a::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.4rem;
  margin-top: -3px;
  opacity: 0.7;
  transition: transform 0.2s ease-in-out, margin-top 0.2s ease-in-out;
}

#site-navigation ul:not(.sub-menu)>li.menu-item-has-children:hover>a::after {
  transform: rotate(225deg);
  margin-top: 2px;
}

#site-navigation ul .sub-menu li.menu-item-has-children>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#site-navigation ul .sub-menu li.menu-item-has-children>a::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.75rem;
  opacity: 0.6;
}

/* --- WooCommerce Custom Overrides --- */

/* Global Checkout Inputs Fix to override narrow plugin defaults */
#checkout-page-content input[type="text"],
#checkout-page-content input[type="tel"],
#checkout-page-content input[type="email"],
#checkout-page-content input[type="number"],
#checkout-page-content select,
#checkout-page-content textarea,
#checkout-page-content .select2-container,
#checkout-page-content .select2-selection,
#checkout-page-content .woocommerce-input-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Reset WooCommerce default column layouts */
#checkout-page-content #customer_details,
#checkout-page-content #order_review {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#checkout-page-content #customer_details .col-1,
#checkout-page-content #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
}

/* Form rows and spacing */
.woocommerce form .form-row {
  margin-bottom: 1.25rem !important;
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  float: none !important;
}

.woocommerce form .form-row label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #1c1917 !important;
  /* stone-900 */
  margin-bottom: 0.5rem !important;
  display: block !important;
}

.woocommerce form .form-row .woocommerce-input-wrapper {
  display: block !important;
  width: 100% !important;
}

.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100% !important;
  display: block !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid #d6d3d1 !important;
  /* stone-300 */
  border-radius: 0 !important;
  background-color: #ffffff !important;
  font-family: 'Quicksand', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  outline: none !important;
  color: #1c1917 !important;
  transition: all 0.2s ease-in-out !important;
  box-sizing: border-box !important;
}

.woocommerce form .form-row input:not([type="checkbox"]):not([type="radio"]),
.woocommerce form .form-row select {
  height: 48px !important;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: #b45309 !important;
  /* amber-700 */
}

/* Select2 customization to match input styling */
.select2-container {
  width: 100% !important;
  display: block !important;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #d6d3d1 !important;
  border-radius: 0 !important;
  height: 48px !important;
  /* standard input height matching padding */
  display: flex !important;
  align-items: center !important;
  font-family: 'Quicksand', sans-serif !important;
  font-size: 0.875rem !important;
  background-color: #ffffff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1c1917 !important;
  padding-left: 1rem !important;
  padding-right: 2.5rem !important;
  line-height: 1.25 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 12px !important;
}

/* Payment Methods (Gateways) styling */
.woocommerce-checkout-payment {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.woocommerce-checkout-payment ul.payment_methods {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.woocommerce-checkout-payment ul.payment_methods li {
  border: 1px solid #e7e5e4 !important;
  /* stone-200 */
  padding: 1.25rem !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease-in-out !important;
  display: block !important;
  /* natural block layout for radio alignment */
}

.woocommerce-checkout-payment ul.payment_methods li input[type="radio"] {
  display: inline-block !important;
  margin-right: 0.5rem !important;
  vertical-align: middle !important;
  accent-color: #b45309 !important;
}

.woocommerce-checkout-payment ul.payment_methods li label {
  display: inline-block !important;
  vertical-align: middle !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #1c1917 !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.woocommerce-checkout-payment ul.payment_methods li .payment_box {
  display: block !important;
  background: #fafaf9 !important;
  /* stone-50 */
  border: 1px solid #e7e5e4 !important;
  padding: 0.75rem 1rem !important;
  margin: 0.75rem 0 0 0 !important;
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
  color: #57534e !important;
  /* stone-600 */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Shipping Methods in Review Order */
.shipping-methods-container ul#shipping_method {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.shipping-methods-container ul#shipping_method li {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.8125rem !important;
  color: #44403c !important;
  /* stone-700 */
}

.shipping-methods-container ul#shipping_method li input[type="radio"] {
  accent-color: #b45309 !important;
}

.shipping-methods-container ul#shipping_method li label {
  cursor: pointer !important;
  font-weight: 500 !important;
  color: #1c1917 !important;
}

/* Place Order Submit button */
#place_order {
  width: 100% !important;
  background-color: #b45309 !important;
  /* amber-700 */
  color: #ffffff !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  transition: all 0.2s ease-in-out !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  margin-top: 1rem !important;
}

#place_order:hover {
  background-color: #92400e !important;
  /* amber-800 */
}

/* WooCommerce Alerts (Errors, notices) styling */
.woocommerce-NoticeGroup,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  padding: 1rem 1.5rem !important;
  margin-bottom: 1.5rem !important;
  list-style: none !important;
}

.woocommerce-error {
  background-color: #fef2f2 !important;
  /* red-50 */
  border-left: 4px solid #ef4444 !important;
  /* red-500 */
  color: #991b1b !important;
  /* red-800 */
}

.woocommerce-message {
  background-color: #ecfdf5 !important;
  /* emerald-50 */
  border-left: 4px solid #10b981 !important;
  /* emerald-500 */
  color: #065f46 !important;
  /* emerald-800 */
}

/* Required field asterisk color */
.woocommerce form .form-row .required {
  color: #ef4444 !important;
  text-decoration: none !important;
}

/* Hide some default WooCommerce headers and standard layout elements in order review since we styled them customly */
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table th.product-name,
.woocommerce-checkout-review-order-table th.product-total {
  display: none !important;
}

.woocommerce-checkout-review-order-table td {
  border-top: none !important;
  padding: 0 !important;
}

/* --- Refined WooCommerce Checkout Layout & Spacing --- */

/* Billing & Shipping Form Grid */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}

#checkout-page-content .form-row {
  grid-column: span 1 / span 1 !important;
  /* Default full-width in 1-column */
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}

#checkout-page-content .form-row-first,
#checkout-page-content .form-row-last {
  grid-column: span 1 / span 1 !important;
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}

@media (min-width: 768px) {

  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #checkout-page-content .form-row {
    grid-column: span 2 / span 2 !important;
    /* Default full-width in 2-column */
  }

  #checkout-page-content .form-row-first,
  #checkout-page-content .form-row-last {
    grid-column: span 1 / span 1 !important;
    /* Half-width in 2-column */
  }
}

/* Checkbox alignment for different address */
#ship-to-different-address {
  margin: 1.5rem 0 !important;
}

#ship-to-different-address label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #1c1917 !important;
}

#ship-to-different-address label input[type="checkbox"] {
  accent-color: #b45309 !important;
  width: 1rem !important;
  height: 1rem !important;
  margin: 0 !important;
}

/* Custom Dropdown arrow indicators */
.woocommerce form .form-row select {
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.25rem !important;
  padding-right: 2.5rem !important;
}

/* Shipping Wrapper Table layout */
.woocommerce-shipping-wrapper-table {
  border-collapse: collapse !important;
  border: none !important;
  margin: 1.25rem 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.woocommerce-shipping-wrapper-table tr.shipping {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-shipping-wrapper-table tr.shipping th {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  color: #78716c !important;
  /* stone-500 */
  letter-spacing: 0.05em !important;
  text-align: left !important;
  padding: 0 !important;
  border: none !important;
}

.woocommerce-shipping-wrapper-table tr.shipping td {
  padding: 0 !important;
  border: none !important;
}

.woocommerce-shipping-wrapper-table ul#shipping_method {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.woocommerce-shipping-wrapper-table ul#shipping_method li {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.875rem !important;
  color: #1c1917 !important;
  /* stone-900 */
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-shipping-wrapper-table ul#shipping_method li input[type="radio"] {
  accent-color: #b45309 !important;
  margin: 0 !important;
}

.woocommerce-shipping-wrapper-table ul#shipping_method li label {
  cursor: pointer !important;
  font-weight: 500 !important;
  color: #1c1917 !important;
  margin: 0 !important;
}

/* Coupon info alert banner customization */
.woocommerce-info {
  background-color: #fafaf9 !important;
  /* stone-50 */
  border: 1px solid #e7e5e4 !important;
  /* stone-200 */
  border-left: 3px solid #b45309 !important;
  /* amber-700 */
  padding: 1rem 1.25rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8125rem !important;
  color: #44403c !important;
  /* stone-700 */
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  border-radius: 0 !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce-info a {
  color: #b45309 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  transition: color 0.15s ease-in-out !important;
}

.woocommerce-info a:hover {
  color: #92400e !important;
}

/* WooCommerce BACS (Bank Details) success page styling */
.thankyou-payment-output h2 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #1c1917 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
}

.thankyou-payment-output h2:first-of-type {
  margin-top: 0 !important;
}

.thankyou-payment-output ul.wc-bacs-bank-details {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1.25rem !important;
}

.thankyou-payment-output ul.wc-bacs-bank-details li {
  background: #ffffff !important;
  border: 1px solid #e7e5e4 !important;
  padding: 1.25rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.6 !important;
  color: #57534e !important;
  display: block !important;
}

.thankyou-payment-output ul.wc-bacs-bank-details li strong {
  display: block !important;
  font-size: 0.9375rem !important;
  color: #1c1917 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
}

.thankyou-payment-output p {
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: #44403c !important;
  margin-bottom: 1.25rem !important;
}

/* --- Google Translate Custom Styling --- */
#google_translate_element {
  display: none !important;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip\:hover {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

body {
  top: 0px !important;
  position: static !important;
}

/* --- WooCommerce Mini Cart Dropdown Overrides --- */

/* Invisible hover bridge */
.mini-cart-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Base list styling */
ul.woocommerce-mini-cart {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: 320px;
  overflow-y: auto;
}

/* Custom scrollbar for premium feel */
ul.woocommerce-mini-cart::-webkit-scrollbar {
  width: 4px;
}

ul.woocommerce-mini-cart::-webkit-scrollbar-track {
  background: #f5f5f4;
  /* stone-100 */
}

ul.woocommerce-mini-cart::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  /* stone-300 */
}

ul.woocommerce-mini-cart::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
  /* stone-400 */
}

/* Mini Cart Item layout */
.woocommerce-mini-cart-item {
  position: relative;
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid #f5f5f4 !important;
  /* stone-100 */
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

.woocommerce-mini-cart-item:last-child {
  border-bottom: none !important;
}

/* Product link (thumbnail + name) inside item */
.woocommerce-mini-cart-item a:not(.remove) {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  color: #1c1917 !important;
  /* stone-900 */
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  padding: 0 !important;
  border: none !important;
  margin-bottom: 0.25rem !important;
  transition: color 0.2s ease;
}

.woocommerce-mini-cart-item a:not(.remove):hover {
  color: #b45309 !important;
  /* amber-700 */
}

/* Thumbnail styling */
.woocommerce-mini-cart-item img {
  width: 50px !important;
  height: 50px !important;
  object-fit: cover !important;
  border: 1px solid #e7e5e4 !important;
  /* stone-200 */
  background-color: #fafaf9 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Quantity & Price info */
.woocommerce-mini-cart-item .quantity {
  display: block !important;
  font-size: 0.8125rem !important;
  color: #78716c !important;
  /* stone-500 */
  font-weight: 500 !important;
  margin-left: 62px !important;
  /* aligns under name next to 50px img + 12px gap */
}

.woocommerce-mini-cart-item .quantity .amount {
  color: #b45309 !important;
  /* amber-700 */
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Remove button */
.woocommerce-mini-cart-item a.remove {
  position: absolute !important;
  top: 1rem !important;
  right: 1.25rem !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #a8a29e !important;
  /* stone-400 */
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  float: none !important;
}

.woocommerce-mini-cart-item a.remove:hover {
  background-color: #fef2f2 !important;
  /* red-50 */
  color: #ef4444 !important;
  /* red-500 */
}

/* Subtotal total block */
p.woocommerce-mini-cart__total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 1rem 1.25rem !important;
  border-top: 1px solid #e7e5e4 !important;
  /* stone-200 */
  margin: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #1c1917 !important;
  background-color: #fafaf9 !important;
}

p.woocommerce-mini-cart__total strong {
  font-weight: 600 !important;
  color: #57534e !important;
  /* stone-600 */
}

p.woocommerce-mini-cart__total .amount {
  color: #b45309 !important;
  /* amber-700 */
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* Action buttons block */
p.woocommerce-mini-cart__buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
  padding: 1rem 1.25rem 1.25rem 1.25rem !important;
  margin: 0 !important;
  background-color: #fafaf9 !important;
}

p.woocommerce-mini-cart__buttons a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 0 !important;
  transition: all 0.2s ease-in-out !important;
  text-decoration: none !important;
  padding: 0 0.5rem !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

p.woocommerce-mini-cart__buttons a.button:not(.checkout) {
  background-color: #ffffff !important;
  color: #44403c !important;
  /* stone-700 */
  border: 1px solid #d6d3d1 !important;
  /* stone-300 */
}

p.woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
  background-color: #f5f5f4 !important;
  color: #1c1917 !important;
  border-color: #a8a29e !important;
}

p.woocommerce-mini-cart__buttons a.button.checkout {
  background-color: #b45309 !important;
  /* amber-700 */
  color: #ffffff !important;
  border: 1px solid #b45309 !important;
}

p.woocommerce-mini-cart__buttons a.button.checkout:hover {
  background-color: #92400e !important;
  /* amber-800 */
  border-color: #92400e !important;
}

/* Empty cart message */
.woocommerce-mini-cart__empty-message {
  padding: 2.5rem 1.25rem !important;
  text-align: center !important;
  color: #78716c !important;
  /* stone-500 */
  font-size: 0.875rem !important;
  margin: 0 !important;
}

/* --- Premium Language Switcher Styling --- */
.header-language-switcher {
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  position: relative !important;
}

/* Base style for TranslatePress switcher container */
.header-language-switcher .trp-language-switcher,
.header-language-switcher .trp-language-switcher-style-image-name {
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Reset any native TranslatePress outer padding/borders */
.header-language-switcher .trp-language-switcher > div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: unset !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Current active language tag styling */
.header-language-switcher .trp-ls-shortcode-current-language {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #d6d3d1 !important; /* stone-300 */
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header-language-switcher .trp-ls-shortcode-current-language:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.4) !important; /* amber-500 border opacity */
  color: #f59e0b !important; /* amber-500 */
}

/* Active language tag link reset */
.header-language-switcher .trp-ls-shortcode-current-language a {
  color: inherit !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Dropdown list of languages container */
.header-language-switcher .trp-ls-shortcode-language-list {
  background-color: #1c1917 !important; /* stone-900 */
  border: 1px solid #44403c !important; /* stone-700 */
  border-radius: 4px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
  padding: 4px 0 !important;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: 0 !important;
  min-width: 130px !important;
  display: none !important;
  flex-direction: column !important;
  z-index: 9999 !important;
}

/* Show dropdown list on hover */
.header-language-switcher:hover .trp-ls-shortcode-language-list,
.header-language-switcher .trp-language-switcher:hover .trp-ls-shortcode-language-list {
  display: flex !important;
}

/* Dropdown link item */
.header-language-switcher .trp-ls-shortcode-language-list a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  color: #d6d3d1 !important; /* stone-300 */
  text-decoration: none !important;
  font-size: 11px !important;
  text-transform: capitalize !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.header-language-switcher .trp-ls-shortcode-language-list a:hover {
  background-color: #b45309 !important; /* amber-700 */
  color: #ffffff !important;
}

/* Flags refinement */
.header-language-switcher img.trp-flag-image {
  width: 16px !important;
  height: 11px !important;
  object-fit: cover !important;
  border-radius: 1px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  border: none !important;
  margin: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Fallback: styling for TranslatePress native select dropdown element */
.header-language-switcher select.trp-language-switcher-select {
  background-color: #292524 !important; /* stone-800 */
  color: #e7e5e4 !important; /* stone-200 */
  border: 1px solid #44403c !important; /* stone-700 */
  padding: 2px 24px 2px 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 4px !important;
  height: 26px !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6d3d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 8px !important;
  appearance: none !important;
}

.header-language-switcher select.trp-language-switcher-select:hover {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
}

.header-language-switcher select.trp-language-switcher-select option {
  background-color: #1c1917 !important;
  color: #ffffff !important;
  padding: 6px !important;
  text-transform: capitalize !important;
}

/* Fallback for general inline text-switcher links (WPML/Polylang/Other styles) */
.header-language-switcher a.wpml-ls-link, 
.header-language-switcher .lang-item a {
  color: #d6d3d1 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.header-language-switcher a.wpml-ls-link:hover, 
.header-language-switcher .lang-item a:hover {
  color: #f59e0b !important;
}

/* Custom horizontal flags switcher style */
.header-language-switcher ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important; /* Spacing between flags */
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
}

.header-language-switcher li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-language-switcher li a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.header-language-switcher li a:hover {
  opacity: 0.9 !important;
  transform: scale(1.08);
}

.header-language-switcher li img {
  width: 20px !important;
  height: 14px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: block !important;
}