/* Khan's Mart design layer for vmbasic / VirtueMart.
   Only CSS has been added; template PHP, XML, JS and overrides are unchanged. */

:root {
  --brand: #226b35;
  --brand-dark: #124321;
  --brand-soft: #eaf5eb;
  --leaf: #6fab3f;
  --accent: #f5a623;
  --ink: #18231b;
  --muted: #607166;
  --line: #dfe8e1;
  --paper: #ffffff;
  --bg: #f7fbf6;
  --danger: #c0352b;
  --shadow: 0 18px 45px rgba(18, 67, 33, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --bs-primary: #226b35;
  --bs-primary-rgb: 34, 107, 53;
  --bs-link-color: #226b35;
  --bs-link-hover-color: #124321;
  --bs-border-color: #dfe8e1;
  --bs-body-color: #18231b;
  --bs-body-bg: #f7fbf6;
}

html {
  scroll-behavior: smooth;
}

body.site {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(111, 171, 63, 0.18), transparent 34rem),
    linear-gradient(180deg, #fbfefb 0%, var(--bg) 42%, #fff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.site a,
body.site .btn-link {
  color: var(--brand);
  text-decoration: none;
}

body.site a:hover,
body.site .btn-link:hover {
  color: var(--brand-dark);
}

body.site h1,
body.site .h1,
body.site h2,
body.site .h2,
body.site h3,
body.site .h3,
body.site h4,
body.site h5,
body.site h6 {
  color: var(--ink);
  letter-spacing: -0.025em;
}

body.site h1,
body.site .h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

body.site h2,
body.site .h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
}

body.site img {
  border-radius: var(--radius-sm);
}

/* Buttons and form controls */
body.site .btn,
body.site button.btn,
body.site input[type="submit"],
body.site input[type="button"],
body.site .vm-button-correct,
body.site .vm-button-correct:link,
body.site .vm-button-correct:visited,
body.site .addtocart-button,
body.site .addtocart-button input,
body.site .addtocart-button button,
body.site .addtocart-button .addtocart-button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 0.75rem 1.05rem;
  box-shadow: 0 10px 22px rgba(18, 67, 33, 0.13);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.site .btn:hover,
body.site button.btn:hover,
body.site input[type="submit"]:hover,
body.site input[type="button"]:hover,
body.site .vm-button-correct:hover,
body.site .addtocart-button:hover,
body.site .addtocart-button input:hover,
body.site .addtocart-button button:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(18, 67, 33, 0.2);
}

body.site .btn-secondary,
body.site .button,
body.site a.product-details,
body.site .details-button input.details-button,
body.site .vm-details-button a {
  background: var(--brand-soft);
  border: 1px solid rgba(34, 107, 53, 0.12);
  color: var(--brand-dark);
  border-radius: 999px;
  font-weight: 800;
}

body.site .btn-secondary:hover,
body.site .button:hover,
body.site a.product-details:hover,
body.site .details-button input.details-button:hover,
body.site .vm-details-button a:hover {
  background: var(--brand);
  color: #fff;
}

body.site .form-control,
body.site .form-select,
body.site input[type="text"],
body.site input[type="email"],
body.site input[type="password"],
body.site input[type="tel"],
body.site input[type="search"],
body.site input[type="number"],
body.site select,
body.site textarea {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

body.site .form-control:focus,
body.site .form-select:focus,
body.site input[type="text"]:focus,
body.site input[type="email"]:focus,
body.site input[type="password"]:focus,
body.site input[type="tel"]:focus,
body.site input[type="search"]:focus,
body.site input[type="number"]:focus,
body.site select:focus,
body.site textarea:focus {
  border-color: rgba(34, 107, 53, 0.45);
  box-shadow: 0 0 0 0.22rem rgba(34, 107, 53, 0.12);
  outline: none;
}

/* Header */
body.site .header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 232, 225, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(18, 67, 33, 0.05);
}

body.site .toolbar {
  background: var(--brand-dark);
  color: #f4fff6;
  font-size: 0.88rem;
}

body.site .toolbar a,
body.site .toolbar .btn-link,
body.site .toolbar .dropdown-toggle {
  color: #f4fff6;
}

body.site .toolbar strong,
body.site .top-bar {
  color: #d6ffcf;
}

body.site .header-inner {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

body.site .logo img {
  max-width: 138px;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 8px 16px rgba(34, 107, 53, 0.12));
}

