/* Kharo Shop — Frontend Stylesheet
 * Brand: Kharo Green (#2EBC13 / #18680a), Dark Slate (#17231f), Sale Red (#e11d48)
 * Font: Strictly inherits original theme font-family. ZERO purple/blue.
 */

.ks-wrap,
.ks-wrap *,
.ks-product-card,
.ks-product-card * {
  box-sizing: border-box;
  font-family: inherit;
}

:root {
  --ks-primary: #2ebc13;
  --ks-primary-hover: #229e0d;
  --ks-primary-dark: #1f8a0b;
  --ks-primary-soft: rgba(46, 188, 19, 0.09);
  --ks-ink: #17231f;
  --ks-muted: #5b6962;
  --ks-border: #e3ebe3;
  --ks-surface: #ffffff;
  --ks-bg: #f6faf6;
  --ks-red: #e11d48;
  --ks-amber: #f59e0b;
  --ks-radius: 14px;
}

.ks-wrap {
  max-width: var(--kharo-site-width, 1180px);
  margin: 0 auto;
  padding: 20px 16px 40px;
  color: var(--ks-ink);
}

.ks-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Hide duplicate theme post title / featured image above Kharo Product Hero */
body.single-kharo_product .wp-block-post-title,
body.single-kharo_product .entry-title,
body.single-kharo_product .wp-block-post-featured-image {
  display: none !important;
}

/* Buttons */
.ks-btn,
.ks-btn-outline,
.ks-btn-dark,
.ks-btn-sm,
.ks-btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  border: 1.5px solid transparent;
  line-height: 1.25;
}

.ks-btn {
  background: var(--ks-primary);
  color: #ffffff;
  padding: 11px 20px;
  font-size: 14px;
}
.ks-btn:hover {
  background: var(--ks-primary-hover);
  color: #ffffff;
}

.ks-btn-dark {
  background: var(--ks-ink);
  color: #ffffff;
  padding: 11px 20px;
  font-size: 14px;
}
.ks-btn-dark:hover {
  background: #24362f;
  color: #ffffff;
}

.ks-btn-outline {
  background: #ffffff;
  color: var(--ks-primary-dark);
  border-color: var(--ks-primary);
  padding: 10px 18px;
  font-size: 14px;
}
.ks-btn-outline:hover {
  background: var(--ks-primary-soft);
  color: var(--ks-primary-dark);
}

.ks-btn-sm {
  background: var(--ks-primary);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 13px;
}
.ks-btn-sm:hover {
  background: var(--ks-primary-hover);
  color: #ffffff;
}

.ks-btn-outline-sm {
  background: #ffffff;
  color: var(--ks-ink);
  border-color: var(--ks-border);
  padding: 8px 14px;
  font-size: 13px;
}
.ks-btn-outline-sm:hover {
  border-color: var(--ks-primary);
  color: var(--ks-primary-dark);
}

.ks-btn-lg {
  padding: 13px 24px;
  font-size: 14px;
}
.ks-btn-full {
  width: 100%;
}

/* Toolbar & Filters */
.ks-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--ks-surface);
  border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius);
}

.ks-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ks-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ks-bg);
  color: var(--ks-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--ks-border);
  transition: all 0.16s ease;
}
.ks-pill:hover,
.ks-pill.is-active {
  background: var(--ks-primary);
  color: #ffffff;
  border-color: var(--ks-primary);
}

.ks-shop-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ks-input-sm,
.ks-select-sm {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ks-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ks-ink);
  background: #ffffff;
  outline: none;
}
.ks-input-sm:focus,
.ks-select-sm:focus {
  border-color: var(--ks-primary);
}

/* Product Grid & Fox-Style Boxed Split-Footer Cards */
.ks-product-grid {
  display: grid;
  gap: 26px;
}
.ks-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ks-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ks-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ks-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.ks-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ks-surface);
  border: 1px solid color-mix(in srgb, var(--ks-primary) 34%, #d5e2d8);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 10px 20px -8px rgba(23, 35, 31, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ks-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--ks-primary);
  box-shadow: 0 16px 28px -10px rgba(23, 35, 31, 0.11);
}

.ks-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f7faf8;
  border-bottom: 1px solid #e6eee7;
  overflow: hidden;
}
.ks-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}
.ks-product-card:hover .ks-card-media img {
  transform: scale(1.03);
}

.ks-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9eb39e;
  background: linear-gradient(135deg, #f4faf4 0%, #e7f4e7 100%);
}

