/* Custom Utility Classes from HTML version */
.kb-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .kb-h1 {
    font-size: 3.25rem;
  }
}

.kb-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .kb-h2 {
    font-size: 2.25rem;
  }
}

.kb-h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

.kb-body {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
}

.micro-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Custom Header Menu Dropdowns Styles */
.nav-bar-container ul {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-bar-container ul > li {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-bar-container ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.nav-bar-container ul > li > a:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

.nav-bar-container ul > li.menu-item-has-children > ul.sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #ffffff;
  color: #262626;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  width: 14rem; /* w-56 */
  z-index: 50;
  display: none;
  list-style: none;
  flex-direction: column;
}

.nav-bar-container ul > li.menu-item-has-children:hover > ul.sub-menu {
  display: flex;
}

.nav-bar-container ul > li.menu-item-has-children > ul.sub-menu > li {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-bar-container ul > li.menu-item-has-children > ul.sub-menu > li > a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #262626;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
}

.nav-bar-container ul > li.menu-item-has-children > ul.sub-menu > li > a:hover {
  background-color: #f5f5f5;
  color: #df0000;
}

/* Submenu Chevron Arrow Indicator */
.nav-bar-container ul > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.375rem;
  margin-bottom: 0.125rem;
  transition: transform 0.2s ease;
}

.nav-bar-container ul > li.menu-item-has-children:hover > a::after {
  transform: rotate(-135deg) translateY(-1px);
}

/* Mobile Menu Drawer Styling */
#kb-menu-drawer ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}

#kb-menu-drawer ul > li {
  width: 100%;
}

#kb-menu-drawer ul > li > a {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #262626;
  font-weight: 600;
  text-decoration: none;
}

#kb-menu-drawer ul > li.menu-item-has-children > a {
  color: #df0000;
}

#kb-menu-drawer ul > li > ul.sub-menu {
  padding-left: 1rem;
  background-color: #fbfbfb;
}

#kb-menu-drawer ul > li > ul.sub-menu > li > a {
  font-weight: 500;
  padding: 0.5rem 1rem;
}

/* brand overrides for WooCommerce forms, tables, buttons, and checkout elements */

:root {
  --primary-color: #df0000;
  --secondary-color: #1f1f1f;
  --accent-color: #f5f5f5;
  --border-color: #e5e5e5;
  --text-color: #262626;
  --success-color: #22c55e;
}

/* Custom Scrollbar hide */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* WooCommerce Overrides */
.woocommerce table.shop_table {
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color) !important;
}

.woocommerce table.shop_table th {
  background-color: #f9f9f9;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 12px 16px !important;
}

.woocommerce table.shop_table td {
  border-top: 1px solid var(--border-color) !important;
  padding: 16px !important;
  color: var(--text-color);
}

.woocommerce-cart-form__contents td.product-thumbnail img {
  border-radius: 4px;
  background-color: #f9f9f9;
  object-fit: contain;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce #content input.button.alt {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px !important;
  padding: 12px 24px !important;
  transition: background-color 0.2s ease;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce #content input.button.alt:hover {
  background-color: var(--secondary-color) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(223, 0, 0, 0.15);
}

.woocommerce-checkout #payment {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  padding: 16px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px 16px !important;
  margin-bottom: 8px;
  cursor: pointer;
  display: block;
}

.woocommerce-checkout #payment ul.payment_methods li input[type=radio] {
  margin: 0 8px 0 0 !important;
  accent-color: var(--primary-color);
  vertical-align: middle;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  vertical-align: middle;
}

.woocommerce-checkout #payment div.payment_box {
  background-color: #fafafa !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px;
  color: var(--text-color) !important;
  font-size: 0.85rem !important;
  margin: 10px 0 0 0 !important;
  padding: 12px !important;
}

.woocommerce-checkout #payment div.payment_box::before {
  display: none !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--primary-color) !important;
  background-color: #fbfbfb !important;
  border-radius: 4px;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--primary-color) !important;
}

/* Coupon form container override */
.checkout_coupon.woocommerce-form-coupon {
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  padding: 16px !important;
  background-color: #ffffff;
}

/* Responsive mobile logo size & alignment fixes */
.kb-logo-img {
  max-height: 40px !important;
  width: auto !important;
  display: block;
}

