/* ==========================================================
   K-BEAUTY B2B WHOLESALE - HEADER, NAVIGATION & FOOTER
   ========================================================== */

/* Top Utility Bar */
.top-utility-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  font-size: 11.5px;
  color: #475569;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.search-input-wrap {
  position: relative;
  width: 280px;
}

.search-input-wrap input {
  width: 100%;
  height: 28px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 0 2rem 0 0.75rem;
  font-size: 11.5px;
  color: #0F172A;
  outline: none;
}

.search-input-wrap input:focus {
  border-color: #0F766E;
}

.search-icon-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  display: flex;
}

.top-utility-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-user-greeting {
  font-weight: 700;
  color: #0F172A;
}

.top-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #475569;
  cursor: pointer;
}

.top-link-item:hover {
  color: #0F766E;
}

/* Multilingual Switcher */
.lang-switcher-dropdown {
  position: relative;
  display: inline-block;
}

.lang-trigger-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 0.25rem 0.6rem;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  min-width: 145px;
  z-index: 99999 !important;
  border-radius: 12px;
}

.lang-switcher-dropdown:hover .lang-dropdown-menu,
.lang-switcher-dropdown:focus-within .lang-dropdown-menu {
  display: block;
}

.lang-dropdown-item {
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-dropdown-item:hover,
.lang-dropdown-item.active {
  background: #F0FDFA;
  color: #0F766E;
  font-weight: 700;
}

/* Main Header & Navbar */
.main-site-header {
  background: #FFFFFF;
  border-bottom: 2px solid #0F766E;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.desktop-nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.gnb-dropdown-parent {
  position: relative;
}

.gnb-nav-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.15s;
}

.gnb-nav-btn:hover,
.gnb-nav-btn.active {
  color: #0F766E;
  background: #F0FDFA;
}

.gnb-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 1000;
}

.gnb-dropdown-parent:hover .gnb-dropdown-menu {
  display: block;
}

.gnb-dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  transition: background 0.15s, color 0.15s;
}

.gnb-dropdown-item:hover {
  background: #F0FDFA;
  color: #0F766E;
}

/* Cart Drawer */
.cart-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 10000;
}

.cart-drawer-overlay.active {
  display: block;
}

.cart-drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 10001;
}

.cart-drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  font-size: 16px;
  font-weight: 900;
  color: #0F172A;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item-row {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
}

.cart-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.checkout-btn {
  width: 100%;
  background: #0F766E;
  color: #FFFFFF;
  border: none;
  padding: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.75rem;
}

/* Site Footer */
.site-footer {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  color: #475569;
  font-size: 12.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-col-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 0.5rem;
}

.footer-nav-list a:hover {
  color: #0F766E;
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid #E2E8F0;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94A3B8;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

/* ==========================================================
   REDESIGNED COMPACT B2B FOOTER
   ========================================================== */
.site-footer-compact {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 2.25rem 0 1.5rem 0;
  color: #334155;
  font-size: 12.5px;
}

.footer-compact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-col-item {
  min-width: 0;
}

.footer-policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 11.5px;
}

.footer-compact-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 11px;
  color: #94A3B8;
}

.footer-bottom-copy {
  line-height: 1.4;
}

.footer-bottom-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .footer-compact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .site-footer-compact {
    padding: 1.75rem 0 1.25rem 0 !important;
    overflow-x: hidden !important;
  }
  .footer-compact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .footer-col-item {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 1.25rem;
  }
  .footer-col-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-compact-bottom {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  .footer-bottom-copy {
    text-align: center !important;
    line-height: 1.5 !important;
  }
  .footer-bottom-nav {
    justify-content: center !important;
    gap: 8px 12px !important;
  }
}

@media (max-width: 480px) {
  .footer-policy-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px 8px !important;
  }
}

/* ==========================================================
   K-BEAUTYHUB B2B WHOLESALE - CHECKOUT & PAYMENT STYLES
   ========================================================== */

.checkout-page-container {
  background: #F8FAFC;
  min-height: 85vh;
  padding: 2rem 1rem 5rem 1rem;
}

.checkout-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}

/* Breadcrumb */
.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #64748B;
  margin-bottom: 1.25rem;
}

.checkout-breadcrumb a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s ease;
}

.checkout-breadcrumb a:hover {
  color: #0F766E;
}

/* Header */
.checkout-header {
  margin-bottom: 2rem;
}

.checkout-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 9999px;
  color: #1D4ED8;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.checkout-title {
  font-size: 26px;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.02em;
}

.checkout-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* Grid Layout */
.checkout-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .checkout-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Cards */
.checkout-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.5rem;
}

