:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f7fafc;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-size: 14px;
  line-height: 1.42857143;
  font-family: Lato, "Noto Sans", Arial, sans-serif;
}

article,
aside,
footer,
header,
main,
nav,
section {
  display: block;
}

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
}

button {
  overflow: visible;
  cursor: pointer;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

img {
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
p,
ol,
ul {
  margin-top: 0;
}

h2,
h3,
h4 {
  line-height: 1.2;
}

p {
  margin-bottom: 10px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand-dark);
  text-decoration: underline;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

.row {
  margin-right: -15px;
  margin-left: -15px;
}

.row:before,
.row:after,
.container:before,
.container:after,
.clearfix:before,
.clearfix:after {
  display: table;
  content: " ";
}

.row:after,
.container:after,
.clearfix:after {
  clear: both;
}

[class*="col-sm-"],
[class*="col-md-"] {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

.col-sm-12 {
  width: 100%;
}

.navbar {
  position: relative;
  min-height: 50px;
}

.navbar-static-top {
  z-index: 1000;
}

.navbar-collapse {
  overflow: visible;
}

.collapse {
  display: block;
}

.nav {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.nav > li {
  position: relative;
  display: block;
}

.nav > li > a {
  position: relative;
  display: block;
  padding: 15px;
}

.navbar-nav {
  margin: 0;
}

.navbar-nav > li {
  float: left;
}

.navbar-right {
  float: right;
}

.btn-group {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.btn {
  display: inline-block;
  margin-bottom: 0;
  padding: 8px 14px;
  font-weight: 700;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  touch-action: manipulation;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-sm {
  padding: 5px 9px;
  font-size: 12px;
}

.btn-lg {
  padding: 11px 18px;
  font-size: 16px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 180px;
  margin: 2px 0 0;
  padding: 5px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
}

.open > .dropdown-menu,
.dropdown-menu.is-open {
  display: block;
}

.dropdown-menu > li > a {
  display: block;
  clear: both;
  color: var(--ink);
  white-space: nowrap;
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px dashed;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.input-group {
  position: relative;
  display: table;
  width: 100%;
  border-collapse: separate;
}

.input-group-addon,
.input-group .form-control {
  display: table-cell;
}

.input-group-addon {
  width: 1%;
  padding: 8px 12px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-right: 0;
}

.form-control {
  display: block;
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.input-group .form-control {
  position: relative;
  z-index: 2;
  float: left;
  width: 100%;
}

.input-group-addon:first-child {
  border-radius: 10px 0 0 10px;
}

.input-group-addon:first-child + .form-control {
  border-radius: 0 10px 10px 0;
}

.input-group-lg .form-control {
  height: 46px;
  padding: 10px 14px;
  font-size: 16px;
}

.alert {
  position: relative;
  margin-bottom: 18px;
  padding: 14px 42px 14px 16px;
  border: 1px solid transparent;
}

.alert.red {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.alert.yellow {
  color: #854d0e;
  background: #fef3c7;
  border-color: #fde68a;
}

.alert-info,
.alert.info {
  color: #0f172a;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.alert-link {
  color: inherit;
  font-weight: 700;
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  border: 0;
  opacity: .55;
}

.close:hover,
.close:focus {
  opacity: .9;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }

  .col-sm-6,
  .col-sm-12 {
    float: left;
  }

  .col-sm-6 {
    width: 50%;
  }

  .col-sm-12 {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }

  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-8 {
    float: left;
  }

  .col-md-3 {
    width: 25%;
  }

  .col-md-4 {
    width: 33.33333333%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-8 {
    width: 66.66666667%;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .08), transparent 32rem),
    var(--soft);
}

.skin-header {
  border: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 18px rgba(15, 23, 42, .08);
}

.skin-header .navbar-collapse {
  padding-left: 0;
  padding-right: 0;
}

.skin-header .navbar-nav > li > a {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .01em;
}

.skin-header .navbar-nav > li > a:hover,
.skin-header .navbar-nav > .active > a,
.skin-header .navbar-nav > .active > a:hover {
  color: var(--brand);
  background: transparent;
}

.cart-button-wrap {
  margin: 8px 0;
}

.btn,
.form-control,
.input-group-addon,
.dropdown-menu,
.alert {
  border-radius: 10px;
}

.btn-primary,
.btn-blue,
.btn-gray {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .16);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-blue:hover,
.btn-blue:focus,
.btn-gray:hover,
.btn-gray:focus,
.open > .dropdown-toggle.btn-gray {
  color: #fff;
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.btn-red {
  border-color: #ef4444;
  background: #ef4444;
}

.cart-count {
  display: inline-block;
  min-width: 24px;
  margin-left: 6px;
  padding: 2px 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  background: #fff;
  border-radius: 999px;
}

.example-header {
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.example-header .example-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.example-title h3 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 700;
}

.example-title .store-hero-link {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  transition: color .2s ease, opacity .2s ease;
}

.example-title .store-hero-link:hover,
.example-title .store-hero-link:focus {
  text-decoration: none;
  color: inherit;
  opacity: .9;
}

.example-title .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.brand-strip img {
  max-width: 118px;
  height: 36px;
  object-fit: contain;
  opacity: .78;
  filter: grayscale(100%);
}

main {
  padding: 28px 0 40px;
}

.category-menu {
  float: right;
  margin-bottom: 16px;
}

.dropdown-menu.gray {
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dropdown-menu.gray > li > a {
  padding: 8px 12px;
  border-radius: 8px;
}

.dropdown-menu.gray > .active > a,
.dropdown-menu.gray > .active > a:hover,
.dropdown-menu.gray > li > a:hover {
  color: var(--brand-dark);
  background: rgba(15, 118, 110, .08);
}

.breadcrumb-icon {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 22px;
  padding: 7px 11px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.breadcrumb-icon li {
  float: none;
  display: flex;
  align-items: center;
  list-style: none;
}

.breadcrumb-icon li + li:before {
  content: "\203A";
  margin: 0 9px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1;
}

.breadcrumb-icon.white li a,
.breadcrumb-icon.white li:first-child a,
.breadcrumb-icon.white li:last-child a,
.breadcrumb-icon.white li.active > a {
  height: auto;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.15;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.breadcrumb-icon .fa {
  margin-right: 4px;
  font-size: 12px;
}

.breadcrumb-icon.white li a:before,
.breadcrumb-icon.white li a:after,
.breadcrumb-icon.white li.active > a:before,
.breadcrumb-icon.white li.active > a:after {
  display: none;
}

.breadcrumb-icon.white li a:hover {
  color: var(--brand-dark);
  text-decoration: none;
  background: transparent;
}

.breadcrumb-icon.white li.active > a {
  color: var(--ink);
  font-weight: 700;
  background: transparent;
  pointer-events: none;
}

.block-section {
  clear: both;
}

.store-pcol {
  margin-bottom: 24px;
}

.store-ptile {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 440px;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.store-ptile:hover {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.store-ptile > div,
.store-card-click {
  min-height: 0;
}

.store-card-click {
  display: block;
  color: inherit;
  cursor: pointer;
}

.store-card-click:hover,
.store-card-click:focus {
  color: inherit;
  text-decoration: none;
}

.store-ptile h4 {
  display: -webkit-box;
  min-height: 0;
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.store-manuf {
  position: static;
  display: block;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.store-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-block;
  margin: 0;
  padding: 2px 7px;
  color: #991b1b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: #fee2e2;
  border-radius: 999px;
}

.store-pimage {
  display: block;
  width: 100%;
  height: 210px;
  max-height: none;
  margin: 0 auto 16px;
  object-fit: contain;
}

.store-ptile p {
  display: -webkit-box;
  flex: 1;
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.store-price {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 12px 0 0;
  color: #15803d;
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.store-add {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: var(--brand);
  border-radius: 999px;
}

.store-add:hover,
.store-add:focus {
  color: #fff;
  background: var(--brand-dark);
}

.store-add:hover i {
  color: inherit;
}

.store-nostock {
  opacity: .58;
  filter: grayscale(100%);
}

.product-detail {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.product-detail .store-pimage {
  height: 320px;
  margin-bottom: 0;
}

.product-detail h2 {
  margin-top: 0;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 14px 0 20px;
}

.product-actions .input-group {
  width: 88px;
}

.product-actions .form-control {
  height: 46px;
  text-align: center;
}

.store-stock {
  display: inline-block;
  padding: 5px 10px;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: #dcfce7;
  border-radius: 999px;
}

.store-stock-out {
  color: #991b1b;
  background: #fee2e2;
}

.product-price {
  display: inline-block;
  margin: 8px 0 18px;
  color: #15803d;
  font-size: 26px;
  font-weight: 700;
}

.checkout-title {
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 700;
}

.checkout-subtitle {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--muted);
}

.checkout-form {
  margin-right: -15px;
  margin-left: -15px;
}

.checkout-form:before,
.checkout-form:after {
  display: table;
  content: " ";
}

.checkout-form:after {
  clear: both;
}

.checkout-details {
  padding-left: 15px;
}

.checkout-details h3,
.cart h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
}

.example-block,
.basket,
.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.example-block {
  padding: 18px;
}

.checkout-panel {
  padding: 22px;
}

.checkout-panel-note {
  margin-bottom: 16px;
  color: var(--muted);
}

.checkout-panel .input-group {
  margin-bottom: 14px;
}

.checkout-panel .input-group:last-child {
  margin-bottom: 0;
}

.form-control,
.input-group-addon {
  border-color: var(--line);
  box-shadow: none;
}

.form-control:focus {
  border-color: rgba(15, 118, 110, .55);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}

.basket {
  overflow: hidden;
}

.cart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cart-card-header h3 {
  margin-bottom: 4px;
}

.cart-card-header p {
  margin: 0;
  color: var(--muted);
}

.cart-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: #ccfbf1;
  border-radius: 999px;
}

.basket-head {
  display: grid;
  grid-template-columns: 58px 18px minmax(0, 1fr) 86px 96px auto;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.basket-head span:first-child {
  grid-column: span 2;
}

.basket-product {
  display: grid;
  grid-template-columns: 58px 18px minmax(0, 1fr) 86px 96px auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.basket-product:last-child {
  border-bottom: 0;
}

.basket-product div {
  display: block;
}

.basket-product .quantity {
  min-width: 0;
}

.quantity-times {
  color: var(--muted);
}

.basket-product .item {
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.basket-product .price,
.basket-product .subtotal {
  color: var(--muted);
  text-align: right;
}

.basket-product .price:before,
.basket-product .subtotal:before {
  content: "Tsh ";
}

.basket-product .subtotal {
  color: var(--ink);
  font-weight: 700;
}

.basket-product .remove {
  float: none;
}

.quantity-field {
  width: 58px;
  padding: 7px 6px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

.cart-empty i {
  color: #cbd5e1;
  font-size: 34px;
}

.cart-empty strong {
  color: var(--ink);
}

.summary {
  margin-top: 16px;
  padding: 18px;
}

.summary h4 {
  margin-top: 0;
  font-weight: 700;
}

.summary-muted {
  color: var(--muted);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.summary-total:last-child {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.checkout-actions {
  clear: both;
  margin-top: 18px;
  text-align: right;
}

.checkout-button {
  width: 100%;
}

.going-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.going-top:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

#page-footer {
  padding: 26px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

#skin-footer p {
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .skin-header .navbar-collapse.collapse {
    display: block !important;
    height: auto !important;
  }

  .skin-header .navbar-nav {
    float: none !important;
    margin: 0;
  }

  .skin-header .navbar-right {
    text-align: left;
  }

  .example-header .example-title {
    display: block;
    padding: 26px 0;
  }

  .brand-strip {
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .category-menu {
    float: none;
  }

  .store-ptile {
    height: auto;
    min-height: 0;
  }

  .store-pcol {
    margin-bottom: 18px;
  }

  .product-detail {
    padding: 18px;
  }

  .product-detail .store-pimage {
    height: 240px;
    margin-bottom: 20px;
  }

  .checkout-details {
    padding-left: 15px;
  }

  .cart {
    margin-top: 24px;
  }

  .basket-product {
    grid-template-columns: 58px 18px minmax(0, 1fr);
  }

  .basket-head {
    display: none;
  }

  .basket-product .item {
    grid-column: 3;
  }

  .basket-product .price,
  .basket-product .subtotal {
    text-align: left;
  }

  .basket-product .price {
    grid-column: 1 / span 2;
  }

  .basket-product .subtotal {
    grid-column: 3;
  }

  .basket-product .price:before {
    content: "Unit Tsh ";
  }

  .basket-product .subtotal:before {
    content: "Total Tsh ";
  }

  .basket-product .remove {
    grid-column: 1 / -1;
    justify-self: end;
    margin-left: auto;
  }

  .checkout-actions {
    float: none;
    text-align: left;
  }
}

/* Lightweight toast (replaces bootstrap-growl from former extended bundle) */
.site-toast-stack {
  position: fixed;
  z-index: 1080;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.site-toast {
  pointer-events: auto;
  margin: 0;
  padding: 12px 16px;
  background: #1f2937;
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
