:root {
  --green: #52a92e;
  --green-dark: #3f8d22;
  --black: #111111;
  --white: #ffffff;
  --bg: #f5f5f5;
  --line: #e6e6e6;
  --text: #191919;
  --muted: #707070;
  --danger: #eb5757;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  width: min(1380px, calc(100% - 24px));
  margin: 18px auto;
  min-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

.main-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  flex: 1;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  background: var(--black);
  color: var(--white);
  border-radius: 18px;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 0;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  mix-blend-mode: normal;
  flex-shrink: 0;
}

.brand-logo.small {
  width: 42px;
  height: 42px;
  mix-blend-mode: normal;
}

.brand-text {
  display: grid;
  gap: 1px;
  align-content: center;
  padding-top: 2px;
}

.brand-text strong {
  display: flex;
  align-items: flex-end;
  gap: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-white {
  color: var(--white);
}

.brand-green {
  color: #96df32;
}

.brand-text small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.tagline-green {
  color: #96df32;
}

.tagline-white {
  color: var(--white);
}

.main-nav,
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  justify-content: center;
  color: #e1e1e1;
}

.tool-link,
.main-nav a {
  font-weight: 600;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tool-link.icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #2d2d2d;
  background: transparent;
  color: var(--white);
  flex: 0 0 auto;
}

.tool-link.icon-only:hover {
  border-color: var(--green);
  background: rgba(82, 169, 46, 0.08);
}

.tool-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tool-link:hover,
.main-nav a:hover {
  color: var(--green);
}

.cart-pill,
.primary-button,
.ghost-button,
.filter-chip,
.social-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}

.cart-pill {
  padding: 12px 16px;
  background: transparent;
  color: var(--white);
  border: 1px solid #2d2d2d;
}

.cart-pill span {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.82rem;
}

.hero-banner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--green);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 42px 30px;
  color: var(--white);
}

.hero-copy h1,
.page-banner h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.hero-copy p {
  margin: 0;
  font-size: 1.2rem;
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button {
  padding: 14px 20px;
  background: var(--green);
  color: var(--white);
}

.primary-button.dark {
  background: var(--black);
}

.ghost-button {
  padding: 14px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
}

.social-action {
  padding: 14px 20px;
  border: 1px solid transparent;
}

.social-action-whatsapp {
  background: #25d366;
  color: var(--white);
}

.social-action-tiktok {
  background: #111111;
  color: var(--white);
}

.social-action-facebook {
  background: #1877f2;
  color: var(--white);
}

.social-action-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: var(--white);
}

.social-action-email {
  background: #e9f5e3;
  color: #24511e;
  border-color: #cfe6c7;
}

.secondary-link {
  align-self: center;
  font-weight: 700;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.hero-visual {
  display: grid;
  place-items: center;
  padding: 26px;
}

.visual-card {
  width: 100%;
  height: 100%;
  min-height: 290px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
}

.visual-tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.2);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}

.visual-illustration {
  position: relative;
  width: min(100%, 430px);
  height: 240px;
}

.product-media .visual-illustration,
.detail-shot .visual-illustration,
.preview-shot.visual-illustration,
.cart-row .visual-illustration {
  width: 100%;
  height: 100%;
  max-width: none;
}

.product-media .visual-illustration,
.cart-row .visual-illustration {
  transform: scale(0.72);
  transform-origin: center;
}

.preview-shot.visual-illustration {
  transform: scale(0.95);
  transform-origin: center;
}

.visual-illustration::before,
.visual-illustration::after {
  content: "";
  position: absolute;
  display: block;
}

.visual-illustration--drill::before {
  left: 22%;
  top: 18%;
  width: 45%;
  height: 28%;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a6321, #1f4b16);
  box-shadow: inset -10px -8px rgba(0, 0, 0, 0.18);
  transform: rotate(-6deg);
}