body.site .logo .h3 {
  display: inline-block;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

body.site .cart-module .btn-link,
body.site .cart-module button.btn-link {
  color: var(--brand-dark) !important;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.82rem !important;
  box-shadow: 0 8px 20px rgba(18, 67, 33, 0.07);
}

body.site .cart-module .btn-link:hover,
body.site .cart-module button.btn-link:hover {
  color: #fff !important;
  background: var(--brand);
}

/* Search */
body.site .main-search .input-group,
body.site .vmbasic-search,
body.site .mod-vm-search,
body.site .vm-search-custom-search-input {
  position: relative;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.45rem 0.35rem 1rem;
  box-shadow: 0 8px 24px rgba(18, 67, 33, 0.06);
  overflow: hidden;
}

body.site .main-search .form-control,
body.site .vmbasic-search input,
body.site .mod-vm-search input,
body.site #mod_virtuemart_search {
  height: 40px;
  border: 0 !important;
  background: transparent;
  color: var(--ink);
  padding-left: 0;
  box-shadow: none !important;
}

body.site .mod-vm-search .btn,
body.site .mod-vm-search .btn-svg,
body.site .vmbasic-search .btn,
body.site .vmbasic-search .btn-svg {
  position: relative;
  inset: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
}

/* Main menu */
body.site .main-menu {
  background: transparent;
  color: var(--ink);
}

body.site .main-menu .container-xxl {
  background: linear-gradient(135deg, rgba(34, 107, 53, 0.97), rgba(18, 67, 33, 0.98));
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(18, 67, 33, 0.14);
  overflow: visible;
}

body.site .main-menu .mod-menu {
  justify-content: center;
  gap: 0.1rem;
}

body.site .main-menu a,
body.site .main-menu span {
  background: transparent;
  color: #f4fff6;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.85rem 1.1rem;
}

body.site .main-menu .active > a,
body.site .main-menu .active > span,
body.site .main-menu a:hover,
body.site .main-menu span:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

body.site .main-menu .parent:hover > .mod-menu__sub {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.site .main-menu .mod-menu__sub a,
body.site .main-menu .mod-menu__sub span {
  color: var(--ink);
  background: var(--paper);
  border-radius: 0;
}

body.site .main-menu .mod-menu__sub a:hover,
body.site .main-menu .mod-menu__sub span:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Offcanvas mobile menu */
body.site .offcanvas {
  background:
    radial-gradient(circle at top right, rgba(111, 171, 63, 0.18), transparent 18rem),
    var(--paper);
  border: 0;
  box-shadow: 24px 0 54px rgba(18, 67, 33, 0.18);
}

body.site .offcanvas-header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.25rem;
}

body.site .offcanvas-body {
  padding: 1rem 1.25rem 1.5rem;
}

body.site .offcanvas-body .nav-item {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}

body.site .offcanvas-body a,
body.site .offcanvas-body span {
  display: block;
  padding: 0.72rem 0;
  color: var(--ink);
  font-weight: 800;
}

body.site .offcanvas-body .active > a,
body.site .offcanvas-body a:hover {
  color: var(--brand);
}

body.site .offcanvas-body .subtoggle {
  color: var(--brand-dark);
  border-radius: 999px;
  background: var(--brand-soft);
}

body.site .btn-close {
  border-radius: 999px;
  background-color: var(--brand-soft);
  padding: 0.8rem;
}

/* Breadcrumbs */
body.site .breadcrumbs .mod-breadcrumbs,
body.site .mod-breadcrumbs {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.72rem 1rem;
  box-shadow: 0 10px 24px rgba(18, 67, 33, 0.05);
}

body.site .breadcrumb-item.active,
body.site .mod-breadcrumbs .active {
  color: var(--brand-dark);
}

/* Banners and content blocks */
body.site .banner-section,
body.site .top-1,
body.site .top-2,
body.site .top-3,
body.site .top-4,
body.site .bottom-1,
body.site .bottom-2,
body.site .bottom-3,
body.site .bottom-4 {
  position: relative;
}

body.site .banner-section img,
body.site .top-1 img,
body.site .top-2 img,
body.site .top-3 img,
body.site .top-4 img,
body.site .bottom-1 img,
body.site .bottom-2 img,
body.site .bottom-3 img,
body.site .bottom-4 img {
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

body.site .module,
body.site .card,
body.site .well,
body.site .vmgroup,
body.site .moduletable,
body.site .sidebar-left .moduletable,
body.site .sidebar-right .moduletable,
body.site .mod-login__userdata.userdata,
body.site .com-users-login.login,
body.site .com-users-reset,
body.site .com-users-remind,
body.site .com-users-registration {
  background: var(--paper);
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(18, 67, 33, 0.08);
}

body.site aside .module-title,
body.site footer .module-title,
body.site .module-title,
body.site .page-header h1,
body.site .category-view h1,
body.site .browse-view h1,
body.site .productdetails-view h1 {
  color: var(--brand-dark);
}

body.site aside .module-title {
  border-bottom-color: var(--line);
}

/* VirtueMart category menu */
body.site .vm-menu,
body.site .vm-menu-default,
body.site .vm-categories-wall,
body.site .category-view .category,
body.site .manufacturer-view-default .row > div,
body.site .manufacturers-details-view .row > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(18, 67, 33, 0.08);
  overflow: hidden;
}