.ks-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 20, 0.16);
}
.ks-badge-tl {
  left: 12px;
  right: auto;
  top: 12px;
}
.ks-badge-tr {
  left: auto;
  right: 12px;
  top: 12px;
}
.ks-badge-sale {
  background: var(--ks-red, #e11d48) !important;
}
.ks-badge-out {
  background: var(--ks-ink, #17231f) !important;
}

.ks-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 15px 14px 13px;
  text-align: center;
}

.ks-card-title {
  margin: 0 !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ks-card-title a {
  color: var(--ks-ink, #17231f);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ks-card-title a:hover {
  color: var(--ks-primary-dark, #1f8a0b);
}

/* Inline Rating & Sold Meta (Grid Card + Single Product) */
.ks-stars-inline {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
  line-height: 1;
}
.ks-star-ic {
  font-size: 13.5px;
  line-height: 1;
}
.ks-star-ic.is-on {
  color: var(--ks-amber, #f59e0b);
}
.ks-star-ic.is-off {
  color: #d6dfd8;
}
.ks-rating-sep {
  color: #cfd9d2;
  font-size: 12px;
  line-height: 1;
}
.ks-card-rating-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ks-muted, #5b6962);
}
.ks-card-rating-row .ks-star-ic {
  font-size: 12.5px;
}
.ks-card-rv-cnt {
  color: var(--ks-primary-dark, #1f8a0b);
  font-weight: 600;
}
.ks-card-sold {
  color: var(--ks-muted, #5b6962);
  font-weight: 500;
}

.ks-card-split-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #ffffff;
  margin-top: auto;
}

.ks-card-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  border-right: 1px solid #e6eee7;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ks-primary-dark, #1f8a0b);
}
.ks-card-price del {
  color: #8b9991;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: line-through;
}
.ks-card-price ins {
  text-decoration: none;
  color: var(--ks-red, #e11d48);
  font-size: 14px;
  font-weight: 700;
}

.ks-card-action {
  display: flex;
  align-items: stretch;
}

.ks-card-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--ks-ink, #17231f);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.ks-card-btn svg {
  flex-shrink: 0;
}
.ks-card-btn:hover {
  background: var(--ks-primary, #2ebc13);
  color: #ffffff;
}
.ks-card-btn-disabled {
  background: #f5f8f5;
  color: #7c8b83;
}
.ks-card-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Pagination */
.ks-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.ks-page-num {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--ks-border);
  background: #ffffff;
  color: var(--ks-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.ks-page-num:hover,
.ks-page-num.is-current {
  background: var(--ks-primary);
  border-color: var(--ks-primary);
  color: #ffffff;
}

/* Single Product */
.ks-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ks-muted);
}
.ks-breadcrumb a {
  color: var(--ks-muted);
  text-decoration: none;
}
.ks-breadcrumb a:hover {
  color: var(--ks-primary-dark);
}
.ks-bc-curr {
  color: var(--ks-ink);
  font-weight: 600;
}

/* Unified Fox-Style Single Product Outer Box */
.ks-single-wrap {
  max-width: var(--kharo-site-width, 1180px);
}
.ks-fox-product-box {
  background: var(--ks-surface);
  border: 1px solid color-mix(in srgb, var(--ks-primary) 34%, #d5e2d8);
  border-radius: 7px;
  padding: 24px;
  box-shadow: 0 12px 18px -6px rgba(23, 35, 31, 0.05);
}

.ks-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.ks-main-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--ks-border, #e3ebe3);
}
.ks-main-img-wrap > img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  display: block;
}
.ks-slider-track {
  display: flex;
  align-items: center;
  width: 100%;
  transition: transform 0.36s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.ks-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.ks-slide img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  display: block;
  user-select: none;
}
.ks-slider-arrow,
.ks-arrow-btn {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.ks-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #dfe7e1;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ks-ink, #17231f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 20, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ks-slider-prev { left: 12px; }
.ks-slider-next { right: 12px; }
.ks-slider-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.ks-slider-arrow:hover {
  background: var(--ks-primary, #2ebc13);
  border-color: var(--ks-primary, #2ebc13);
  color: #ffffff;
}
@media (any-hover: hover) {
  .ks-main-img-wrap.has-slider:hover > .ks-slider-arrow {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

.ks-thumbs-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 2px;
}
.ks-thumb-btn {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid var(--ks-border, #e3ebe3);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ks-thumb-btn.is-active,
.ks-thumb-btn:hover {
  border-color: var(--ks-primary, #2ebc13);
}
.ks-thumb-btn.is-active {
  box-shadow: 0 0 0 2px var(--ks-primary-soft);
}
.ks-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ks-single-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ks-ink);
}
.ks-single-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ks-muted, #5b6962);
}
.ks-single-rating-row .ks-star-ic {
  font-size: 15px;
}
.ks-rating-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ks-primary-dark, #1f8a0b);
  font-weight: 600;
  text-decoration: none;
}
.ks-rating-jump:hover .ks-rating-cnt {
  text-decoration: underline;
}
.ks-single-sold {
  color: var(--ks-ink, #17231f);
  font-weight: 500;
}

.ks-single-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ks-red);
}
.ks-single-price del {
  order: 2;
  color: #93a199;
  font-size: 18px;
  font-weight: 500;
}
.ks-single-price ins {
  order: 1;
  text-decoration: none;
  color: var(--ks-red);
}

.ks-stock-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ks-muted);
  margin-bottom: 18px;
}
.ks-stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.ks-stock-dot.is-in { background: var(--ks-primary); }
.ks-stock-dot.is-out { background: var(--ks-red); }

.ks-variations-box {
  margin-bottom: 20px;
}
.ks-var-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ks-ink);
}
.ks-var-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ks-var-pill {
  position: relative;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1.5px solid var(--ks-primary);
  background: #ffffff;
  color: var(--ks-primary-dark);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.ks-var-pill:hover,
.ks-var-pill.is-selected {
  border-color: var(--ks-primary);
  background: var(--ks-primary-soft);
  color: var(--ks-primary-dark);
}
.ks-var-pill.is-selected::after {
  content: "✓";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ks-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ks-buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .ks-buy-row--purchase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }

  .ks-buy-row--purchase > * {
    grid-column: 1 / -1;
  }

  .ks-buy-row--purchase > .ks-qty-stepper {
    justify-self: start;
    height: 40px;
  }

  .ks-buy-row--purchase > .ks-btn-lg {
    min-width: 0;
    min-height: 44px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.25;
    gap: 6px;
    text-align: center;
  }

  .ks-buy-row--purchase:has(> .ks-js-buy-now) > .ks-btn-lg {
    grid-column: auto;
  }

  .ks-buy-row--purchase > .ks-js-single-add svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
}

.ks-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ks-border);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  height: 46px;
}
.ks-qty-stepper.ks-qty-sm {
  height: 36px;
}
.ks-qty-btn {
  width: 36px;
  height: 100%;
  border: 0;
  background: var(--ks-bg);
  color: var(--ks-ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.ks-qty-btn:hover {
  background: var(--ks-primary-soft);
  color: var(--ks-primary-dark);
}
.ks-qty-input {
  width: 48px;
  height: 100%;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ks-ink);
  -moz-appearance: textfield;
}
.ks-qty-input::-webkit-inner-spin-button,
.ks-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Dashed Trust Box (Foxplugin style) */
.ks-trust-box {
  border: 1px dashed color-mix(in srgb, var(--ks-primary) 50%, #9ec8bd);
  background: color-mix(in srgb, var(--ks-primary) 5%, #f9fdfb);
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--ks-ink);
}
.ks-trust-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--ks-ink);
  padding-bottom: 8px;
  margin-bottom: 9px;
  border-bottom: 1px dashed color-mix(in srgb, var(--ks-primary) 40%, #b5d2c7);
}
.ks-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.ks-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.ks-trust-list .ks-svg {
  color: var(--ks-primary);
  margin-top: 2px;
}
.ks-trust-body p:last-child { margin-bottom: 0; }

.ks-excerpt-card {
  background: var(--ks-bg);
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ks-ink);
}
.ks-excerpt-card p:last-child { margin-bottom: 0; }