@media (max-width: 767px) {
  /* Hide desktop red category bar on mobile viewports */
  .nav-bar-container {
    display: none !important;
  }

  /* Tighten spacing in mobile header to prevent logo/icons wrapping */
  header .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 8px !important;
  }
  
  header a.shrink-0 {
    gap: 6px !important;
  }

  header a.shrink-0 span {
    font-size: 1.125rem !important; /* ~18px */
  }
  
  header a.shrink-0 span.relative {
    font-size: 0.95rem !important;
    padding: 2px 6px !important;
  }
  
  header nav {
    gap: 4px !important;
  }
  
  header nav a {
    padding: 6px 8px !important;
  }
}

/* Professional WooCommerce Checkout Page Redesign */
.woocommerce-checkout {
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  /* Desktop 2-column layout */
  .woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 7fr 5fr !important;
    gap: 2rem !important;
    align-items: start !important;
  }
  
  .woocommerce-checkout #customer_details {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    margin-bottom: 0 !important;
  }
  
  .woocommerce-checkout #order_review_heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-top: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #1f1f1f !important;
    padding-bottom: 0.5rem !important;
  }
  
  .woocommerce-checkout #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
    position: sticky !important;
    top: 2rem !important;
  }
}

/* Form section headers */
.woocommerce-checkout h3 {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--secondary-color) !important;
  margin-bottom: 1.25rem !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding-bottom: 0.5rem !important;
}

/* Checkout fields container styling - stack columns vertically inside grid-column 1 */
.woocommerce-checkout .col2-set {
  display: block !important;
  width: 100% !important;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  width: 100% !important;
  float: none !important;
  margin: 0 0 1.5rem 0 !important;
}

/* Fields grid layout (responsive) */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

/* Custom field row wrapper settings */
.woocommerce form .form-row {
  margin-bottom: 1rem !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

.woocommerce form .form-row label {
  display: block !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  color: #4b5563 !important; /* gray-600 */
  margin-bottom: 0.375rem !important;
  line-height: 1.4 !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #f9fafb !important; /* neutral-50 */
  border: 1px solid #d1d5db !important; /* gray-300 */
  border-radius: 0.375rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  color: #1f1f1f !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  background-color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(223, 0, 0, 0.12) !important;
}

/* Style Select2 elements to match our premium inputs */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  background-color: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.375rem !important;
  height: 44px !important;
  padding: 8px 12px !important;
  font-size: 0.875rem !important;
  outline: none !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1f1f1f !important;
  line-height: 28px !important;
  padding-left: 0 !important;
}

/* Checkbox and radio field layout overrides */
.woocommerce form .form-row.create-account,
.woocommerce-checkout #ship-to-different-address {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-top: 0.5rem !important;
}

.woocommerce form .form-row.create-account input,
.woocommerce-checkout #ship-to-different-address input {
  width: auto !important;
  margin: 0 !important;
  accent-color: var(--primary-color) !important;
}

.woocommerce-checkout #ship-to-different-address label {
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  text-transform: none !important;
  font-size: 0.95rem !important;
}

/* Order Review Container Redesign */
.woocommerce-checkout-review-order {
  background-color: #fcfcfc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-checkout-review-order table.shop_table {
  border: none !important;
  background: transparent !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
}

.woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout-review-order table.shop_table td {
  border: none !important;
  background: transparent !important;
  padding: 0.75rem 0 !important;
  color: #374151 !important; /* gray-700 */
}

.woocommerce-checkout-review-order table.shop_table thead th {
  border-bottom: 2px solid #e5e7eb !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  color: #1f1f1f !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item {
  border-bottom: 1px dashed #e5e7eb !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item:last-child {
  border-bottom: 1px solid #e5e7eb !important;
}

.woocommerce-checkout-review-order table.shop_table td.product-name {
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout-review-order table.shop_table td.product-total {
  font-weight: 600 !important;
  text-align: right !important;
  font-size: 0.875rem !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart-subtotal th,
.woocommerce-checkout-review-order table.shop_table tr.cart-subtotal td,
.woocommerce-checkout-review-order table.shop_table tr.shipping th,
.woocommerce-checkout-review-order table.shop_table tr.shipping td,
.woocommerce-checkout-review-order table.shop_table tr.tax-total th,
.woocommerce-checkout-review-order table.shop_table tr.tax-total td {
  font-size: 0.875rem !important;
  border-top: none !important;
}

.woocommerce-checkout-review-order table.shop_table tr.cart-subtotal td,
.woocommerce-checkout-review-order table.shop_table tr.shipping td,
.woocommerce-checkout-review-order table.shop_table tr.tax-total td {
  text-align: right !important;
  font-weight: 600 !important;
}

.woocommerce-checkout-review-order table.shop_table tr.order-total {
  border-top: 1.5px solid #1f1f1f !important;
}

.woocommerce-checkout-review-order table.shop_table tr.order-total th {
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  color: #1f1f1f !important;
}

.woocommerce-checkout-review-order table.shop_table tr.order-total td {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--primary-color) !important;
  text-align: right !important;
}

/* Payment box redesign */
.woocommerce-checkout #payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  border: 1px solid #e5e7eb !important;
  background-color: #ffffff !important;
  border-radius: 6px !important;
  padding: 1rem !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
  border-color: #d1d5db !important;
  background-color: #f9fafb !important;
}