body.site .vm-menu .accordion-item {
  border-color: var(--line) !important;
  background: transparent;
}

body.site .vm-menu a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--ink);
  font-weight: 800;
}

body.site .vm-menu .active > a,
body.site .vm-menu a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

body.site .vm-menu-btn {
  color: var(--brand-dark);
  background: transparent;
}

body.site .vm-submenu {
  background: #f7fbf6 !important;
}

/* VirtueMart products */
body.site .vm-product-grid .product-container,
body.site .vm-products-module .product-container,
body.site .browse-view .product,
body.site .category-view .product,
body.site .product.vm-col,
body.site .productdetails .product-container,
body.site .featured-view .product,
body.site .latest-view .product,
body.site .topten-view .product,
body.site .recent-view .product,
body.site .related-products .product-field,
body.site .browse-view .row .product,
body.site .vm-product-list .product-container {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(18, 67, 33, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.site .vm-product-grid .product-container:hover,
body.site .vm-products-module .product-container:hover,
body.site .browse-view .product:hover,
body.site .category-view .product:hover,
body.site .product.vm-col:hover,
body.site .featured-view .product:hover,
body.site .latest-view .product:hover,
body.site .topten-view .product:hover,
body.site .recent-view .product:hover,
body.site .related-products .product-field:hover,
body.site .vm-product-list .product-container:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 107, 53, 0.24);
  box-shadow: var(--shadow);
}

body.site .vm-product-media-container,
body.site .browseProductImage,
body.site .product-image,
body.site .main-image,
body.site .additional-images,
body.site .category-view .spacer .image {
  background: linear-gradient(180deg, #fff, #f3faf2);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}

body.site .vm-product-media-container img,
body.site .browseProductImage img,
body.site .product-image img,
body.site .main-image img,
body.site .additional-images img {
  border-radius: calc(var(--radius) - 6px);
  transition: transform 0.22s ease;
}

body.site .vm-product-grid .product-container:hover .vm-product-media-container img,
body.site .vm-products-module .product-container:hover .vm-product-media-container img,
body.site .browse-view .product:hover img,
body.site .category-view .product:hover img {
  transform: scale(1.035);
}

body.site .vm-product-title,
body.site .vm-product-title a,
body.site .product-title,
body.site .product-title a,
body.site .browseProductTitle,
body.site .browseProductTitle a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
}

body.site .vm-product-title a:hover,
body.site .product-title a:hover,
body.site .browseProductTitle a:hover {
  color: var(--brand);
}

body.site .vm-product-s-desc,
body.site .product_s_desc,
body.site .product-short-description,
body.site .text-secondary {
  color: var(--muted) !important;
}

body.site .product-price,
body.site .PricesalesPrice,
body.site .salesPrice,
body.site span.PricebasePriceWithTax,
body.site .vm-price-value,
body.site .PricepriceWithoutTax,
body.site .PricediscountAmount {
  color: var(--brand);
  font-weight: 950;
}

body.site .vm-simple-price-display .PricesalesPrice,
body.site .product-price .PricesalesPrice {
  font-size: 1.18rem;
}

body.site .vm-has-discount .PricebasePriceWithTax,
body.site .PricebasePriceWithTax {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: line-through;
}

body.site .vm-ratingbox-rated,
body.site .vm-ratingbox-bar,
body.site .vm-ratingbox-unrated svg,
body.site .ratingbox,
body.site .stars-orange {
  color: var(--accent);
}

body.site .addtocart-area,
body.site .addtocart-bar {
  margin-top: 1rem;
}

body.site .quantity-box input,
body.site input.quantity-input,
body.site .addtocart-bar input.quantity-input {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-align: center;
  min-height: 40px;
}

body.site .quantity-controls input,
body.site .quantity-controls button,
body.site .quantity-controls .quantity-plus,
body.site .quantity-controls .quantity-minus {
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid rgba(34, 107, 53, 0.12);
}

/* Product details */
body.site .productdetails-view .vm-product-container,
body.site .productdetails-view .productdetails,
body.site .productdetails-view .spacer-buy-area,
body.site .productdetails-view .product-description,
body.site .productdetails-view .customer-reviews,
body.site .productdetails-view .manufacturer,
body.site .productdetails-view .additional-images,
body.site .ask-a-question-view,
body.site .manufacturer-details-view,
body.site .virtuemart_search,
body.site .vm-order-done,
body.site .vm-account-main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 14px 34px rgba(18, 67, 33, 0.08);
}

