:root {
  --mf-bg: #f4f6fa;
  --mf-surface: #ffffff;
  --mf-surface-2: #f8fafc;
  --mf-text: #111827;
  --mf-text-2: #6b7280;
  --mf-line: #e5e7eb;
  --mf-primary: #4f46e5;
  --mf-primary-hover: #4338ca;
  --mf-success: #10b981;
  --mf-danger: #ef4444;
  --mf-radius: 16px;
  --mf-radius-sm: 10px;
  --mf-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
  --mf-shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.04);
}

html,
body {
  background: var(--mf-bg);
}

body.modern-oc,
body,
input,
button,
select,
textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--mf-text);
}

body {
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: var(--mf-text);
  transition: .2s ease;
}

a:hover,
a:focus {
  color: var(--mf-primary);
  text-decoration: none;
}

.container,
header .container,
#top .container,
#menu .container,
#content,
footer .container {
  max-width: 1280px;
}

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

h1,
h2,
h3,
h4,
h5 {
  color: var(--mf-text);
  font-weight: 700;
}

h1 {
  font-size: 24px;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 14px;
}

h2 {
  font-size: 22px;
}

.alert,
.well,
.list-group,
.table-responsive,
.thumbnail,
.option,
#accordion,
.panel,
.box,
.checkout-panel,
.account-content,
.information-contact .panel,
.category-description,
.refine-search,
.category-list,
.manufacturer-list,
.product-extra,
.product-info,
.product-right,
.product-left,
.product-content,
.product-tab {
  border-radius: var(--mf-radius);
  border: 1px solid var(--mf-line);
  box-shadow: var(--mf-shadow-sm);
  background: var(--mf-surface);
}

.btn {
  border-radius: 12px;
  font-weight: 600;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
#button-cart,
button[id^="button-cart"] {
  background: var(--mf-primary);
  border-color: var(--mf-primary);
  color: #fff;
}

.btn-primary:hover,
#button-cart:hover,
button[id^="button-cart"]:hover {
  background: var(--mf-primary-hover);
  border-color: var(--mf-primary-hover);
}

.btn-default,
.btn-secondary {
  background: #fff;
  border-color: var(--mf-line);
  color: var(--mf-text);
}

.form-control,
select.form-control,
#search .input-lg,
#search input {
  min-height: 42px;
  height: 42px;
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: var(--mf-text);
  font-size: 14px;
  padding: 0 12px;
}

.form-control:focus,
#search input:focus,
select.form-control:focus {
  border-color: rgba(79, 70, 229, .35);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .08);
}

.breadcrumb {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 10px;
}

.breadcrumb > li,
.breadcrumb > li a {
  color: var(--mf-text-2);
  font-size: 13px;
}

.breadcrumb > li + li:before {
  color: #9ca3af;
}

#top,
header,
.common-home header,
.common-home #top {
  background: #fff;
}

/* ===== TOP BAR ===== */
#top {
  border-bottom: 1px solid var(--mf-line);
  padding: 6px 0;
  margin-bottom: 0;
}

#top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#top .top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

#top a,
#top .btn-link,
#top-links a,
#top-links .dropdown-toggle {
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

#top a:hover,
#top .btn-link:hover,
#top-links a:hover,
#top-links .dropdown-toggle:hover {
  color: #111827;
}

#top-links .list-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

#top-links .list-inline > li {
  padding: 0;
}

#top .dropdown-menu {
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  padding: 8px 0;
  margin-top: 8px;
}

#top .dropdown-menu > li > a {
  padding: 9px 14px;
  font-size: 13px;
}

#top .dropdown-menu > li > a:hover {
  background: #f3f4f6;
  color: #111827;
}

/* ===== HEADER ===== */
header {
  border-bottom: 1px solid #edf0f4;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
  padding: 8px 0 6px;
  margin-bottom: 8px;
}

header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-left: -8px;
  margin-right: -8px;
}

header .row > .col-sm-4,
header .row > .col-sm-5,
header .row > .col-sm-3 {
  float: none;
  padding-left: 8px;
  padding-right: 8px;
}

header .row > .col-sm-4 {
  width: 30%;
}

header .row > .col-sm-5 {
  width: 38%;
}

header .row > .col-sm-3 {
  width: 32%;
}

#logo {
  display: flex;
  align-items: center;
  min-height: 125px;
}