.woocommerce-checkout #payment ul.payment_methods li.payment_method_selected {
  border-color: var(--primary-color) !important;
  background-color: rgba(223, 0, 0, 0.02) !important;
}

/* Hide default payment box help tips, let layout be clean */
.woocommerce-checkout #payment div.payment_box {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 2px 0 rgba(0,0,0,0.02) !important;
  margin-top: 0.75rem !important;
  padding: 0.75rem 1rem !important;
}

/* Checkout CTA Place Order Button Styling */
.woocommerce-checkout #payment #place_order {
  display: block !important;
  width: 100% !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 1rem 1.5rem !important;
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 4px 6px -1px rgba(223, 0, 0, 0.2), 0 2px 4px -1px rgba(223, 0, 0, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
}

.woocommerce-checkout #payment #place_order:hover {
  background-color: var(--secondary-color) !important;
  box-shadow: 0 4px 6px -1px rgba(31, 31, 31, 0.2), 0 2px 4px -1px rgba(31, 31, 31, 0.1) !important;
}

.woocommerce-checkout #payment #place_order:active {
  transform: translateY(1px) !important;
}

/* Premium Product Card Sizing & Background Overrides */
.group .relative.aspect-square,
.woocommerce-checkout-review-order table.shop_table img,
.widget_shopping_cart img,
#cart-drawer img {
  background-color: #ffffff !important;
}

.group .relative.aspect-square img.kb-product-card-img,
.group .relative.aspect-square img[class*="object-contain"] {
  padding: 0.375rem !important; /* Reduces p-4 (16px) to 6px (p-1.5 equivalent) */
}

/* Globally Hide Coupon Code sections on WooCommerce Checkout */
.woocommerce-form-coupon-toggle,
.woocommerce-form-coupon,
.checkout_coupon.woocommerce-form-coupon {
  display: none !important;
}

/* Fix mobile overflow/scroll on WooCommerce checkout */
@media (max-width: 1024px) {
  .woocommerce-checkout .kb-woocommerce-checkout-container {
    padding: 1rem !important; /* Spacing between 15px and 20px */
    overflow-x: hidden !important;
  }
  .woocommerce-checkout table.shop_table,
  .woocommerce-cart table.shop_table,
  .woocommerce-cart-form table.shop_table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important; /* Restricts overflow to the table itself */
    -webkit-overflow-scrolling: touch;
  }
  .woocommerce-checkout #customer_details {
    margin-bottom: 2rem !important; /* Add space before order review on mobile */
  }
  .woocommerce-checkout form.checkout,
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* Global body overflow hidden reset for Checkout page */
.woocommerce-checkout,
.woocommerce-checkout body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Hero Carousel Height Fix to prevent collapsing/overlapping */
#kb-hero-carousel {
  position: relative;
  height: 480px !important;
}

@media (min-width: 640px) {
  #kb-hero-carousel {
    height: 560px !important;
  }
}

@media (min-width: 768px) {
  #kb-hero-carousel {
    height: 640px !important;
  }
}

#kb-hero-carousel .hero-slide {
  height: 100% !important;
  width: 100% !important;
}

/* Hero Carousel Buttons Styling to match mockup */
#kb-hero-carousel .kb-hero-btn-1 {
  background-color: #ffffff;
  color: #df0000;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}
#kb-hero-carousel .kb-hero-btn-1:hover {
  background-color: #f5f5f5;
}

#kb-hero-carousel .kb-hero-btn-2 {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}
#kb-hero-carousel .kb-hero-btn-2:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Categories Section Styling to match mockup (no border/background) */
.kb-home-sec2-categories a.group {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
.kb-home-sec2-categories a.group:hover {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}