.visual-illustration--drill::after {
  left: 43%;
  top: 34%;
  width: 12%;
  height: 48%;
  border-radius: 20px;
  background: #1a1a1a;
  transform: rotate(-6deg);
  box-shadow: 88px -56px 0 -28px #c91f18, -118px -14px 0 -42px #d7d7d7;
}

.visual-illustration--grinder::before {
  left: 20%;
  top: 34%;
  width: 48%;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b4d55, #1f262b);
  transform: rotate(-18deg);
}

.visual-illustration--grinder::after {
  right: 18%;
  top: 26%;
  width: 25%;
  height: 25%;
  border-radius: 50%;
  border: 18px solid #cfd6d9;
  transform: rotate(-18deg);
}

.visual-illustration--chainsaw::before {
  left: 16%;
  top: 28%;
  width: 44%;
  height: 30%;
  border-radius: 18px;
  background: linear-gradient(135deg, #f28a24, #d96a00);
}

.visual-illustration--chainsaw::after {
  right: 16%;
  top: 38%;
  width: 44%;
  height: 9%;
  border-radius: 999px;
  background: #d8dddf;
  box-shadow: inset 0 -4px rgba(0, 0, 0, 0.14);
}

.visual-illustration--welder::before {
  left: 26%;
  top: 26%;
  width: 42%;
  height: 42%;
  border-radius: 14px;
  background: linear-gradient(135deg, #17243f, #2e4e7f);
}

.visual-illustration--welder::after {
  left: 18%;
  bottom: 18%;
  width: 60%;
  height: 10%;
  border-radius: 999px;
  background: #222;
}

.visual-illustration--generator::before {
  left: 24%;
  top: 28%;
  width: 52%;
  height: 34%;
  border-radius: 14px;
  background: linear-gradient(135deg, #de402d, #862119);
}

.visual-illustration--generator::after {
  left: 30%;
  bottom: 20%;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: #232323;
  box-shadow: 116px 0 0 #232323;
}

.visual-illustration.yellow::before {
  background: linear-gradient(135deg, #ffb800, #f59e0b);
}

.visual-illustration.yellow::after {
  box-shadow: 88px -56px 0 -28px #2d2d2d, -118px -14px 0 -42px #d7d7d7;
}

.benefit-row,
.content-grid,
.social-band,
.checkout-layout,
.admin-stats {
  display: grid;
  gap: 18px;
}

.benefit-row {
  grid-template-columns: repeat(4, 1fr);
}

.benefit-row article,
.social-band a {
  padding: 18px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.benefit-row article {
  display: grid;
  gap: 6px;
}

.benefit-row span {
  color: var(--muted);
}

.content-grid {
  grid-template-columns: 1.25fr 0.9fr;
  align-items: start;
}

.content-main,
.content-side,
.flow-cards {
  display: grid;
  gap: 18px;
}

.panel,
.page-banner,
.product-layout,
.admin-table-panel,
.admin-stats article {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel,
.page-banner,
.admin-table-panel {
  padding: 22px;
}

.section-title,
.price-row,
.drawer-head,
.drawer-total,
.checkout-total-row,
.summary-box div,
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.section-title h2,
.drawer-head h2,
.admin-topbar h1 {
  margin: 0;
  font-size: 1.5rem;
}

.section-title a {
  color: var(--muted);
  font-weight: 700;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-bubble {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.bubble-visual,
.bubble-viewall {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #f1f5f0;
  box-shadow: inset 0 -8px rgba(0, 0, 0, 0.04);
}

.bubble-viewall {
  display: grid;
  place-items: center;
  color: var(--black);
  font-size: 2.2rem;
}

.bubble-visual {
  position: relative;
}

.bubble-visual::before,
.bubble-visual::after {
  content: "";
  position: absolute;
  display: block;
}

.bubble-visual--drill::before,
.bubble-visual--grinder::before,
.bubble-visual--chainsaw::before,
.bubble-visual--welder::before,
.bubble-visual--generator::before {
  inset: 24% 18%;
  border-radius: 18px;
}

.bubble-visual--drill::before {
  background: linear-gradient(135deg, #1f8f45, #59b63b);
}

.bubble-visual--grinder::before {
  background: linear-gradient(135deg, #444, #111);
}

.bubble-visual--chainsaw::before {
  background: linear-gradient(135deg, #fd8f22, #d96a00);
}

.bubble-visual--welder::before {
  background: linear-gradient(135deg, #1d2b4f, #3f629a);
}

.bubble-visual--generator::before {
  background: linear-gradient(135deg, #de402d, #862119);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sale-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.product-media {
  height: 160px;
  border-radius: 14px;
  background: #f7f7f7;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-photo,
.detail-product-image,
.detail-thumb-image,
.admin-product-thumb,
.admin-product-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-photo {
  padding: 14px;
}

.product-photo--cart {
  padding: 8px;
}

.product-card h3,
.preview-product h3,
.detail-content h1 {
  margin: 0;
}

.price-stack {
  display: grid;
  gap: 4px;
}

.price-stack strong {
  font-size: 1.55rem;
}

.price-stack span,
.price-row span {
  color: #999;
  text-decoration: line-through;
}

.stars {
  color: #ffbf00;
  font-size: 0.95rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.view-button,
.add-button {
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
}

.view-button {
  background: #f0f0f0;
}

.add-button {
  background: var(--green);
  color: var(--white);
  border: 0;
}

.preview-gallery {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  gap: 10px;
  margin-bottom: 18px;
}

.thumb {
  height: 70px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.thumb.is-active {
  border-color: var(--green);
}

.preview-shot {
  height: 240px;
  margin-bottom: 18px;
  background: #fafafa;
  border-radius: 16px;
  overflow: hidden;
}

.rating-row {
  color: var(--muted);
}

.price-row {
  margin: 14px 0;
  justify-content: flex-start;
}

.price-row strong {
  font-size: 2rem;
}

.price-row mark {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
}

.feature-list {
  margin: 0 0 22px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.flow-cards {
  grid-template-columns: 1fr;
}

.flow-card {
  padding: 18px;
  border-radius: 14px;
  background: #f7faf6;
  border: 1px solid #dce8d6;
  display: grid;
  gap: 6px;
}

.social-band {
  grid-template-columns: repeat(4, 1fr);
}

.page-banner p {
  color: var(--muted);
  max-width: 56ch;
  overflow-wrap: anywhere;
}

.page-banner h2 {
  margin: 14px 0 6px;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--text);
}

.page-banner p + h2 {
  margin-top: 22px;
}

.page-banner strong {
  color: var(--text);
}

.site-footer {
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: #d7d7d7;
  line-height: 1.6;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--green);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  padding: 11px 14px;
  background: #f0f0f0;
}

.filter-chip.is-active {
  background: var(--green);
  color: var(--white);
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 18px;
  padding: 18px;
}

.detail-thumbs {
  display: grid;
  gap: 12px;
}

.detail-thumb {
  height: 92px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafafa;
  overflow: hidden;
  padding: 0;
}

.detail-thumb.is-active {
  border-color: var(--green);
}

.detail-shot {
  min-height: 440px;
  border-radius: 20px;
  background: #fafafa;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.detail-content {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 8px 10px;
}

.detail-content .rating-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.stock {
  color: var(--green-dark);
  font-weight: 700;
}

.quantity-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 12px;
}

.qty-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mini-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  box-shadow: -14px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 180ms ease;
  z-index: 20;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.close-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: auto;
}

.cart-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-row .product-media {
  height: 72px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

.drawer-foot {
  display: grid;
  gap: 14px;
}

.empty-cart-state {
  display: grid;
  gap: 10px;
  padding: 10px 4px;
  text-align: left;
}

.empty-cart-state h3,
.empty-cart-state p {
  margin: 0;
}

.empty-cart-state p {
  color: var(--muted);
  line-height: 1.6;
}

.empty-cart-state a {
  color: var(--green-dark);
  font-weight: 700;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 15;
}

.checkout-layout {
  grid-template-columns: 0.9fr 1.2fr 0.85fr;
}

.checkout-form,
.mpesa-box {
  display: grid;
  gap: 14px;
}

.contact-form-api {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  max-width: 620px;
}

.contact-form-api label {
  display: grid;
  gap: 8px;
  text-align: left;
  font-weight: 600;
}

.payment-options {
  display: grid;
  gap: 10px;
}

.payment-selector {
  display: grid;
  gap: 10px;
}

.selector-title {
  margin: 0;
  font-weight: 800;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.method-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafafa;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.method-card strong {
  font-size: 0.98rem;
}

.method-card span {
  color: var(--muted);
}

.method-card.is-active {
  border-color: var(--green);
  background: #eef8e8;
}

.delivery-note,
.cod-box p {
  margin: 0;
  color: var(--muted);
}

.order-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef8e8;
  color: #23551f;
  font-weight: 600;
}

.mpesa-details {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #fafafa;
  text-align: left;
}

.mpesa-details div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mpesa-details span {
  color: var(--muted);
}

.mpesa-details strong {
  text-align: right;
}

.checkout-form label,
.mpesa-box label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.checkout-form input,
.checkout-form textarea,
.mpesa-box input,
.contact-form-api input,
.contact-form-api textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.step-row {
  display: flex;
  gap: 14px;
}

.step {
  padding: 8px 10px;
  border-radius: 999px;
  background: #efefef;
  font-weight: 700;
}

.step.is-active {
  background: var(--green);
  color: var(--white);
}

.summary-box {
  padding: 14px;
  border-radius: 14px;
  background: #fafafa;
  display: grid;
  gap: 10px;
}

.summary-grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mpesa-panel {
  display: grid;
  place-items: center;
  background: #626262;
}

.mpesa-box {
  width: min(100%, 360px);
  padding: 22px;
  border-radius: 16px;
  background: var(--white);
  text-align: center;
}

.mpesa-total {
  color: var(--muted);
}

.payment-panel {
  display: none;
  gap: 14px;
}

.payment-panel.is-active {
  display: grid;
}

.cod-box {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.cod-box h3 {
  margin: 0;
}

.checkout-page-shell {
  width: min(1440px, calc(100% - 20px));
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.checkout-header .brand-white,
.checkout-header .tagline-white {
  color: var(--text);
}

.checkout-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-header .cart-pill {
  background: #fafafa;
  color: var(--text);
  border-color: var(--line);
}

.checkout-header .tool-link.icon-only {
  color: var(--text);
  border-color: var(--line);
  background: #fafafa;
}

.checkout-help-link {
  color: var(--muted);
  font-weight: 600;
}

.checkout-help-link:hover {
  color: var(--green);
}

.checkout-shell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  flex: 1;
}

.checkout-layout--storefront {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 0;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.checkout-primary {
  display: grid;
  gap: 22px;
  padding: 30px 34px 28px;
}

.checkout-intro {
  display: grid;
  gap: 10px;
}

.checkout-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
  color: #1c1c1c;
}

.checkout-intro p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.checkout-storefront-form {
  gap: 0;
}

.checkout-step-row {
  margin-bottom: 8px;
}

.checkout-block {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.checkout-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.checkout-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkout-block-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.checkout-block-head a,
.checkout-block-head p {
  margin: 0;
  color: var(--muted);
}

.checkout-block-head--stack {
  align-items: flex-start;
}

.checkout-block-head--stack > div {
  display: grid;
  gap: 4px;
}

.checkout-field-grid {
  display: grid;
  gap: 12px;
}

.checkout-field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-storefront-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.checkout-storefront-form input,
.checkout-storefront-form textarea {
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.checkout-storefront-form input:focus,
.checkout-storefront-form textarea:focus {
  outline: none;
  border-color: #69ad49;
  box-shadow: 0 0 0 3px rgba(82, 169, 46, 0.12);
}

.checkout-checkbox {
  grid-auto-flow: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.checkout-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkout-option-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.checkout-option-card strong,
.checkout-option-card p,
.checkout-option-card span {
  margin: 0;
}

.checkout-option-card p {
  margin-top: 4px;
  color: var(--muted);
}

.checkout-option-card--selected {
  border-color: #8bbf71;
  box-shadow: inset 0 0 0 1px #8bbf71;
  background: #fbfdf8;
}

.checkout-option-card--payment {
  background: #fafcf8;
}

.checkout-payment-badges {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef8e8;
  color: #2e5d20;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.checkout-storefront-form .payment-methods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-storefront-form .method-card {
  min-height: 90px;
  padding: 16px;
  background: #fff;
}

.checkout-storefront-form .payment-panel {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfcfc;
}

.checkout-radio-group {
  display: grid;
  gap: 10px;
}

.checkout-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 500;
}

.checkout-radio-card.is-active {
  border-color: #9fc88a;
  background: #fbfdf8;
}

.checkout-radio-card input {
  margin: 0;
}

.checkout-summary-box {
  margin-top: 22px;
}

.checkout-payment-actions {
  margin-top: 18px;
  grid-template-columns: 1fr 1fr;
}

.checkout-sidebar {
  background: linear-gradient(180deg, #f6f3eb 0%, #f1ede3 100%);
  border-left: 1px solid #e9e2d4;
}

.checkout-sidebar-inner {
  position: sticky;
  top: 18px;
  padding: 28px 28px 30px;
}

.checkout-summary-card {
  display: grid;
  gap: 20px;
}

.checkout-summary-items {
  display: grid;
  gap: 18px;
}

.checkout-summary-items .cart-row {
  grid-template-columns: 74px 1fr auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 18px;
}

.checkout-summary-items .product-media {
  height: 74px;
  background: #fff;
  border: 1px solid #ece7db;
}

.checkout-summary-items h3,
.checkout-summary-lines strong,
.checkout-summary-lines span,
.checkout-summary-grand strong {
  margin: 0;
}

.checkout-summary-lines {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #ddd5c6;
}

.checkout-summary-lines > div,
.checkout-summary-grand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkout-summary-grand {
  padding-top: 14px;
  border-top: 1px solid #ddd5c6;
}

.checkout-summary-grand strong {
  font-size: 1.55rem;
}

.checkout-footer {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid var(--line);
  padding: 16px 4px 0;
}

.checkout-footer p {
  color: var(--muted);
}

.checkout-footer .footer-links a {
  color: var(--muted);
  font-weight: 500;
}

.checkout-footer .footer-links a:hover {
  color: var(--green-dark);
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-form,
.account-summary,
.account-orders {
  display: grid;
  gap: 14px;
}

.account-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.account-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.account-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfbfb;
}

.account-card p,
.account-card strong,
.account-card span {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
  background: var(--bg);
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.admin-login-card {
  width: min(100%, 480px);
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 0;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form label,
.admin-product-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.admin-login-form input,
.admin-product-form input,
.admin-product-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.admin-sidebar {
  padding: 18px;
  background: var(--black);
  color: var(--white);
}

.brand-admin {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #2b2b2b;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: #d8d8d8;
  font-weight: 700;
}

.admin-nav a.is-active,
.admin-nav a:hover {
  background: var(--green);
  color: var(--white);
}

.admin-main {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.admin-note {
  margin: 16px 0 0;
  color: #c6c6c6;
  font-size: 0.9rem;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f8f8f8;
}

.admin-form-full {
  grid-column: 1 / -1;
}

.admin-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfbfb;
  display: grid;
  gap: 10px;
}

.admin-card p,
.admin-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-image-preview {
  min-height: 180px;
  border: 1px dashed #c8d5c3;
  border-radius: 14px;
  background: #fdfefd;
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 14px;
  text-align: center;
}

.admin-product-preview {
  max-width: 100%;
  max-height: 220px;
}

.admin-product-thumb {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #f6f6f6;
  padding: 8px;
}

.admin-card-head,
.admin-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status.paid {
  background: #dbf5d1;
  color: #2e7d32;
}

.status.pending {
  background: #fff0c2;
  color: #b7791f;
}

.status.cancelled {
  background: #ffd4d4;
  color: #c53030;
}

.admin-stats {
  grid-template-columns: repeat(4, 1fr);
}

.admin-stats article {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.admin-stats strong {
  font-size: 1.6rem;
}

@media (max-width: 1100px) {
  .site-header,
  .hero-banner,
  .content-grid,
  .checkout-layout,
  .product-layout,
  .admin-page,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .product-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-strip,
  .benefit-row,
  .social-band,
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-layout--storefront {
    grid-template-columns: 1fr;
    background: transparent;
    box-shadow: none;
    gap: 18px;
    overflow: visible;
  }

  .checkout-primary,
  .checkout-sidebar {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .checkout-sidebar {
    border-left: 0;
  }

  .checkout-sidebar-inner {
    position: static;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav a,
  .tool-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .checkout-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .checkout-header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .tool-link,
  .cart-pill {
    flex: 1 1 180px;
    justify-content: center;
  }

  .tool-link.icon-only {
    flex: 0 0 auto;
  }

  .hero-banner {
    min-height: 0;
  }

  .hero-copy {
    padding: 28px 24px;
  }

  .hero-visual {
    padding: 10px 24px 28px;
  }

  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .checkout-primary,
  .checkout-sidebar-inner {
    padding: 24px;
  }

  .checkout-storefront-form .payment-methods {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .detail-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-thumb {
    height: 82px;
  }

  .detail-shot {
    min-height: 300px;
  }

  .quantity-row {
    grid-template-columns: 1fr;
  }

  .social-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-main {
    padding: 14px;
  }

  .site-footer {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 12px, 1380px);
    min-height: calc(100vh - 24px);
  }

  .site-header,
  .hero-copy,
  .panel,
  .page-banner,
  .admin-table-panel,
  .site-footer {
    padding: 16px;
  }

  .checkout-header {
    padding: 16px;
  }

  .header-tools,
  .hero-actions,
  .step-row {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid,
  .product-grid.wide {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .main-nav a {
    justify-content: center;
    padding: 12px 14px;
    border-radius: 10px;
    background: #1b1b1b;
    border: 1px solid #2e2e2e;
    text-align: center;
  }

  .header-tools {
    width: 100%;
    gap: 10px;
  }

  .tool-link,
  .cart-pill {
    width: 100%;
    flex: 1 1 100%;
  }

  .tool-link.icon-only {
    width: 100%;
    border-radius: 10px;
    justify-content: center;
  }

  .tool-link.icon-only .sr-only {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 1.6rem;
  }

  .brand-text small {
    font-size: 0.62rem;
  }

  .hero-copy h1,
  .page-banner h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1;
  }

  .checkout-intro h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .page-banner h2 {
    font-size: 1.08rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button,
  .hero-actions .social-action,
  .hero-actions .secondary-link,
  .payment-options .primary-button,
  .payment-options .ghost-button,
  .card-actions .view-button,
  .card-actions .add-button,
  .dual-actions .ghost-button,
  .dual-actions .primary-button,
  .account-form .primary-button,
  .account-dashboard .ghost-button,
  .contact-form-api .primary-button {
    width: 100%;
  }

  .benefit-row,
  .category-strip,
  .social-band,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-bubble strong,
  .benefit-row strong,
  .benefit-row span {
    text-align: center;
  }

  .bubble-visual,
  .bubble-viewall {
    width: 74px;
    height: 74px;
  }

  .card-actions,
  .dual-actions {
    grid-template-columns: 1fr;
  }

  .checkout-field-grid--two,
  .checkout-payment-actions {
    grid-template-columns: 1fr;
  }

  .checkout-block-head,
  .checkout-option-card,
  .checkout-summary-lines > div,
  .checkout-summary-grand,
  .checkout-header-tools {
    align-items: flex-start;
  }

  .preview-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-media {
    height: 180px;
  }

  .breadcrumbs {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .detail-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-thumb {
    height: 70px;
  }

  .detail-shot {
    min-height: 240px;
  }

  .detail-content {
    padding: 0;
    gap: 14px;
  }

  .detail-content .rating-row,
  .mini-share {
    display: grid;
    gap: 8px;
  }

  .price-row {
    flex-wrap: wrap;
  }

  .cart-drawer {
    width: 100%;
    padding: 18px 16px;
  }

  .cart-row {
    grid-template-columns: 72px 1fr;
  }

  .text-button {
    grid-column: 1 / -1;
    justify-self: flex-start;
    padding: 4px 0 0;
  }

  .checkout-form,
  .mpesa-box,
  .contact-form-api,
  .account-form {
    gap: 12px;
  }

  .contact-form-api,
  .checkout-form,
  .account-form,
  .admin-login-form {
    width: 100%;
  }

  .payment-methods,
  .payment-options {
    grid-template-columns: 1fr;
  }

  .section-title,
  .admin-topbar,
  .checkout-total-row,
  .drawer-total {
    flex-wrap: wrap;
  }

  .section-title {
    align-items: flex-start;
  }

  .mpesa-details div,
  .admin-card-head,
  .admin-card-actions,
  .admin-topbar,
  .admin-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-summary-items .cart-row {
    grid-template-columns: 64px 1fr;
  }

  .checkout-summary-items .qty-box {
    grid-column: 1 / -1;
  }

  .mpesa-details strong {
    text-align: left;
  }

  .mpesa-total {
    overflow-wrap: anywhere;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    gap: 8px;
  }

  .footer-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
  }

  .admin-product-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 8px, 1380px);
    margin: 8px auto;
    min-height: calc(100vh - 16px);
  }

  .main-stack {
    gap: 12px;
    margin-top: 12px;
  }

  .site-header,
  .hero-copy,
  .panel,
  .page-banner,
  .admin-table-panel,
  .site-footer {
    padding: 14px;
  }

  .checkout-header,
  .checkout-primary,
  .checkout-sidebar-inner {
    padding: 14px;
  }

  .main-nav {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 1.4rem;
  }

  .brand-text small {
    font-size: 0.58rem;
  }

  .page-banner h2 {
    font-size: 1rem;
  }

  .checkout-block {
    padding: 18px 0;
  }

  .footer-links {
    width: 100%;
  }

  .footer-links a {
    width: 100%;
  }

  .category-strip,
  .benefit-row,
  .social-band,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .preview-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-shot {
    min-height: 210px;
  }

  .qty-box {
    width: 100%;
  }

  .mpesa-box {
    width: 100%;
    padding: 18px 14px;
  }

  .payment-methods,
  .hero-actions,
  .admin-actions {
    width: 100%;
  }

  .method-card,
  .hero-actions .secondary-link {
    width: 100%;
  }

  .checkout-option-card,
  .checkout-radio-card,
  .checkout-storefront-form .payment-panel {
    padding: 14px;
  }

  .hero-dots {
    justify-content: center;
  }

  .section-title h2,
  .drawer-head h2,
  .admin-topbar h1 {
    font-size: 1.25rem;
  }

  .admin-card-actions {
    width: 100%;
  }

  .admin-card-actions .ghost-button,
  .admin-card-actions .primary-button {
    width: 100%;
  }
}