.ks-meta-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 11px 14px;
  border-left: 3px solid var(--ks-primary);
  background: var(--ks-primary-soft);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--ks-ink);
}
.ks-meta-callout a {
  color: var(--ks-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

/* Tabs Integrated Cleanly Inside Unified 1000px Box */
.ks-tabs-card {
  margin-top: 26px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.ks-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 0;
  background: var(--ks-primary-soft);
  border-radius: 6px;
  padding: 4px 10px;
  gap: 6px;
}
.ks-tab-btn {
  padding: 11px 16px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--ks-muted);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.ks-tab-btn.is-active {
  color: var(--ks-primary-dark);
  border-bottom-color: var(--ks-primary);
}
.ks-tab-panel {
  display: none;
  padding: 20px 4px 4px;
  line-height: 1.72;
  font-size: 15.5px;
}
.ks-tab-panel.is-active {
  display: block;
}

/* Fox-Style L-Bracket Section Heading */
.ks-related-head h2 {
  position: relative;
  margin: 0;
  padding: 5px 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ks-ink);
}
.ks-related-head h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--ks-primary);
  border-left: 3px solid var(--ks-primary);
}

.ks-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.ks-specs-table th,
.ks-specs-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--ks-border);
  text-align: left;
  font-size: 14px;
}
.ks-specs-table th {
  width: 240px;
  background: var(--ks-bg);
  color: var(--ks-ink);
  font-weight: 700;
}