#logo a {
  display: flex;
  align-items: center;
  width: 100%;
}

#logo img {
  display: block;
  max-width: 370px;
  max-height: 125px;
  width: auto;
  height: auto;
}

#logo a,
#logo h1 a {
  color: #111827;
  text-decoration: none;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}

#search {
  position: relative;
  margin: 0;
}

#search .input-lg,
#search input {
  height: 44px;
  min-height: 44px;
  border-radius: 12px 0 0 12px;
  font-size: 14px;
  padding: 0 14px;
}

#search .btn-lg,
#search button {
  min-height: 44px;
  height: 44px;
  border-radius: 0 12px 12px 0;
  border: 1px solid var(--mf-primary);
  background: var(--mf-primary);
  color: #fff;
  padding: 0 14px;
  font-size: 15px;
}

#search .btn-lg:hover,
#search button:hover {
  background: var(--mf-primary-hover);
  border-color: var(--mf-primary-hover);
}

#cart {
  margin: 0;
}

#cart > .btn {
  height: 44px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  padding: 0 14px;
  text-shadow: none;
  box-shadow: none;
}

#cart > .btn:hover,
#cart.open > .btn {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

#cart .dropdown-menu {
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
  padding: 12px;
  margin-top: 10px;
}

/* ===== MENU ===== */
#menu {
  background: transparent;
  border: 0;
  min-height: auto;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  #menu .navbar-header {
    display: none;
  }

  #menu .collapse,
  #menu .collapse.navbar-collapse {
    display: block !important;
    padding: 0;
  }
}

#menu .nav {
  float: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--mf-shadow-sm);
}

#menu .nav > li {
  float: none;
}

#menu .nav > li > a {
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  min-height: auto;
}

#menu .nav > li > a:hover,
#menu .nav > li.open > a,
#menu .nav > li.active > a {
  background: #eef2ff;
  color: var(--mf-primary-hover);
}

#menu .dropdown-menu {
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.10);
  padding: 8px 0;
  margin-top: 10px;
}

#menu .dropdown-menu a {
  color: #374151;
  font-size: 13px;
  padding: 9px 14px;
}

#menu .dropdown-menu a:hover {
  background: #f3f4f6;
  color: #111827;
}

#menu .see-all {
  border-top: 1px solid #eef2f7;
  margin-top: 4px;
  padding-top: 6px;
}

/* ===== SIDEBAR / BLOCKS ===== */
.list-group {
  overflow: hidden;
}

.list-group a,
.list-group-item {
  border: 0;
  border-bottom: 1px solid var(--mf-line);
  padding: 13px 16px;
  font-size: 14px;
  color: var(--mf-text);
  background: #fff;
}

.list-group a:last-child,
.list-group-item:last-child {
  border-bottom: 0;
}

.list-group a.active,
.list-group a.active:hover,
.list-group a.active:focus {
  background: linear-gradient(180deg, rgba(79, 70, 229, .06), rgba(79, 70, 229, .03));
  color: var(--mf-primary);
  border: 0;
  font-weight: 700;
}

#common-home,
#product-category,
#product-product,
#product-search,
#information-contact,
#information-information,
#extension-module-model_auto {
  padding-top: 0;
}

#content > .row,
.category-page .row,
.product-category .row,
.product-product .row {
  margin-bottom: 2px;
}

#content > h1,
.mf-page-title,
.category-description,
.refine-search,
.category-list,
.manufacturer-list {
  margin-bottom: 14px;
}

#content > h1 {
  font-size: 18px;
  line-height: 1.2;
}

.category-description,
.refine-search,
.category-list,
.manufacturer-list,
#content .well,
#content .panel,
#content .list-group {
  border-radius: 14px;
}

/* ===== CATEGORY / REFINE ===== */
.product-category .category-info,
.product-category .refine-search,
.product-category .category-list {
  padding: 14px;
  margin-bottom: 18px;
}

.product-category .category-list .row > div,
.refine-search .row > div {
  margin-bottom: 12px;
}

.product-category .category-list a,
.refine-search a {
  display: block;
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  min-height: 100%;
  box-shadow: var(--mf-shadow-sm);
  font-size: 14px;
}

.product-category .category-list a img,
.refine-search a img {
  margin: 0 auto 10px;
  max-height: 90px;
  width: auto;
}