body.site .manufacturer a,
body.site .manufacturer-details-view a:not(.btn),
body.site .vm-add-edit-address > a,
body.site .vm-order-list a,
body.site #checkoutForm .details,
body.site .com-content-article__links a,
body.site .items-more a {
  color: var(--brand);
  font-weight: 800;
}

body.site .availability,
body.site .stock-level,
body.site .vm-product-rating-container {
  color: var(--muted);
  border-color: var(--line) !important;
}

/* Sorting, pagination and notices */
body.site .orderby-displaynumber,
body.site .vm-pagination,
body.site .pagination,
body.site .limitbox,
body.site .vm-search-custom-values {
  color: var(--muted);
}

body.site #vm-orderby-select,
body.site #vm-orderby-select_chzn,
body.site .vm-orderby-select,
body.site .orderby-displaynumber select,
body.site .limitbox select {
  border-radius: 999px !important;
  border-color: var(--line) !important;
  background: var(--paper);
}

body.site .page-link,
body.site .pagination a,
body.site .pagination span {
  color: var(--brand-dark);
  border-color: var(--line);
  border-radius: 999px !important;
  margin: 0 0.15rem;
}

body.site .active > .page-link,
body.site .page-link.active,
body.site .pagination .active a,
body.site .pagination .active span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

body.site .alert,
body.site #system-message-container .alert {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(18, 67, 33, 0.06);
}

/* Cart / checkout */
body.site .vmCartModule,
body.site .vm-cart-header-container,
body.site .vm-cart-item,
body.site .vm-cart-item-basic,
body.site .cart-summary,
body.site .vm-cart-tos,
body.site #checkoutForm,
body.site .cart-view,
body.site .checkout-view,
body.site .vm-fieldset-pricelist,
body.site .billto-shipto,
body.site .checkout-button-top,
body.site .cart.tos,
body.site .vm-coupon-container,
body.site .output-billto,
body.site .output-shipto {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(18, 67, 33, 0.08);
}

body.site .vmCartModule {
  padding: 0.75rem;
}

body.site .vmCartModule .total_products {
  background: var(--brand-soft) !important;
  color: var(--brand-dark);
  border-radius: 999px;
  font-weight: 800;
  margin: 0;
}

body.site .vmCartModule .product_row {
  border-color: var(--line) !important;
}

body.site .vmCartModule .image,
body.site .vmCartModule .img-thumbnail {
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

body.site .vmCartModule .total,
body.site .vm-cart-item-total,
body.site .vm-cart-grand-total,
body.site .billTotal,
body.site .cart-summary .total {
  color: var(--brand);
  font-weight: 950;
}

body.site .show-cart,
body.site .show_cart a {
  background: var(--accent) !important;
  color: #3d2700 !important;
}

body.site .show-cart:hover,
body.site .show_cart a:hover {
  background: #e49617 !important;
  color: #3d2700 !important;
}

body.site table,
body.site .cart-summary table,
body.site .vm-cart-item table,
body.site .adminlist {
  border-color: var(--line);
}

body.site table th,
body.site .cart-summary th,
body.site .adminlist th {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Footer */
body.site footer {
  background: linear-gradient(135deg, var(--brand-dark), #0d2d18);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 3rem;
}

body.site footer a,
body.site footer .module-title,
body.site footer h1,
body.site footer h2,
body.site footer h3,
body.site footer h4,
body.site footer h5,
body.site footer h6 {
  color: #fff;
}

body.site footer a:hover {
  color: #d6ffcf;
}

body.site footer .border-top {
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.site .footer-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

/* Back to top */
body.site .back-to-top-link {
  right: 1rem;
  bottom: 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(18, 67, 33, 0.24);
}

/* Responsive tuning */
@media (max-width: 1199.98px) {
  body.site .header-inner {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }

  body.site .logo img {
    max-width: 118px;
  }
}

@media (max-width: 991.98px) {
  body.site .main-search {
    display: none;
  }

  body.site .main-search.open,
  body.site .header .main-search.is-open {
    display: block;
  }

  body.site .vm-product-grid .product-container,
  body.site .vm-products-module .product-container,
  body.site .browse-view .product,
  body.site .category-view .product {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 575.98px) {
  body.site .container-xxl,
  body.site .container,
  body.site .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.site h1,
  body.site .h1 {
    font-size: 2rem;
  }

  body.site .cart-module .btn-link,
  body.site .cart-module button.btn-link {
    padding: 0.58rem 0.68rem !important;
  }

  body.site .productdetails-view .vm-product-container,
  body.site .productdetails-view .productdetails,
  body.site .productdetails-view .spacer-buy-area,
  body.site .productdetails-view .product-description,
  body.site #checkoutForm,
  body.site .cart-view,
  body.site .checkout-view {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }
}