/* Related Slider */
.ks-related-section {
  margin-top: 34px;
}
.ks-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ks-slider-arrows {
  display: flex;
  gap: 8px;
}
.ks-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ks-border);
  background: #ffffff;
  color: var(--ks-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ks-arrow-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
@media (any-hover: hover) {
  .ks-related-section:hover .ks-arrow-btn {
    opacity: 1;
    pointer-events: auto;
  }
}
.ks-arrow-btn:hover {
  background: var(--ks-primary);
  border-color: var(--ks-primary);
  color: #ffffff;
}
.ks-related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 14px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.ks-related-track .ks-product-card {
  scroll-snap-align: start;
}
.ks-related-track::-webkit-scrollbar { display: none; }
.ks-related-track .ks-product-card { scroll-snap-align: start; }

/* Cart */
.ks-free-ship-bar {
  background: var(--ks-primary-soft);
  border: 1px solid rgba(46, 188, 19, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.ks-fs-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.ks-fs-text .ks-svg {
  color: var(--ks-primary);
}
.ks-fs-track {
  height: 8px;
  background: #d8edd8;
  border-radius: 999px;
  overflow: hidden;
}
.ks-fs-track span {
  display: block;
  height: 100%;
  background: var(--ks-primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.ks-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}

.ks-cart-main,
.ks-cart-totals,
.ks-cart-perks,
.ks-co-card,
.ks-acc-card,
.ks-login-card,
.ks-empty-box {
  background: var(--ks-surface);
  border: 1px solid #e6eee7;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 20, 0.07);
}

.ks-cart-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ks-empty-box {
  text-align: center;
  padding: 46px 20px;
}
.ks-empty-ico {
  color: var(--ks-primary);
  margin-bottom: 10px;
}

.ks-cart-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.ks-cart-card-title,
.ks-sum-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ks-cart-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ks-primary);
  flex-shrink: 0;
}
.ks-cart-card-title h2,
.ks-sum-head h3 {
  margin: 0 !important;
  font-size: 19px;
  font-weight: 700;
  color: var(--ks-ink);
  line-height: 1.3;
}
.ks-cart-cnt {
  font-size: 13.5px;
  color: var(--ks-muted);
  font-weight: 500;
}
.ks-cart-head-back {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ks-primary-dark);
  text-decoration: none;
}
.ks-cart-head-back:hover {
  text-decoration: underline;
}

.ks-cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.ks-cart-table thead th {
  padding: 12px 12px;
  background: #f3f7f4;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  color: #5b6962;
  text-align: left;
  white-space: nowrap;
}
.ks-cart-table thead th:first-child { border-radius: 10px 0 0 10px; }
.ks-cart-table thead th:last-child { border-radius: 0 10px 10px 0; text-align: center; }
.ks-cart-table thead th.ks-th-qty,
.ks-cart-table thead th.ks-th-act { text-align: center; }
.ks-cart-table thead th.ks-th-price,
.ks-cart-table thead th.ks-th-sub { text-align: right; }

.ks-cart-table tbody td {
  padding: 18px 12px;
  border-bottom: 1px solid #edf2ee;
  font-size: 14px;
  vertical-align: middle;
}
.ks-ct-prod {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ks-ct-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e4ece6;
  background: #f8fbf8;
}
.ks-ct-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ks-ct-meta { min-width: 0; }
.ks-ct-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ks-ink);
  text-decoration: none;
}
.ks-ct-title:hover { color: var(--ks-primary-dark); }
.ks-ct-var {
  font-size: 12.5px;
  color: var(--ks-muted);
  margin-top: 3px;
}
.ks-ct-price {
  text-align: right;
  font-weight: 700;
  color: var(--ks-primary-dark);
  white-space: nowrap;
}
.ks-ct-qty { text-align: center; }
.ks-ct-sub {
  text-align: right;
  white-space: nowrap;
  color: var(--ks-ink);
}
.ks-ct-act { text-align: center; }

.ks-qty-cart {
  height: 36px;
  border: 1px solid #dce6de;
  border-radius: 8px;
  background: #ffffff;
}
.ks-qty-cart .ks-qty-btn {
  width: 32px;
  background: #ffffff;
  color: var(--ks-primary-dark);
  font-size: 16px;
  font-weight: 700;
}
.ks-qty-cart .ks-qty-btn:first-child { border-right: 1px solid #edf2ee; }
.ks-qty-cart .ks-qty-btn:last-child { border-left: 1px solid #edf2ee; }
.ks-qty-cart .ks-qty-input {
  width: 38px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ks-ink);
}

.ks-rm-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #82928a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ks-rm-btn:hover {
  background: #fff1f2;
  color: var(--ks-red);
}

