/* Template 23 storefront – Askalan-inspired visual system.
   Scoped selectors preserve the other 22 existing themes. */
body.template23 {
  --t23-ink: #14110c;
  --t23-black: #0b0a0a;
  --t23-accent: #eb451a;
  --t23-soft: #fff5f2;
  --t23-muted: #76716c;
  --t23-width: 1240px;
  background: #fff;
  color: var(--t23-ink);
  font-family: "Poppins", "Hind Siliguri", system-ui, sans-serif;
  padding-bottom: 0;
  overflow-x: hidden;
}
body.template23 *, body.template23 *::before, body.template23 *::after { box-sizing: border-box; }
body.template23 .t23-container { width: min(91%, var(--t23-width)); margin-inline: auto; }
body.template23 a { text-decoration: none; }
body.template23 button { cursor: pointer; }
body.template23 a:focus-visible, body.template23 button:focus-visible, body.template23 input:focus-visible { outline: 2px solid var(--t23-accent); outline-offset: 3px; }
body.template23 .t23-announcement { min-height: 40px; background: #0b0a0a; color: #fff; font-size: 13px; display: flex; gap: 14px; align-items: center; justify-content: center; padding: 8px 16px; text-align: center; line-height: 1.4; letter-spacing: 0.02em; }
body.template23 .t23-announcement span { opacity: .96; }
body.template23 header.header { background: var(--t23-black); color: #fff; padding: 0; position: relative; width: 100%; border: 0; box-shadow: none; z-index: 70; }
body.template23 .t23-header-inner { width: min(91%, var(--t23-width)); min-height: 70px; margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
body.template23 header.header .t23-brand, body.template23 header.header .t23-brand:hover { color: #fff; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; line-height: 1.1; text-transform: uppercase; letter-spacing: .025em; width: fit-content; }
body.template23 .t23-brand img { display: block; height: auto; max-height: 48px; width: auto; max-width: 145px; object-fit: contain; }
body.template23 header.header .nav-menu { display: block; position: static; width: auto; min-height: auto; padding: 0; background: transparent; box-shadow: none; border: 0; transform: none; overflow: visible; z-index: auto; }
body.template23 header.header .nav-menu .navbar-nav { flex-direction: row; align-items: center; justify-content: center; display: flex; gap: clamp(10px, 1.2vw, 20px); padding: 0; margin: 0; }
body.template23 header.header .nav-menu .navbar-nav > li { list-style: none; margin: 0; padding: 0; position: relative; }
body.template23 header.header .nav-menu .navbar-nav > li > a,
body.template23 header.header .nav-menu .navbar-nav > li > button { background: none; border: none; padding: 14px 4px; font-size: 13px; letter-spacing: .025em; text-transform: uppercase; font-weight: 500; color: #fff; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
body.template23 header.header .nav-menu a:hover, body.template23 header.header .nav-menu button:hover { color: var(--t23-accent); }
/* Navigation Dropdown Hierarchy & Hover Engine */
body.template23 header.header .nav-menu .t23-nav-list { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 20px); margin: 0; padding: 0; list-style: none; }
body.template23 header.header .nav-menu .t23-nav-item { position: relative; margin: 0; padding: 0; list-style: none; }
body.template23 header.header .nav-menu .t23-nav-link-wrap { display: flex; align-items: center; gap: 6px; }
body.template23 header.header .nav-menu .t23-nav-link { background: none; border: none; padding: 12px 6px; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; font-weight: 500; color: #fff; text-decoration: none; display: inline-flex; align-items: center; transition: color 0.2s; white-space: nowrap; }
body.template23 header.header .nav-menu .t23-nav-link:hover { color: var(--t23-accent); }
body.template23 header.header .nav-menu .t23-nav-toggle { background: transparent; border: none; color: #fff; padding: 4px; cursor: pointer; display: inline-flex; align-items: center; font-size: 10px; }

/* Level 1 Submenu */
body.template23 header.header .nav-menu .t23-submenu-wrapper {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 235px !important;
  background: #ffffff !important;
  z-index: 1050 !important;
  border-radius: 5px !important;
  padding: 6px 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(228, 65, 0, 0.12) !important;
  display: none !important;
}
/* Invisible hover bridge to eliminate pointer drop */
body.template23 header.header .nav-menu .t23-submenu-wrapper::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}
body.template23 header.header .nav-menu .t23-submenu { list-style: none; margin: 0; padding: 0; width: 100%; display: block !important; position: static !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
body.template23 header.header .nav-menu .t23-submenu li { list-style: none; position: relative; margin: 0; padding: 0; }
body.template23 header.header .nav-menu .t23-submenu a { color: #222222 !important; display: block; font-size: 13px !important; padding: 9px 16px !important; text-decoration: none; white-space: nowrap; transition: background 0.18s, color 0.18s; }
body.template23 header.header .nav-menu .t23-submenu li:not(:last-child) { border-bottom: 1px solid #f2f0eb; }
body.template23 header.header .nav-menu .t23-submenu li:hover > .t23-sub-link-wrap > a,
body.template23 header.header .nav-menu .t23-submenu a:hover { background: #fff8f5 !important; color: var(--t23-accent) !important; }
body.template23 header.header .nav-menu .t23-sub-link-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
body.template23 header.header .nav-menu .t23-sub-link-wrap a { flex: 1; }
body.template23 header.header .nav-menu .t23-sub-toggle { background: transparent; border: none; padding: 8px 12px; color: #888; cursor: pointer; font-size: 10px; }

/* Level 2 Nested Submenu */
body.template23 header.header .nav-menu .t23-child-submenu-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  min-width: 235px !important;
  background: #ffffff !important;
  z-index: 1060 !important;
  border-radius: 5px !important;
  padding: 6px 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(228, 65, 0, 0.12) !important;
  display: none !important;
}
/* Horizontal hover bridge for nested dropdown */
body.template23 header.header .nav-menu .t23-child-submenu-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  width: 16px;
  background: transparent;
}
body.template23 header.header .nav-menu .t23-child-submenu { list-style: none; margin: 0; padding: 0; width: 100%; display: block !important; position: static !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* Desktop Hover & Focus Rules (min-width: 992px) */
@media (min-width: 992px) {
  body.template23 header.header .nav-menu .t23-nav-item:hover > .t23-submenu-wrapper,
  body.template23 header.header .nav-menu .t23-nav-item:focus-within > .t23-submenu-wrapper,
  body.template23 header.header .nav-menu .t23-nav-item.open > .t23-submenu-wrapper {
    display: block !important;
  }
  body.template23 header.header .nav-menu .t23-sub-item:hover > .t23-child-submenu-wrapper,
  body.template23 header.header .nav-menu .t23-sub-item:focus-within > .t23-child-submenu-wrapper,
  body.template23 header.header .nav-menu .t23-sub-item.open > .t23-child-submenu-wrapper {
    display: block !important;
  }
}
body.template23 header.header .t23-actions { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 1.5vw, 25px); }
body.template23 header.header .t23-icon-btn, body.template23 header.header .t23-icon-btn:hover { background: transparent; border: none; padding: 7px; line-height: 1; color: #fff; font-size: 17px; }
body.template23 header.header .cart-icon { background: transparent; display: inline-flex; position: relative; height: auto; width: auto; border: none; padding: 7px; margin: 0; color: #fff; font-size: 17px; }
body.template23 header.header .cart-count { position: absolute; top: -3px; right: -5px; background: #e14002; border-radius: 50%; min-width: 17px; height: 17px; line-height: 17px; font-size: 10px; font-weight: 700; color: #fff; text-align: center; }
body.template23 header.header .user-btn { color: #fff; background: none; border: none; font-size: 17px; padding: 7px; }
body.template23 header.header .user-menu { position: relative; }
body.template23 header.header .user-submenu { display: none; position: absolute; top: 100%; right: 0; min-width: 165px; background: #fff; box-shadow: 0 8px 25px #0003; z-index: 82; padding: 7px 0; }
body.template23 header.header .user-submenu a { display: block; padding: 10px 15px; color: #111; font-size: 12px; }
body.template23 header.header .user-submenu a:hover { background: #f6f5f3; }
body.template23 .t23-search-panel { position: relative; }
body.template23 .t23-search-panel summary { list-style: none; }
body.template23 .t23-search-panel summary::-webkit-details-marker { display: none; }
body.template23 .t23-search-panel[open] .t23-search-box { display: flex; }
body.template23 .t23-search-box { position: absolute; top: calc(100% + 10px); right: 0; width: min(340px, 84vw); padding: 8px; border: 1px solid #e3e1de; box-shadow: 0 8px 30px #0002; background: #fff; display: flex; z-index: 90; }
body.template23 .t23-search-box input { min-width: 0; flex: 1; padding: 9px; border: 1px solid #ddd; border-radius: 2px; font-size: 14px; background: #fff; color: #222; }
body.template23 .t23-search-box button { border: none; color: #fff; background: #111; padding: 8px 12px; }
body.template23 #searchSuggestions { display: none; position: absolute; top: 100%; left: 0; width: 100%; max-height: 320px; overflow: auto; color: #161616; background: #fff; z-index: 100; box-shadow: 0 8px 20px #0002; }
body.template23 .t23-mobile-toggle, body.template23 .t23-mobile-close { display: none; }
body.template23 .site-content { min-height: 0; }
body.template23 .t23-home { width: 100%; padding-bottom: 32px; }
body.template23 .t23-hero { width: 100%; position: relative; overflow: hidden; background: #e7d4b4; }
body.template23 .t23-hero-slides { position: relative; }
body.template23 .t23-hero-slide { width: 100%; opacity: 0; visibility: hidden; position: absolute; inset: 0; pointer-events: none; transition: opacity .25s ease; }
body.template23 .t23-hero-slide.is-active { position: relative; visibility: visible; opacity: 1; pointer-events: auto; }
body.template23 .t23-hero-slide a { display: block; width: 100%; }
body.template23 .t23-hero-slide img { width: 100%; height: auto; max-height: 650px; aspect-ratio: 1600 / 590; object-fit: cover; display: block; }
body.template23 .t23-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: #ffffffa6; color: #332311; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-size: 11px; z-index: 2; }
body.template23 .t23-hero-prev { left: clamp(8px, 2vw, 26px); }
body.template23 .t23-hero-next { right: clamp(8px, 2vw, 26px); }
body.template23 .t23-hero-dots { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
body.template23 .t23-hero-dots button { border: 0; padding: 0; border-radius: 50%; width: 6px; height: 6px; background: #32220d80; }
body.template23 .t23-hero-dots button.is-active { background: #2b230e; width: 15px; border-radius: 12px; }
body.template23 .t23-section { padding-block: clamp(24px, 3vw, 44px) 0; }
body.template23 .t23-section-title { margin: 0 0 clamp(14px, 2vw, 24px); color: #111; text-align: center; font-size: clamp(17px, 2vw, 25px); font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .035em; }
body.template23 .t23-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1vw, 18px); }
body.template23 .t23-product-card { min-width: 0; border: 1px solid rgba(228, 65, 0, 0.08); background: #ffffff; display: flex; flex-direction: column; padding: 7px; border-radius: 5px; transition: box-shadow .2s ease, transform .2s ease; }
body.template23 .t23-product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225, 64, 2, 0.08); border-color: rgba(228, 65, 0, 0.2); }
body.template23 .t23-product-photo { width: 100%; display: block; position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #f5eee8; border-radius: 4px; }
body.template23 .t23-product-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.template23 .t23-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #aaa; }
body.template23 .t23-photo-badge { position: absolute; top: 0; left: 0; color: #fff; background: var(--t23-accent); font-size: clamp(9px, .8vw, 11px); font-weight: 600; line-height: 1.1; padding: 5px 7px; }
body.template23 .t23-product-info { text-align: center; display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 9px 0 0; }
body.template23 .t23-product-title { color: #1a1a1a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; font-size: 14px; line-height: 1.35; white-space: normal; font-weight: 400; }
body.template23 .t23-product-title:hover { color: var(--t23-accent); }
body.template23 .t23-price { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; font-size: 14px; padding: 6px 0 10px; }
body.template23 .t23-now-price { color: #e14002; font-weight: 700; font-size: 15px; }
body.template23 .t23-old-price { color: #8c8884; font-size: 13px; text-decoration: line-through; }
body.template23 .t23-card-action { margin-top: auto; min-height: 42px; height: 42px; width: 100%; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid rgba(225, 64, 2, 0.25); background: rgba(225, 64, 2, 0.04); color: #e14002; border-radius: 5px; font-weight: 600; font-size: 13px; line-height: 1.2; text-decoration: none; transition: all 0.2s ease; }
body.template23 .t23-card-action:hover { color: #fff; background: #e14002; border-color: #e14002; }
body.template23 .t23-card-action.is-disabled { background: #eee; color: #777; border-color: #ddd; cursor: not-allowed; }
body.template23 .t23-view-more-wrap { text-align: center; margin-top: 18px; }
body.template23 .t23-view-more { display: inline-flex; color: #fff; background: #000000; font-size: 13px; font-weight: 600; padding: 11px 26px; min-width: 120px; justify-content: center; border-radius: 5px; transition: background 0.2s ease; }
body.template23 .t23-view-more:hover { color: #fff; background: #e14002; }
body.template23 .t23-promo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 32px; }
body.template23 .t23-promo-pair a, body.template23 .t23-promo-wide a { display: block; }
body.template23 .t23-promo-pair img { width: 100%; height: auto; aspect-ratio: 700 / 220; object-fit: cover; display: block; border-radius: 5px; transition: transform 0.25s ease, opacity 0.25s ease; }
body.template23 .t23-promo-pair a:hover img { opacity: 0.95; transform: scale(1.01); }
body.template23 .t23-promo-wide { margin-block: clamp(22px, 3vw, 42px) 0; }
body.template23 .t23-promo-wide img { width: 100%; height: auto; display: block; aspect-ratio: 1440 / 440; object-fit: cover; border-radius: 5px; }
body.template23 .t23-empty { text-align: center; padding: 70px 0; }
body.template23 .footer { background: #050505; color: #ddd; padding: 28px 0 0; }
body.template23 .footer .t23-footer-layout { width: min(91%, var(--t23-width)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(20px, 4vw, 70px); }
body.template23 .footer .t23-footer-logo { max-height: 45px; max-width: 160px; width: auto; object-fit: contain; display: block; margin-bottom: 10px; }
body.template23 .footer h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
body.template23 .footer p, body.template23 .footer li, body.template23 .footer a { color: #dcdcdc; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
body.template23 .footer a:hover { color: #fff; text-decoration: underline; }
body.template23 .footer ul { list-style: none; padding: 0; margin: 0; }
body.template23 .footer .footer-bottom { background: #050505; border-top: 1px solid #292929; color: #bbb; text-align: center; padding: 14px 12px; margin-top: 26px; font-size: 11px; overflow: hidden; }
body.template23 .footer .footer-bottom * { font-size: inherit; }
body.template23 .mobile-footer-bar { background: #fff; }
@media (min-width: 1500px) {
  body.template23 .t23-product-photo { aspect-ratio: 1 / 1.1; }
}
@media (max-width: 1100px) {
  body.template23 .t23-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  body.template23 .t23-header-inner { grid-template-columns: minmax(100px,1fr) auto minmax(100px,1fr); gap: 12px; }
  body.template23 header.header .nav-menu { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  body.template23 header.header .nav-menu::-webkit-scrollbar { display: none; }
  body.template23 header.header .nav-menu .navbar-nav { gap: 12px; flex-wrap: nowrap; }
  body.template23 header.header .nav-menu .navbar-nav > li > a,
  body.template23 header.header .nav-menu .navbar-nav > li > button { font-size: 11px; white-space: nowrap; }
}
@media (max-width: 800px) {
  body.template23 .t23-container { width: min(100% - 24px, var(--t23-width)); }
  body.template23 .t23-header-inner { width: min(100% - 24px, var(--t23-width)); min-height: 53px; display: flex; justify-content: space-between; align-items: center; }
  body.template23 .t23-mobile-toggle, body.template23 .t23-mobile-close { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; color: #fff; padding: 0; font-size: 18px; }
  body.template23 header.header .nav-menu { display: block; position: fixed; top: 0; left: 0; bottom: 0; background: #0f0f0f; width: min(320px, 85vw); padding: 20px; overflow-y: auto; transform: translateX(-105%); transition: transform .22s ease; z-index: 120; box-shadow: 2px 0 25px rgba(0,0,0,0.5); border-right: 1px solid #222; }
  body.template23 header.header .nav-menu.show, body.template23 header.header .nav-menu.active { transform: translateX(0); }
  body.template23 header.header .nav-menu .navbar-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 18px; }
  body.template23 header.header .nav-menu .navbar-nav > li > a,
  body.template23 header.header .nav-menu .navbar-nav > li > button { display: flex; width: 100%; padding: 12px 0; }
  body.template23 header.header .nav-menu .t23-submenu-wrapper,
  body.template23 header.header .nav-menu .t23-child-submenu-wrapper {
    position: static !important;
    width: 100% !important;
    min-width: auto !important;
    box-shadow: none !important;
    border: none !important;
    background: #1c1c1c !important;
    display: none !important;
    padding: 0 0 0 12px !important;
  }
  body.template23 header.header .nav-menu .t23-nav-item.open > .t23-submenu-wrapper,
  body.template23 header.header .nav-menu .t23-sub-item.open > .t23-child-submenu-wrapper {
    display: block !important;
  }
  body.template23 header.header .nav-menu .t23-submenu a,
  body.template23 header.header .nav-menu .t23-child-submenu a {
    color: #ffffff !important;
    white-space: normal !important;
    padding: 10px 14px !important;
  }
  body.template23 header.header .nav-menu .t23-sub-toggle { color: #aaa; }
  body.template23 .t23-actions { gap: 8px !important; }
  body.template23 .t23-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
  body.template23 .footer .t23-footer-layout { width: min(100% - 24px, var(--t23-width)); }
}
@media (max-width: 600px) {
  body.template23 .t23-announcement { min-height: 34px; font-size: 11.5px; padding: 6px 12px; }
  body.template23 .t23-brand img { max-width: 120px; max-height: 40px; }
  body.template23 .t23-hero-slide img { aspect-ratio: 2.1 / 1; }
  body.template23 .t23-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  body.template23 .t23-section { padding-top: 25px; }
  body.template23 .t23-product-card { padding: 6px; border-radius: 5px; }
  body.template23 .t23-product-title { font-size: 12px; }
  body.template23 .t23-now-price { font-size: 12px; }
  body.template23 .t23-card-action { min-height: 36px; height: 36px; font-size: 12px; border-radius: 5px; }
  body.template23 .t23-hero-arrow { width: 28px; height: 28px; }
  body.template23 .t23-promo-pair { padding-top: 24px; gap: 7px; }
  body.template23 .footer .t23-footer-layout { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 14px; }
  body.template23 .footer .t23-footer-layout > section:first-child { grid-column: 1/-1; }
  body.template23 .footer h3 { font-size: 13px; }
  body.template23 .footer p, body.template23 .footer li, body.template23 .footer a { font-size: 11px; }
  body.template23 .mobile-footer-bar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.template23 .t23-hero-slide, body.template23 .t23-product-card, body.template23 header.header .nav-menu { transition: none !important; }
}

/* Review / checkout feedback presented by Django messages. */
body.template23 .t23-flash-messages{padding-top:12px}
body.template23 .t23-flash{font-size:12px;line-height:1.5;border:1px solid #e3e3e3;background:#fafafa;color:#242424;border-radius:4px;margin-bottom:7px;padding:11px 13px}
body.template23 .t23-flash-success{background:#edf9f1;border-color:#cdebd5;color:#1a6d32}
body.template23 .t23-flash-error{background:#fff1ec;border-color:#f0cbbb;color:#963818}

/* Screenshot review: retain portrait product photography and badge honesty. */
body.template23 header.header .nav-menu .navbar-nav > li {
  border: 0 !important;
  box-shadow: none;
}
body.template23 .t23-discount-badge {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  padding: 5px 7px;
  border-radius: 0 2px 0 2px;
  background: #141414;
  color: #fff;
  font-size: clamp(9px, .8vw, 11px);
  font-weight: 700;
  line-height: 1.1;
}
body.template23 .t23-promo-pair > a:only-child {
  grid-column: 1 / -1;
}
body.template23 .t23-promo-pair > a:only-child img {
  aspect-ratio: 1440 / 370;
  object-fit: cover;
}

/* =====================================================================
   Template 23: Promotional Banners & Checkout Visual Styling
   ===================================================================== */

/* Category Promotional Banners */
body.template23 .t23-promo-pair {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 24px) !important;
  margin: 32px auto !important;
  width: min(100% - 32px, var(--t23-width, 1280px)) !important;
}
body.template23 .t23-promo-card {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #f4efe6;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.template23 .t23-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}
body.template23 .t23-promo-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 700 / 220;
}
@media (max-width: 640px) {
  body.template23 .t23-promo-pair {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 20px auto !important;
  }
}

/* Template 23 Checkout Redesign */
body.template23 #checkout {
  padding: 32px 0 64px;
  background: #fbfbfa;
}
body.template23 .t23-checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 991px) {
  body.template23 .t23-checkout-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
body.template23 .t23-checkout-card {
  background: #ffffff;
  border: 1px solid #e8e6e1;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}
body.template23 .t23-checkout-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f2f0eb;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.template23 .t23-form-group {
  margin-bottom: 16px;
}
body.template23 .t23-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
  text-transform: none;
}
body.template23 .t23-form-group input.form-control,
body.template23 .t23-form-group textarea.form-control,
body.template23 .t23-form-group select.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d9d7d2;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
  color: #222222;
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.template23 .t23-form-group input.form-control:focus,
body.template23 .t23-form-group textarea.form-control:focus,
body.template23 .t23-form-group select.form-control:focus {
  border-color: #e14002;
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 64, 2, 0.15);
}
body.template23 .payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
body.template23 .payment-method-label {
  border: 1.5px solid #dedcd7;
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #2a2a2a;
  background: #fafaf8;
  transition: all 0.2s ease;
  margin: 0;
}
body.template23 .payment-method-label:hover {
  border-color: #e14002;
  background: #ffffff;
}
body.template23 .payment-method-label input[type="radio"]:checked + span,
body.template23 .payment-method-label:has(input[type="radio"]:checked) {
  border-color: #e14002;
  background: #fbf8f0;
  box-shadow: 0 2px 10px rgba(225, 64, 2, 0.12);
}
body.template23 .checkout-summary {
  background: #ffffff;
  border: 1px solid #e8e6e1;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 90px;
}
body.template23 .checkout-summary .cart-items {
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 20px;
}
body.template23 .t23-checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f0eb;
}
body.template23 .t23-checkout-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: #f5f5f5;
  border: 1px solid #eee;
  flex-shrink: 0;
}
body.template23 .t23-checkout-item-details {
  flex: 1;
  min-width: 0;
}
body.template23 .t23-checkout-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.template23 .t23-checkout-item-meta {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}
body.template23 .t23-checkout-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: right;
  flex-shrink: 0;
}
body.template23 .promo-code-flex {
  margin: 18px 0;
}
body.template23 .promo-code {
  display: flex;
  gap: 8px;
}
body.template23 .promo-code input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #dcdad6;
  border-radius: 4px;
  font-size: 13px;
}
body.template23 .promo-btn {
  padding: 9px 18px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
body.template23 .promo-btn:hover {
  background: #e14002;
}
body.template23 .cart-total {
  border-top: 1.5px solid #f0eee9;
  padding-top: 16px;
  margin-top: 16px;
}
body.template23 .cart-total-item-flex {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555555;
  margin-bottom: 8px;
}
body.template23 .cart-total-item-flex.total {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1.5px solid #eee;
}
body.template23 .order-place-btn {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: #e14002;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 22px;
  transition: background 0.2s, transform 0.15s;
}
body.template23 .order-place-btn:hover {
  background: #c73600;
  transform: translateY(-1px);
}

/* Scoped Cart Drawer Refinements for Template 23 */
body.template23 #cartSidebar {
  width: 390px !important;
  max-width: 90vw !important;
  background: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15) !important;
  z-index: 1050 !important;
}
body.template23 #cartSidebar .cart-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid #f0ede6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
body.template23 #cartSidebar .cart-header h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #111111 !important;
}
body.template23 #cartSidebar .cart-item {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f5f3ef !important;
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
}
body.template23 #cartSidebar .cart-item-image {
  width: 64px !important;
  height: 64px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  border: 1px solid #eceae4 !important;
}
body.template23 #cartSidebar .cart-item-title {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  line-height: 1.35 !important;
  margin-bottom: 4px !important;
}
body.template23 #cartSidebar .cart-item-price {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #e14002 !important;
}
body.template23 #cartSidebar .quantity-controls {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #dedbd4 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}
body.template23 #cartSidebar .quantity-btn {
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  background: #f9f8f5 !important;
  color: #444444 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
}
body.template23 #cartSidebar .quantity {
  width: 32px !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
body.template23 #cartSidebar .remove-item {
  font-size: 12px !important;
  color: #999999 !important;
  text-decoration: underline !important;
  background: none !important;
  border: none !important;
  padding: 4px 0 !important;
}
body.template23 #cartSidebar .cart-footer {
  padding: 20px 24px !important;
  border-top: 1px solid #f0ede6 !important;
  background: #faf9f6 !important;
}
body.template23 #cartSidebar .checkout-btn {
  width: 100% !important;
  height: 48px !important;
  background: #e14002 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  border: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease !important;
}
body.template23 #cartSidebar .checkout-btn:hover {
  background: #cc3902 !important;
}


/* =====================================================================
   Template 23: Dedicated Cart Page & Marquee Bar (Askalan Parity)
   ===================================================================== */
body.template23 .t23-marquee-bar {
  background: #0b0a0a;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.template23 .t23-marquee-content {
  display: inline-flex;
  gap: 48px;
  animation: t23-marquee 25s linear infinite;
}
@keyframes t23-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

body.template23 .t23-cart-page-wrapper {
  background: #fcfbf9;
  min-height: calc(100vh - 200px);
}
body.template23 .t23-breadcrumb {
  font-size: 13px;
  color: #777;
}
body.template23 .t23-breadcrumb a {
  color: #222;
  text-decoration: none;
}
body.template23 .t23-breadcrumb .sep {
  margin: 0 8px;
  color: #bbb;
}
body.template23 .t23-breadcrumb .current {
  color: #888;
}

/* Empty Cart State */
body.template23 .t23-empty-cart-state {
  background: #ffffff;
  border: 1px solid #ebe7df;
  border-radius: 8px;
  padding: 60px 24px;
  max-width: 680px;
  margin: 40px auto;
}
body.template23 .t23-empty-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}
body.template23 .t23-btn-solid {
  background: #e14002;
  color: #fff;
  border-radius: 5px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
body.template23 .t23-btn-solid:hover {
  background: #e14002;
  color: #fff;
}

/* Active 2-Column Cart Layout */
body.template23 .t23-active-cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(340px, 1fr);
  gap: 32px;
  align-items: start;
}
body.template23 .t23-cart-card {
  background: #ffffff;
  border: 1px solid #eae6df;
  border-radius: 8px;
  padding: 24px;
}
body.template23 .t23-cart-heading {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0ede6;
}
body.template23 .t23-cart-table-head {
  display: grid;
  grid-template-columns: 3fr 1.2fr 1.3fr 1.2fr;
  font-size: 11px;
  font-weight: 700;
  color: #888888;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f0eb;
}
body.template23 .t23-cart-row {
  display: grid;
  grid-template-columns: 3fr 1.2fr 1.3fr 1.2fr;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #f4f2ee;
  gap: 12px;
}
body.template23 .t23-cart-row:last-child {
  border-bottom: none;
}
body.template23 .t23-cart-product-cell {
  display: flex;
  gap: 16px;
  align-items: center;
}
body.template23 .t23-cart-thumb {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #ebe8e1;
  flex-shrink: 0;
}
body.template23 .t23-cart-item-meta {
  min-width: 0;
}
body.template23 .t23-cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
body.template23 .t23-cart-item-variant {
  font-size: 12px;
  color: #777;
  margin-bottom: 2px;
}
body.template23 .t23-cart-item-sku {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}
body.template23 .t23-item-remove-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #c93b2b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.template23 .t23-item-remove-btn:hover {
  text-decoration: underline;
}
body.template23 .t23-cart-price-cell {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}
body.template23 .t23-cart-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcd7ce;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
body.template23 .t23-qty-btn {
  width: 30px;
  height: 32px;
  border: none;
  background: #f8f6f2;
  color: #333;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
body.template23 .t23-qty-btn:hover:not(:disabled) {
  background: #ebe6dc;
}
body.template23 .t23-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
body.template23 .t23-qty-input {
  width: 36px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  background: transparent;
}
body.template23 .t23-cart-total-cell {
  font-size: 15px;
  font-weight: 700;
  color: #0b0a0a;
}

/* Cart Summary Card */
body.template23 .t23-summary-card {
  background: #ffffff;
  border: 1px solid #eae6df;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
body.template23 .t23-summary-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0ede6;
}
body.template23 .t23-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: #444;
}
body.template23 .t23-summary-row .value {
  font-weight: 600;
  color: #111;
}
body.template23 .t23-summary-divider {
  margin: 14px 0;
  border-color: #f0ede6;
}
body.template23 .t23-total-row {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  padding-top: 4px;
}
body.template23 .t23-total-row .total-value {
  font-size: 18px;
  font-weight: 800;
  color: #e14002;
}
body.template23 .t23-checkout-proceed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: #e14002;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 5px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
body.template23 .t23-checkout-proceed-btn:hover {
  background: #e14002;
  color: #ffffff;
  transform: translateY(-1px);
}
body.template23 .t23-continue-shopping-link {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
body.template23 .t23-continue-shopping-link:hover {
  color: #0b0a0a;
  text-decoration: underline;
}

@media (max-width: 768px) {
  body.template23 .t23-active-cart-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  body.template23 .t23-cart-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }
}

body.template23 #cartSidebar .t23-view-cart-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #111111 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
body.template23 #cartSidebar .t23-view-cart-btn:hover {
  background: #f5f3ee !important;
  color: #111111 !important;
}

/* Merchandising badges: free shipping (top-left) and discount (top-right) never overlap. */
body.template23 .t23-photo-badge { max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.template23 .t23-discount-badge { white-space: nowrap; }
@media (max-width: 420px) {
  body.template23 .t23-photo-badge, body.template23 .t23-discount-badge { font-size: 9px; padding: 4px 5px; }
}

/* Template 23 Pagination */
.t23-pagination-wrap {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
  width: 100%;
}
.t23-pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.t23-page-item {
  display: inline-block;
}
.t23-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.t23-page-link:hover {
  border-color: #ff4800;
  color: #ff4800;
}
.t23-page-item.active .t23-page-link {
  background: #ff4800;
  border-color: #ff4800;
  color: #ffffff;
  font-weight: 600;
}
.t23-page-item.disabled .t23-page-link {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
}