.product-category .row + .row > div > .form-group,
.product-category .row + .row > div > .input-group,
.product-category #input-sort,
.product-category #input-limit {
  margin-bottom: 0;
}

.product-category .row .col-md-2,
.product-category .row .col-sm-2,
.product-category .row .col-md-3,
.product-category .row .col-sm-3 {
  margin-bottom: 10px;
}

.mf-category-description {
  margin: 0 0 10px;
}

.mf-refine-block {
  margin: 0 0 8px;
}

.mf-refine-title {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
}

.mf-refine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 4px;
}

.mf-refine-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  padding: 7px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  color: #111827;
  text-decoration: none;
  transition: .2s ease;
  box-shadow: none;
  outline: none;
}

.mf-refine-card:hover {
  border-color: #d1d5db;
  box-shadow: none;
  transform: none;
  color: #111827;
}

.mf-refine-card:focus,
.mf-refine-card:active,
.mf-refine-card:visited {
  outline: none;
  box-shadow: none;
  color: #111827;
}

.mf-refine-card__name {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 600;
}

.mf-refine-card__arrow {
  display: none;
}

.mf-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
}

.mf-toolbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-toolbar__right {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.mf-toolbar__group label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.mf-toolbar__group .form-control {
  height: 38px;
  min-height: 38px;
  border-radius: 10px;
  font-size: 13px;
}

.mf-compare-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

/* ===== PRODUCT CARDS ===== */
.product-layout {
  margin-bottom: 18px;
}

.product-thumb {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.05);
  padding: 12px;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-thumb:hover {
  transform: translateY(-2px);
  border-color: #d8dee9;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.product-thumb .image {
  background: var(--mf-surface-2);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 0;
  min-height: auto;
}

.product-thumb .image a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 14px;
}

.product-thumb .image img {
  margin: 0 auto;
  max-height: 160px;
  width: auto;
  transition: transform .25s ease;
}

.product-thumb:hover .image img {
  transform: scale(1.03);
}

.product-thumb .caption {
  padding: 0 4px;
  flex: 1;
  min-height: 118px;
}

.product-thumb h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  min-height: 42px;
}

.product-thumb h4 a {
  color: var(--mf-text);
  font-weight: 700;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-thumb h4 a:hover {
  color: var(--mf-primary-hover);
}

.product-thumb .caption p,
.product-thumb .description,
.product-thumb .product-description,
.product-thumb .model,
.product-thumb .sku,
.product-thumb small,
.product-thumb .text-muted {
  color: var(--mf-text-2);
  font-size: 12px;
  line-height: 1.45;
}

.price,
.product-thumb .price {
  color: var(--mf-text);
  font-size: 20px;
  font-weight: 800;
  margin-top: 8px;
  line-height: 1.2;
}

.price-new,
.product-thumb .price-new {
  color: var(--mf-text);
}

.price-old,
.product-thumb .price-old {
  color: var(--mf-text-2);
  font-size: 13px;
  font-weight: 500;
  margin-left: 8px;
  text-decoration: line-through;
}

.price-tax,
.product-thumb .price-tax {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  margin-top: 4px;
}

.rating .fa-stack,
.rating .fa-star,
.rating .fa-star-o,
.product-thumb .rating {
  color: #f59e0b;
}

.product-thumb .rating {
  margin-top: 6px;
  padding: 0;
}

.button-group,
.product-thumb .button-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-top: 0;
  padding: 0;
  background: transparent;
}

.product-thumb .button-group button,
.product-thumb .button-group .btn {
  flex: 1;
  border: 1px solid var(--mf-line);
  background: #fff;
  color: var(--mf-text);
  border-radius: 10px;
  height: 38px;
  font-size: 12px;
  box-shadow: none;
}

.product-thumb .button-group button:first-child,
.product-thumb .button-group .btn-primary {
  background: var(--mf-primary);
  border-color: var(--mf-primary);
  color: #fff;
}

.product-thumb .button-group button:first-child:hover,
.product-thumb .button-group .btn-primary:hover {
  background: var(--mf-primary-hover);
  border-color: var(--mf-primary-hover);
}

.product-thumb .button-group button .fa,
.product-thumb .button-group .btn .fa {
  font-size: 14px;
}

.product-list .product-thumb {
  flex-direction: row;
}

.product-list .product-thumb .image {
  width: 220px;
  flex: 0 0 220px;
}

.product-list .product-thumb .caption {
  padding: 2px 0 0 14px;
}