/* Tinted Coupon Card Box */
.ks-coupon-box {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ks-primary) 8%, #f4fbf6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
}
.ks-coupon-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 240px;
}
.ks-coupon-ico {
  color: var(--ks-primary);
  display: inline-flex;
  flex-shrink: 0;
}
.ks-coupon-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ks-primary-dark);
  margin-bottom: 2px;
}
.ks-coupon-desc {
  font-size: 12.5px;
  color: #5b6962;
  line-height: 1.4;
}
.ks-coupon-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 340px;
}
.ks-coupon-controls input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d5e2d8;
  border-radius: 9px;
  background: #ffffff;
  font-size: 13.5px;
  color: var(--ks-ink);
  outline: none;
}
.ks-coupon-controls input:focus {
  border-color: var(--ks-primary);
}
.ks-coupon-btn {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: var(--ks-primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}
.ks-coupon-btn:hover { filter: brightness(0.93); }
.ks-coupon-applied {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ks-primary-dark);
  padding-top: 8px;
  border-top: 1px dashed rgba(46, 188, 19, 0.25);
}
.ks-link-rm {
  border: 0;
  background: none;
  color: var(--ks-red);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ks-cart-foot-bar {
  margin-top: 18px;
}
.ks-cart-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 9px;
  background: #f2f6f3;
  color: var(--ks-ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ks-cart-back-btn:hover {
  background: #e6efe8;
  color: var(--ks-primary-dark);
}

/* Right Order Summary & Perks Cards */
.ks-sum-head { margin-bottom: 16px; }
.ks-co-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}
.ks-tot-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #edf2ee;
  font-size: 14px;
  color: #4b5a52;
}
.ks-tot-line strong { color: var(--ks-ink); font-weight: 500; }
.ks-tot-disc strong { color: var(--ks-primary-dark); font-weight: 700; }
.ks-tot-grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 18px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ks-ink);
}
.ks-tot-grand strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--ks-primary-dark);
}
.ks-cart-checkout-btn {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  background: var(--ks-primary);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: filter 0.16s ease, transform 0.12s ease;
}
.ks-cart-checkout-btn:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}
.ks-cart-safe-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2ee;
}
.ks-cart-safe-ico {
  color: var(--ks-primary);
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 1px;
}
.ks-cart-safe-note strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ks-ink);
  margin-bottom: 2px;
}
.ks-cart-safe-note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ks-muted);
}

.ks-cart-perks {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ks-perk-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.ks-perk-ico {
  color: var(--ks-primary);
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 2px;
}
.ks-perk-row strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ks-ink);
  margin-bottom: 3px;
}
.ks-perk-row p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ks-muted);
}
.ks-continue-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ks-muted);
  text-decoration: none;
}
.ks-continue-link:hover { color: var(--ks-primary-dark); }

/* Checkout & VietQR (Modern 2-Card Layout) */
.ks-co-notices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.ks-co-notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ks-primary) 16%, #4c645b);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
}
.ks-co-notice-bar svg { flex-shrink: 0; opacity: 0.9; }
.ks-co-notice-bar a,
.ks-co-notice-link {
  color: #ffffff !important;
  text-decoration: underline;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}
.ks-co-coupon-drawer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e4ece6;
  border-radius: 12px;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 20, 0.06);
}
.ks-co-coupon-drawer[hidden] { display: none !important; }
.ks-co-coupon-drawer input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d5e2d8;
  border-radius: 9px;
  background: #f5f9f6;
  font-size: 14px;
  color: var(--ks-ink);
  outline: none;
}
.ks-co-coupon-drawer input:focus {
  border-color: var(--ks-primary);
  background: #ffffff;
}

.ks-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.ks-co-card {
  overflow: hidden;
}
.ks-co-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ks-co-card-head h2 {
  margin: 0 !important;
  font-size: 18px;
  font-weight: 700;
  color: var(--ks-ink);
}
.ks-co-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ks-co-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ks-co-field {
  min-width: 0;
  width: 100%;
}
.ks-co-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ks-ink);
  margin-bottom: 6px;
}
.ks-req { color: var(--ks-red); }
.ks-co-field input,
.ks-co-field textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px;
  border: 1.5px solid #e4ece6;
  border-radius: 10px;
  background: #f4f8f5;
  font-size: 14px;
  color: var(--ks-ink);
  outline: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.ks-co-field textarea {
  resize: vertical !important;
  min-height: 98px;
  line-height: 1.5;
}
.ks-co-field input:focus,
.ks-co-field textarea:focus {
  border-color: var(--ks-primary);
  background: #ffffff;
}
.ks-co-additional {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf2ee;
}
.ks-co-additional h3 {
  margin: 0 0 12px !important;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ks-ink);
}
.ks-co-extra {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #d7e3da;
  font-size: 13px;
}

.ks-co-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ks-co-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 9px;
  background: #f3f7f4;
  font-size: 13px;
  font-weight: 500;
  color: #5b6962;
  margin-bottom: 6px;
}
.ks-co-items {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}
.ks-co-items li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid #edf2ee;
  font-size: 14px;
  line-height: 1.45;
}
.ks-co-item-name {
  color: var(--ks-ink);
}
.ks-co-item-qty {
  margin-left: 5px;
  color: var(--ks-primary-dark);
  font-weight: 700;
  white-space: nowrap;
}
.ks-co-item-price {
  white-space: nowrap;
  color: var(--ks-ink);
  font-weight: 500;
}
.ks-co-items small {
  display: block;
  margin-top: 2px;
  color: var(--ks-muted);
  font-size: 12.5px;
}