.checkout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.checkout-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0F766E;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 900;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.checkout-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
}

/* Form controls */
.b2b-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .b2b-form-row {
    grid-template-columns: 1fr;
  }
}

.b2b-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.b2b-form-group:last-child {
  margin-bottom: 0;
}

.b2b-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.b2b-label .req {
  color: #DC2626;
  margin-left: 2px;
}

.b2b-input, .b2b-select, .b2b-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 13px;
  color: #0F172A;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.b2b-input:focus, .b2b-select:focus, .b2b-textarea:focus {
  border-color: #0F766E;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.b2b-textarea {
  resize: vertical;
  min-height: 70px;
}

/* Shipping Options */
.b2b-shipping-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.b2b-shipping-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.b2b-shipping-option:hover {
  border-color: #94A3B8;
}

.b2b-shipping-option.active {
  border-color: #0F766E;
  background: #F0FDFA;
}

.b2b-shipping-radio {
  margin-top: 3px;
  accent-color: #0F766E;
  cursor: pointer;
}

.b2b-shipping-desc {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.4;
}

/* VAT Section */
.b2b-vat-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.85rem;
}

.b2b-legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #E2E8F0;
}

.b2b-legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Payment Methods */
.b2b-payment-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.b2b-payment-tile {
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.b2b-payment-tile:hover {
  border-color: #CBD5E1;
}

.b2b-payment-tile.active {
  border-color: #0F766E;
  background: #F0FDFA;
  box-shadow: 0 0 0 1px #0F766E;
}

.b2b-payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.b2b-payment-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.b2b-payment-radio {
  accent-color: #0F766E;
  cursor: pointer;
}

.b2b-payment-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
}

.b2b-payment-sub {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 3px;
  margin-left: 1.75rem;
  line-height: 1.4;
}

.b2b-bank-details-box {
  margin-top: 0.85rem;
  margin-left: 1.75rem;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid #CCFBF1;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}

/* Order Summary Sticky Card */
.checkout-summary-sticky {
  position: sticky;
  top: 90px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.summary-items-scroll {
  max-height: 280px;
  overflow-y: auto;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}

.summary-prod-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.summary-prod-item:last-child {
  border-bottom: none;
}

.summary-prod-img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  object-fit: cover;
  flex-shrink: 0;
}

.summary-prod-info {
  flex: 1;
  min-width: 0;
}

.summary-prod-name {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.summary-prod-meta {
  font-size: 11px;
  color: #64748B;
}

.summary-prod-price {
  font-size: 13px;
  font-weight: 800;
  color: #0F766E;
  text-align: right;
  flex-shrink: 0;
}

/* Coupon Row */
.coupon-input-wrap {
  display: flex;
  gap: 6px;
  margin: 1.25rem 0;
}

.btn-apply-coupon {
  padding: 0 14px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-apply-coupon:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Calculation Table */
.calc-table {
  width: 100%;
  font-size: 12.5px;
  border-collapse: collapse;
}

.calc-table td {
  padding: 6px 0;
}

.calc-label {
  color: #64748B;
}

.calc-val {
  text-align: right;
  font-weight: 700;
  color: #0F172A;
}

.calc-total-row {
  border-top: 1.5px dashed #CBD5E1;
  margin-top: 8px;
  padding-top: 10px !important;
}

.calc-final-price {
  font-size: 22px;
  font-weight: 900;
  color: #0F766E;
  text-align: right;
}

/* Submit Button */
.btn-submit-b2b-order {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 1.25rem;
}

.btn-submit-b2b-order:hover {
  background: linear-gradient(135deg, #0B5E57 0%, #0F766E 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

.btn-submit-b2b-order .subtext {
  font-size: 11px;
  font-weight: 600;
  color: #CCFBF1;
  opacity: 0.95;
}

/* Guarantees Box */
.checkout-guarantees {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #64748B;
}

/* Order Success Modal */
.order-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.order-success-modal-overlay.active {
  display: flex;
}

.order-success-dialog {
  background: #FFFFFF;
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.order-success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.vietqr-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
}

.copy-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-size: 11px;
  color: #0F766E;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-pill-btn:hover {
  background: #E2E8F0;
}

/* Hide secondary sub-labels on Mobile Menu as requested */
.mobile-drawer-item-sub,
.mobile-drawer-brand-card .brand-card-tag,
.mobile-drawer-section-title span:last-child:not(:first-child) {
  display: none !important;
}


@media (max-width: 1024px) {
  .checkout-summary-sticky {
    position: static !important;
    top: auto !important;
  }
}