.product-list .product-thumb .button-group {
  padding: 0;
}

/* remove number spinners */
.product-thumb input[type="number"]::-webkit-outer-spin-button,
.product-thumb input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-thumb input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ===== PRODUCT PAGE ===== */
.product-product .thumbnails,
#product-product .thumbnails {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--mf-shadow-sm);
  margin: 0;
  list-style: none;
}

#product-product .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

#product-product .breadcrumb > li {
  padding: 0;
}

#product-product .breadcrumb > li + li:before {
  content: "/";
  color: #9ca3af;
  padding: 0 6px 0 2px;
}

#product-product .breadcrumb a {
  color: #6b7280;
  font-size: 13px;
}

#product-product #content > h1 {
  display: none;
}

#product-product #content > .row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

#product-product #content .col-sm-4,
#product-product #content .col-sm-5,
#product-product #content .col-sm-7,
#product-product #content .col-sm-8 {
  margin-bottom: 16px;
}

#product-product .thumbnails > li {
  margin-bottom: 10px;
}

.product-product .thumbnails .thumbnail,
#product-product .thumbnails .thumbnail {
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: none;
  overflow: hidden;
}

#product-product .thumbnails > li:first-child .thumbnail {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-product .thumbnails > li:first-child .thumbnail img {
  max-height: 300px;
  width: auto;
  margin: 0 auto;
}

#product-product .image-additional {
  margin-top: 10px;
}

#product-product .image-additional .thumbnail {
  min-height: 78px;
  padding: 8px;
  border-radius: 12px;
  transition: .2s ease;
}

#product-product .image-additional .thumbnail:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.10);
}

.product-product h1,
#product-product #content > .row > .col-sm-4 > h1,
#product-product #content > .row > .col-sm-5 > h1,
#product-product #content > .row > .col-sm-6 > h1 {
  font-size: 19px;
  line-height: 1.28;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.product-product #content ul.list-unstyled,
.product-product #product,
#product-product #content > .row > .col-sm-4 > ul.list-unstyled,
#product-product #content > .row > .col-sm-5 > ul.list-unstyled,
#product-product #content > .row > .col-sm-6 > ul.list-unstyled,
#product {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--mf-shadow-sm);
  margin-bottom: 12px;
}

#product-product .list-unstyled li {
  color: #374151;
  font-size: 13px;
  margin-bottom: 6px;
}

#product-product .list-unstyled li:last-child {
  margin-bottom: 0;
}

#product-product .list-unstyled h2 {
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 0;
}

#product .control-label {
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

#product .form-control {
  height: 44px;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  box-shadow: none;
  background: #f9fafb;
}

#product .form-control:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: none;
}

#button-cart,
button[id^="button-cart"] {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.18);
}

#product-product .btn-group {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

#product-product .btn-group .btn {
  border: 1px solid var(--mf-line);
  background: #fff;
  color: #374151;
  border-radius: 10px;
  box-shadow: none;
}

#product-product .btn-group .btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

#product .radio,
#product .checkbox {
  background: #f9fafb;
  border: 1px solid var(--mf-line);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

#product-product .rating {
  margin-top: 10px;
  color: #f59e0b;
}

#product-product .rating a {
  color: #4b5563;
}

.nav-tabs,
#product-product .nav-tabs {
  border-bottom: 0;
  display: flex;
  gap: 6px;
  margin: 16px 0 10px;
  padding: 0;
}

.nav-tabs > li,
#product-product .nav-tabs > li {
  float: none;
  margin: 0;
}

.nav-tabs > li > a,
#product-product .nav-tabs > li > a {
  border: 1px solid var(--mf-line);
  background: #fff;
  color: #4b5563;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
#product-product .nav-tabs > li.active > a,
#product-product .nav-tabs > li.active > a:hover,
#product-product .nav-tabs > li.active > a:focus {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  box-shadow: none;
}

.tab-content,
#product-product .tab-content {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--mf-shadow-sm);
}

#product-product .tab-content p,
#product-product .tab-content li,
#product-product .tab-content span,
#product-product .tab-content div {
  color: #374151;
  font-size: 13px;
  line-height: 1.6;
}

#product-product .tab-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#product-product .tab-content table td,
#product-product .tab-content table th {
  border: 1px solid var(--mf-line);
  padding: 8px 10px;
  font-size: 13px;
}