.ks-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 16px;
}
.ks-pay-option {
  display: block;
  cursor: pointer;
}
.ks-pay-radio-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ks-ink);
}
.ks-pay-radio-row input {
  margin: 0;
  accent-color: var(--ks-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.ks-pay-bubble {
  display: none;
  position: relative;
  margin-top: 10px;
  padding: 13px 15px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ks-primary) 9%, #f3faf5);
  color: #46574f;
  font-size: 13px;
  line-height: 1.55;
}
.ks-pay-bubble::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 22px;
  width: 14px;
  height: 14px;
  background: color-mix(in srgb, var(--ks-primary) 9%, #f3faf5);
  transform: rotate(45deg);
}
.ks-pay-option:has(input:checked) .ks-pay-bubble {
  display: block;
}
.ks-co-privacy {
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2ee;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ks-muted);
}
.ks-co-submit-btn {
  border: 0;
  cursor: pointer;
}

.ks-co-msg {
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--ks-red);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.ks-thankyou {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--ks-border);
  border-radius: 18px;
  padding: 32px 26px;
  text-align: center;
}
.ks-ty-icon {
  color: var(--ks-primary);
  margin-bottom: 10px;
}
.ks-ty-summary {
  text-align: left;
  background: var(--ks-bg);
  border: 1px solid var(--ks-border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.ks-ty-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ks-price-red { color: var(--ks-red); }

.ks-vietqr-card {
  text-align: left;
  border: 1.5px solid var(--ks-primary);
  background: var(--ks-primary-soft);
  border-radius: 14px;
  padding: 18px;
  margin: 20px 0;
}
.ks-vietqr-card h4 {
  margin: 0 0 14px;
  color: var(--ks-primary-dark);
}
.ks-vietqr-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.ks-vietqr-img img {
  width: 190px;
  border-radius: 10px;
  border: 1px solid var(--ks-border);
  background: #ffffff;
  display: block;
}
.ks-vietqr-info p {
  margin: 0 0 7px;
  font-size: 14px;
}
.ks-ck-code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--ks-primary);
  color: var(--ks-primary-dark);
  font-weight: 700;
}
.ks-ty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* Account */
.ks-login-card {
  max-width: 440px;
  margin: 0 auto;
}
.ks-login-card input[type="text"],
.ks-login-card input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--ks-border);
  border-radius: 9px;
}
.ks-login-card .button-primary {
  width: 100%;
  background: var(--ks-primary);
  border: 0;
  color: #ffffff;
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.ks-acc-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ks-acc-header h2 { margin: 0; }
.ks-acc-header p { margin: 4px 0 0; color: var(--ks-muted); }

.ks-st-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--ks-primary-soft);
  color: var(--ks-primary-dark);
}
.ks-st-kh-pending,
.ks-st-kh-on-hold { background: #fef3c7; color: #92400e; }
.ks-st-kh-cancelled,
.ks-st-kh-refunded { background: #ffe4e6; color: #be123c; }

/* Mini Cart (Header Dropdown) */
.ks-mini-empty {
  padding: 18px 12px;
  text-align: center;
}
.ks-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}
.ks-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e7efe7;
}
.ks-mini-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.ks-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ks-mini-info {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.ks-mini-title {
  display: block;
  font-weight: 700;
  color: #17231f;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ks-mini-var {
  display: block;
  font-size: 11px;
  color: #5b6962;
}
.ks-mini-qty {
  font-size: 12px;
  color: #5b6962;
}
.ks-mini-rm {
  border: 0;
  background: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}
.ks-mini-rm:hover { color: #e11d48; }
.ks-mini-foot {
  padding-top: 12px;
}
.ks-mini-sub {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.ks-mini-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Toast Notification */
.ks-toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ks-toast {
  background: #17231f;
  color: #ffffff;
  border-left: 4px solid var(--ks-primary, #2ebc13);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ks-toast a {
  color: var(--ks-primary, #7bf563);
  text-decoration: underline;
  font-weight: 700;
}
.ks-toast.is-err { border-left-color: #e11d48; }

/* ============================================================================
 * Kharo Account — Login & Register Forms
 * From Uiverse.io by rajesh_4474 - https://uiverse.io/rajesh_4474/terrible-eel-14
 * MIT License, Copyright (c) rajesh_4474 (Rajesh Paudel)
 * ============================================================================ */
@keyframes ksAuthFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================================
   ACCOUNT PAGE — LOGGED-OUT AUTH CARD & LOGGED-IN DASHBOARD (ThemeGiaTot Style)
   ============================================================================ */
.ks-account-wrap {
  --ks-acc-primary: var(--kharo-primary, var(--ks-primary, #2ebc13));
  --ks-acc-primary-soft: color-mix(in srgb, var(--ks-acc-primary) 11%, #ffffff);
  --ks-acc-primary-dark: color-mix(in srgb, var(--ks-acc-primary) 76%, #000000);
}

.ks-auth-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0 44px;
}

.ks-auth-card {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--ks-acc-primary);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  animation: ksAuthFadeIn 0.35s ease-out;
}

.ks-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--ks-acc-primary);
  padding: 3px 3px 0;
}

.ks-auth-tab {
  min-height: 50px;
  border: 0;
  border-radius: 13px 13px 0 0;
  background: transparent;
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.ks-auth-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.12);
}

.ks-auth-tab.is-active {
  background: #ffffff;
  color: var(--ks-acc-primary);
}

.ks-auth-body {
  padding: 24px 26px 28px;
}

.ks-auth-form {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ks-auth-form[hidden] {
  display: none !important;
}

.ks-auth-heading {
  text-align: left;
  color: #111827;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ks-auth-intro {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.45;
}

.ks-auth-msg {
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 500;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}
.ks-auth-msg.is-ok {
  background: #eefaf0;
  border-color: var(--ks-acc-primary);
  color: #166534;
}

.ks-auth-input-group {
  position: relative;
  margin-bottom: 20px;
}

.ks-auth-input-group .ks-auth-label {
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 0 6px;
  background: #ffffff;
  font-size: 12.5px;
  color: #7c8798;
  font-weight: 500;
  line-height: 20px;
  transition: color 0.18s ease;
  pointer-events: none;
  z-index: 2;
}

.ks-auth-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ks-acc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.ks-auth-input-group input {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 44px;
  font-size: 15px;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #c9ced7;
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ks-auth-input-pass input {
  padding-right: 48px;
}

.ks-auth-input-group input:focus {
  border-color: var(--ks-acc-primary);
  box-shadow: 0 0 0 1px var(--ks-acc-primary);
}

.ks-auth-input-group:focus-within .ks-auth-label {
  color: var(--ks-acc-primary);
}

.ks-auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ks-acc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
}
.ks-auth-eye:hover {
  background: var(--ks-acc-primary-soft);
}
.ks-auth-eye .ks-eye-open {
  display: none;
}
.ks-auth-eye[aria-pressed="true"] .ks-eye-open {
  display: block;
}
.ks-auth-eye[aria-pressed="true"] .ks-eye-closed {
  display: none;
}

.ks-auth-pass-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.ks-auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 20px;
  font-size: 14px;
}

.ks-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
}
.ks-auth-remember input {
  accent-color: var(--ks-acc-primary);
  width: 15px;
  height: 15px;
  margin: 0;
}

.ks-auth-forgot a {
  font-size: 14px;
  color: var(--ks-acc-primary);
  text-decoration: none;
  font-weight: 500;
}
.ks-auth-forgot a:hover {
  text-decoration: underline;
}

.ks-auth-submit {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--ks-acc-primary) 88%, #ffffff), var(--ks-acc-primary-dark));
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.ks-auth-submit:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: none;
}
.ks-auth-submit:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}

/* Logged-in Dashboard Shell (Sidebar + Main Card) */
.ks-acc-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 14px 0 42px;
}

.ks-acc-sidebar {
  background: #ffffff;
  border: 1px solid #e5ece8;
  border-radius: 14px;
  padding: 20px 14px;
}

.ks-acc-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eef2f0;
}