/* ===== PAGINATION ===== */
.pagination > li > a,
.pagination > li > span {
  border: 1px solid var(--mf-line);
  border-radius: 10px;
  color: var(--mf-text);
  margin: 0 3px;
  min-width: 38px;
  padding: 8px 10px;
  text-align: center;
  font-size: 13px;
}

.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus,
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus {
  background: var(--mf-primary);
  border-color: var(--mf-primary);
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 30px;
  background: #0f172a;
  color: rgba(255, 255, 255, .75);
  border-top: 0;
}

footer a {
  color: rgba(255, 255, 255, .86);
}

footer a:hover {
  color: #fff;
}

footer h5,
footer .h5 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}

footer .container {
  padding-top: 28px;
  padding-bottom: 18px;
}

#common-home #content .swiper-viewport,
#common-home #content .banner,
#common-home #content .product-layout,
#common-home #content .category-layout,
.swiper-viewport,
.banner,
.carousel,
.common-home .module,
.common-home .box {
  border-radius: var(--mf-radius);
  overflow: hidden;
  box-shadow: var(--mf-shadow-sm);
  border: 1px solid var(--mf-line);
  background: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  header .row {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  header .row > .col-sm-4,
  header .row > .col-sm-5,
  header .row > .col-sm-3 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  #logo {
    justify-content: center;
    min-height: auto;
    margin-bottom: 8px;
  }

  #logo img {
    max-height: 78px;
  }

  #search,
  #cart {
    margin-top: 8px;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .product-thumb .caption {
    min-height: 0;
  }

  .product-list .product-thumb {
    flex-direction: column;
  }

  .product-list .product-thumb .image {
    width: 100%;
    flex: none;
  }

  .mf-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-toolbar__left,
  .mf-toolbar__right {
    width: 100%;
    flex-wrap: wrap;
  }

  .mf-toolbar__group {
    flex: 1 1 200px;
  }

  #product-product .nav-tabs,
  .nav-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  body.modern-oc,
  body {
    font-size: 13px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  #top {
    padding: 6px 0;
  }

  #top .container {
    display: block;
  }

  #top .top-left,
  #top-links .list-inline {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  #menu .nav {
    display: block;
    padding: 8px;
  }

  #menu .nav > li > a {
    display: block;
  }

  .mf-refine-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mf-refine-card {
    min-height: 54px;
    padding: 12px 14px;
  }

  .mf-refine-card__name {
    font-size: 14px;
  }

  .product-thumb {
    padding: 10px;
  }

  .product-thumb .image a {
    min-height: 150px;
    padding: 10px;
  }

  .product-thumb .image img {
    max-height: 130px;
  }

  .button-group,
  .product-thumb .button-group {
    flex-wrap: wrap;
  }

  .product-thumb .button-group button,
  .product-thumb .button-group .btn {
    min-width: calc(50% - 4px);
  }

  #product-product .thumbnails > li:first-child .thumbnail {
    min-height: 260px;
  }

  #product-product .thumbnails > li:first-child .thumbnail img {
    max-height: 220px;
  }
}
/* ===== PRODUCT GRID TIGHTER + HIDE SPINNER IN CARD ACTIONS ===== */

/* менший інтервал між картками */
#product-category .row > .product-layout {
  margin-bottom: 10px;
  padding-left: 6px;
  padding-right: 6px;
}

#product-category .row {
  margin-left: -6px;
  margin-right: -6px;
}

/* компактніший блок кнопок */
#product-category .product-thumb .button-group,
#product-category .button-group {
  gap: 6px !important;
  margin-top: 10px !important;
  overflow: visible !important;
  scrollbar-width: none;
}

#product-category .product-thumb .button-group::-webkit-scrollbar,
#product-category .button-group::-webkit-scrollbar {
  display: none;
}

/* якщо в картці є приховане/вузьке поле кількості — сховати його */
#product-category .product-thumb .button-group input[type="number"],
#product-category .product-thumb .button-group input.qty,
#product-category .product-thumb .button-group .quantity,
#product-category .product-thumb .button-group .qty,
#product-category .product-thumb .button-group .input-group-btn-vertical {
  display: none !important;
}

/* прибрати браузерні стрілки number input всюди в картках */
#product-category .product-thumb input[type="number"]::-webkit-outer-spin-button,
#product-category .product-thumb input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