.ks-acc-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ks-acc-primary);
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-acc-user-meta {
  min-width: 0;
}

.ks-acc-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ks-acc-user-email {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ks-acc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ks-acc-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none !important;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.ks-acc-nav-item:hover {
  background: #f5f7f9;
  color: #111827;
}

.ks-acc-nav-item.is-active {
  background: var(--ks-acc-primary-soft);
  color: var(--ks-acc-primary);
  font-weight: 600;
}

.ks-acc-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-acc-logout-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f0;
}

.ks-acc-logout-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #dc2626 !important;
  text-decoration: none !important;
  transition: background-color 0.16s ease;
}

.ks-acc-logout-link:hover {
  background: #fef2f2;
  color: #b91c1c !important;
}

.ks-acc-main {
  background: #ffffff;
  border: 1px solid #e5ece8;
  border-radius: 14px;
  padding: 28px 30px;
  min-height: 440px;
}

.ks-acc-panel[hidden] {
  display: none !important;
}

.ks-acc-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
  line-height: 1.25;
}

.ks-acc-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 22px;
  line-height: 1.5;
}

.ks-acc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.ks-acc-stat {
  background: #f3f5f8;
  border-radius: 12px;
  padding: 18px 20px;
}

.ks-acc-stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.ks-acc-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}

.ks-acc-currency {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ks-acc-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.ks-acc-shortcut {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  text-decoration: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ks-acc-shortcut:hover {
  border-color: color-mix(in srgb, var(--ks-acc-primary) 45%, #e6ebf0);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.ks-acc-shortcut-ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--ks-acc-primary-soft);
  color: var(--ks-acc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ks-acc-shortcut-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.ks-acc-shortcut-text span {
  display: block;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.4;
}

.ks-acc-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ks-acc-recent-head h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.ks-acc-recent-head a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ks-acc-primary);
  text-decoration: none;
}

.ks-acc-recent-head a:hover {
  text-decoration: underline;
}

.ks-acc-empty {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.ks-acc-empty-box {
  padding: 28px 20px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #d8e1ea;
  border-radius: 12px;
}

.ks-acc-empty-box p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14.5px;
}

.ks-acc-table-wrap {
  overflow-x: auto;
}

.ks-acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ks-acc-table th {
  text-align: left;
  padding: 11px 12px;
  background: #f5f7fa;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 700;
  border-bottom: 1px solid #e5ebf1;
}

.ks-acc-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f6;
  color: #1f2937;
  vertical-align: middle;
}

.ks-acc-link-btn {
  border: 0;
  background: var(--ks-acc-primary-soft);
  color: var(--ks-acc-primary);
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ks-acc-link-btn:hover {
  background: var(--ks-acc-primary);
  color: #ffffff;
}

.ks-acc-order-detail td {
  background: #f8fafc;
  padding: 14px 16px;
}

.ks-acc-order-items {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ks-acc-order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
}

.ks-acc-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: #4b5563;
}

.ks-acc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ks-acc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ks-acc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ks-acc-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}

.ks-acc-field input,
.ks-acc-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d8e0;
  border-radius: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ks-acc-field input:focus,
.ks-acc-field textarea:focus {
  border-color: var(--ks-acc-primary);
  box-shadow: 0 0 0 2px var(--ks-acc-primary-soft);
}

.ks-acc-fieldset-title {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.ks-acc-fieldset-title small {
  font-weight: 400;
  color: #6b7280;
  font-size: 13px;
}

.ks-acc-form-actions {
  padding-top: 4px;
}

.ks-acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--ks-acc-primary);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.ks-acc-btn:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}

.ks-acc-btn:disabled {
  opacity: 0.65;
  transform: none;
  cursor: not-allowed;
}

.ks-acc-wishlist-wrap .kw-list-head {
  display: none;
}

.ks-acc-wishlist-wrap .kw-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .ks-acc-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ks-acc-main {
    padding: 22px 20px;
  }
  .ks-acc-wishlist-wrap .kw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ks-acc-stats,
  .ks-acc-shortcuts,
  .ks-acc-form-grid,
  .ks-auth-pass-row {
    grid-template-columns: 1fr;
  }
  .ks-auth-body {
    padding: 20px 16px 22px;
  }
  .ks-auth-tab {
    font-size: 15px;
    min-height: 46px;
  }
  .ks-auth-submit {
    min-height: 48px;
    font-size: 15.5px;
  }
  .ks-acc-main {
    padding: 18px 15px;
  }
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .ks-cols-4, .ks-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ks-hero-card,
  .ks-cart-layout,
  .ks-checkout-grid { grid-template-columns: 1fr; }
  .ks-related-track { grid-auto-columns: calc(50% - 10px); }
}

@media (max-width: 640px) {
  .ks-cols-3, .ks-cols-4, .ks-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ks-fox-product-box { padding: 16px; }
  .ks-hero-card { padding: 0; gap: 18px; }
  .ks-card-split-foot { grid-template-columns: 1fr; }
  .ks-card-price { border-right: 0; padding: 9px 8px; font-size: 13.5px; }
  .ks-card-btn { padding: 9px 8px; font-size: 11.5px; }
  .ks-single-title { font-size: 21px; }
  .ks-single-price { font-size: 22px; }
  .ks-co-row { grid-template-columns: 1fr; }
  .ks-related-track { grid-auto-columns: calc(50% - 6px); gap: 12px; }

  .ks-cart-main,
  .ks-cart-totals,
  .ks-cart-perks {
    padding: 18px 16px;
  }
  .ks-cart-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ks-cart-table thead { display: none; }
  .ks-cart-table tbody,
  .ks-cart-table tr {
    display: block;
  }
  .ks-cart-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "prod prod act"
      "price qty qty"
      "sub sub sub";
    align-items: center;
    gap: 12px 10px;
    border-bottom: 1px solid #edf2ee;
    padding: 14px 0;
  }
  .ks-cart-table tbody td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }
  .ks-cart-table tbody td.ks-ct-prod {
    grid-area: prod;
    display: flex;
    align-items: flex-start;
  }
  .ks-cart-table tbody td.ks-ct-act {
    grid-area: act;
    align-self: start;
  }
  .ks-cart-table tbody td.ks-ct-price {
    grid-area: price;
    text-align: left;
  }
  .ks-cart-table tbody td.ks-ct-qty {
    grid-area: qty;
    text-align: left;
  }
  .ks-cart-table tbody td.ks-ct-sub {
    grid-area: sub;
    text-align: right;
    font-size: 15px;
  }
  .ks-coupon-box {
    padding: 16px;
  }
  .ks-coupon-controls {
    max-width: 100%;
    width: 100%;
  }
  .ks-cart-back-btn {
    width: 100%;
  }
}