#product-category .product-thumb input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* трохи нижчі кнопки */
#product-category .product-thumb .button-group button,
#product-category .product-thumb .button-group .btn {
  height: 36px !important;
  border-radius: 9px !important;
}
/* ===== CHECKOUT PAGE MODERN SAFE ===== */

#checkout-checkout #content > h1 {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

#checkout-checkout .breadcrumb {
  margin-bottom: 14px;
}

#checkout-checkout #accordion {
  margin: 0;
}

#checkout-checkout #accordion .panel {
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.035);
  overflow: hidden;
  margin-bottom: 8px;
}

#checkout-checkout #accordion .panel-heading {
  padding: 0;
  background: #f6f8fb;
  border: 0;
}

#checkout-checkout #accordion .panel-title,
#checkout-checkout #accordion .panel-title a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
}

#checkout-checkout #accordion .panel-title a:hover {
  color: #111827;
}

#checkout-checkout #accordion .panel-collapse {
  border-top: 1px solid #e9eef3;
}

#checkout-checkout #accordion .panel-body {
  padding: 14px;
  background: #fff;
}

/* форми */
#checkout-checkout .form-control,
#checkout-checkout input[type="text"],
#checkout-checkout input[type="email"],
#checkout-checkout input[type="tel"],
#checkout-checkout input[type="password"],
#checkout-checkout select,
#checkout-checkout textarea {
  height: 44px;
  min-height: 44px;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  color: #111827;
  padding: 0 14px;
}

#checkout-checkout textarea {
  min-height: 110px;
  padding: 12px 14px;
}

#checkout-checkout .form-control:focus,
#checkout-checkout input:focus,
#checkout-checkout select:focus,
#checkout-checkout textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

#checkout-checkout .control-label,
#checkout-checkout label {
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

/* дві колонки в першому кроці */
#checkout-checkout #collapse-checkout-option .row,
#checkout-checkout #collapse-payment-address .row {
  display: flex;
  flex-wrap: wrap;
}

#checkout-checkout #collapse-checkout-option .col-sm-6,
#checkout-checkout #collapse-payment-address .col-sm-6 {
  margin-bottom: 12px;
}

/* radio / checkbox */
#checkout-checkout .radio,
#checkout-checkout .checkbox {
  margin: 0 0 10px;
}

#checkout-checkout .radio label,
#checkout-checkout .checkbox label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

/* тексти в блоці нового/постійного покупця */
#checkout-checkout .panel-body p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}

/* кнопки */
#checkout-checkout .btn,
#checkout-checkout .buttons .btn,
#checkout-checkout #button-account,
#checkout-checkout #button-login,
#checkout-checkout #button-register,
#checkout-checkout #button-payment-address,
#checkout-checkout #button-shipping-address,
#checkout-checkout #button-guest,
#checkout-checkout #button-guest-shipping,
#checkout-checkout #button-shipping-method,
#checkout-checkout #button-payment-method {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: #4f46e5;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

#checkout-checkout .btn:hover,
#checkout-checkout .buttons .btn:hover,
#checkout-checkout #button-account:hover,
#checkout-checkout #button-login:hover,
#checkout-checkout #button-register:hover,
#checkout-checkout #button-payment-address:hover,
#checkout-checkout #button-shipping-address:hover,
#checkout-checkout #button-guest:hover,
#checkout-checkout #button-guest-shipping:hover,
#checkout-checkout #button-shipping-method:hover,
#checkout-checkout #button-payment-method:hover {
  background: #4338ca;
  color: #fff;
}

/* кнопки справа/зліва */
#checkout-checkout .buttons {
  margin-top: 16px;
}

#checkout-checkout .buttons .pull-right,
#checkout-checkout .buttons .pull-left {
  float: none !important;
}

#checkout-checkout .buttons .pull-right {
  display: flex;
  justify-content: flex-start;
}

/* alert */
#checkout-checkout .alert {
  border-radius: 12px;
  box-shadow: none;
}

/* summary / confirm block */
#checkout-checkout #collapse-checkout-confirm .table-responsive {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

#checkout-checkout #collapse-checkout-confirm table.table {
  margin-bottom: 0;
  background: #fff;
}

#checkout-checkout #collapse-checkout-confirm table.table > thead > tr > td,
#checkout-checkout #collapse-checkout-confirm table.table > thead > tr > th {
  background: #f8fafc;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
}

#checkout-checkout #collapse-checkout-confirm table.table > tbody > tr > td,
#checkout-checkout #collapse-checkout-confirm table.table > tfoot > tr > td {
  padding: 12px 14px;
  vertical-align: top;
  border-top: 1px solid #eef2f7;
}

#checkout-checkout #collapse-checkout-confirm .table tfoot strong {
  font-weight: 800;
  color: #111827;
}

#checkout-checkout #collapse-checkout-confirm .buttons {
  margin-top: 16px;
}

#checkout-checkout #collapse-checkout-confirm .buttons .pull-right {
  width: 100%;
}

#checkout-checkout #collapse-checkout-confirm .buttons .btn,
#checkout-checkout #collapse-checkout-confirm #button-confirm {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
}

/* компактніше */
#checkout-checkout .panel-body .form-group {
  margin-bottom: 14px;
}

#checkout-checkout .panel-body .text-danger {
  font-size: 12px;
  margin-top: 4px;
}

/* мобілка */
@media (max-width: 991px) {
  #checkout-checkout #accordion .panel-body {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  #checkout-checkout #content > h1 {
    font-size: 17px;
  }

  #checkout-checkout #accordion .panel-title,
  #checkout-checkout #accordion .panel-title a {
    min-height: 50px;
    padding: 0 14px;
    font-size: 14px;
  }

  #checkout-checkout #accordion .panel-body {
    padding: 14px;
  }

  #checkout-checkout .form-control,
  #checkout-checkout input[type="text"],
  #checkout-checkout input[type="email"],
  #checkout-checkout input[type="tel"],
  #checkout-checkout input[type="password"],
  #checkout-checkout select,
  #checkout-checkout textarea {
    height: 42px;
    min-height: 42px;
    font-size: 13px;
  }
}
/* прибрати стрілки/скролер у quantity біля кнопок в усіх картках */
.product-thumb .button-group input[type="number"],
.product-thumb .button-group input.qty,
.product-thumb input.qty,
.product-thumb .qty {
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  margin: 0 !important;
  padding-right: 0 !important;
}

.product-thumb .button-group input[type="number"]::-webkit-outer-spin-button,
.product-thumb .button-group input[type="number"]::-webkit-inner-spin-button,
.product-thumb .button-group input.qty::-webkit-outer-spin-button,
.product-thumb .button-group input.qty::-webkit-inner-spin-button,
.product-thumb input.qty::-webkit-outer-spin-button,
.product-thumb input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

/* якщо модуль додає окремий вертикальний блок зі стрілками */
.product-thumb .button-group .input-group-btn-vertical,
.product-thumb .button-group .bootstrap-touchspin,
.product-thumb .button-group .bootstrap-touchspin-vertical,
.product-thumb .button-group .quantity-wrapper,
.product-thumb .button-group .qty-wrapper {
  display: none !important;
}

/* щоб кнопки не зсувалися */
.product-thumb .button-group {
  align-items: center !important;
  overflow: hidden !important;
}

/* ===== HOME ADVANTAGES BLOCK ===== */

.home-advantages {
  margin: 26px 0 10px;
}

.home-advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-advantages__item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
  transition: .2s ease;
}

.home-advantages__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
}

.home-advantages__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: #f4f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-advantages__icon i {
  font-size: 28px;
  color: #2f3147;
}

.home-advantages__title {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
}

.home-advantages__text {
  font-size: 14px;
  line-height: 1.6;
  color: #7b8094;
}

@media (max-width: 1199px) {
  .home-advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .home-advantages {
    margin-top: 18px;
  }

  .home-advantages__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-advantages__item {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .home-advantages__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
  }

  .home-advantages__icon i {
    font-size: 24px;
  }

  .home-advantages__title {
    font-size: 15px;
  }

  .home-advantages__text {
    font-size: 13px;
  }
}
.home-seo-block {
  margin: 28px 0 10px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.home-seo-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.home-seo-block h3 {
  margin: 20px 0 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.home-seo-block p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.home-seo-block strong {
  color: #111827;
}

@media (max-width: 767px) {
  .home-seo-block {
    padding: 18px 16px;
    margin-top: 20px;
    border-radius: 14px;
  }

  .home-seo-block h2 {
    font-size: 22px;
  }

  .home-seo-block h3 {
    font-size: 16px;
  }

  .home-seo-block p {
    font-size: 13px;
    line-height: 1.65;
  }
}

