/* Detali.zp.ua style implementation for autodoctor.in.ua */

:root {
  --primary-orange: #ff6a00;
  --primary-orange-hover: #e05e00;
  --dark-text: #333333;
  --light-text: #ffffff;
  --gray-bg: #f5f5f5;
  --border-color: #e5e5e5;
  --header-bg: #ffffff;
}

body.n-body {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  color: var(--dark-text);
  background-color: var(--gray-bg);
  margin: 0;
  padding: 0;
}

@media (min-width: 1200px) {
  .container {
    width: 1530px !important;
    max-width: 100%;
  }
}

/* Header Styles */
.n-header {
  background: var(--header-bg);
  border-bottom: 2px solid var(--primary-orange);
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1530px;
  margin: 0 auto;
}

.n-header .menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.n-header .menu ul li a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  transition: color 0.2s;
}

.n-header .menu ul li a:hover {
  color: var(--primary-orange);
}

.authorization {
  font-size: 14px;
}

.authorization a {
  color: var(--dark-text);
  text-decoration: none;
}

.authorization a:hover {
  color: var(--primary-orange);
}

#good-header {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 15px;
  justify-content: space-between;
}

.popup-phones {
  font-size: 18px;
  font-weight: bold;
}

.popup-phones .phone {
  color: var(--primary-orange);
}

.header-search-form {
  flex-grow: 1;
  margin: 0 20px;
  position: relative;
}

.header-search-form input[type="text"] {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--primary-orange);
  border-radius: 4px;
  outline: none;
}

.header-search-form input[type="submit"] {
  position: absolute;
  right: 5px;
  top: 5px;
  background: var(--primary-orange);
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 3px;
  cursor: pointer;
}

.popup-cart {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-cart-btn {
  background: var(--gray-bg);
  padding: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.header-cart-text a {
  color: var(--dark-text);
  text-decoration: none;
  font-size: 14px;
}

.header-cart-text a strong {
  color: var(--primary-orange);
}

/* Footer Styles */
.footer-detali {
  background: var(--dark-text);
  color: var(--light-text);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-detali a {
  color: #ccc;
  text-decoration: none;
}

.footer-detali a:hover {
  color: var(--primary-orange);
}

.footer-detali .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1530px;
  margin: 0 auto;
}

.footer-detali .column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-detali .column h5 {
  font-size: 16px;
  color: var(--primary-orange);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-detali .column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-detali .column ul li {
  margin-bottom: 10px;
}

/* Category Grid (similar to detali.zp.ua marks) */
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.cats-item {
  width: 120px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  transition: box-shadow 0.2s;
}

.cats-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-color: var(--primary-orange);
}

.cats-item img {
  max-width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.cats-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
}

/* Utilities */
.clear { clear: both; }
.h10 { height: 10px; }
.h20 { height: 20px; }

/* Buttons */
.btn-primary {
  color: #ffffff;
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  background-image: none;
}

.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
  background-color: var(--primary-orange-hover);
  border-color: var(--primary-orange-hover);
  color: #ffffff;
}

.btn-inverse {
  color: #ffffff;
  background-color: var(--dark-text);
  border-color: var(--dark-text);
  background-image: none;
}

.btn-inverse:hover, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] {
  background-color: #222222;
  color: #ffffff;
}

.orange-button {
  background-color: var(--primary-orange);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.orange-button:hover {
  background-color: var(--primary-orange-hover);
  color: white;
}

/* Product Card Redesign */
.detali-card {
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  padding: 10px;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.detali-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.detali-card .image {
  margin-bottom: 15px;
  text-align: center;
}
.detali-card .image img {
  max-width: 100%;
  height: auto;
}
.detali-card .caption h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
}
.detali-card .caption h4 a {
  color: #005599;
  font-weight: 700;
  text-decoration: none;
}
.detali-card .caption h4 a:hover {
  text-decoration: underline;
}

.price-and-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.price-and-status .price {
  font-size: 20px;
  font-weight: bold;
  color: #9d853b;
  margin: 0;
}
.price-and-status .stock-status {
  font-size: 12px;
}
.price-and-status .in-stock {
  color: #28a745;
}
.price-and-status .out-stock {
  color: #dc3545;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.action-row .btn-wishlist {
  background: linear-gradient(to bottom, #fff 0%, #e5e5e5 100%);
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 6px 12px;
  color: #999;
  cursor: pointer;
}
.action-row .btn-wishlist:hover {
  color: var(--primary-orange);
}
.action-row .qty-input select {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 60px;
}
.action-row .btn-buy {
  background: linear-gradient(to bottom, #ffd200 0%, #f7a400 100%);
  border: 1px solid #e09400;
  border-radius: 3px;
  padding: 6px 15px;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  flex-grow: 1;
}
.action-row .btn-buy:hover {
  background: linear-gradient(to bottom, #f7a400 0%, #ffd200 100%);
}

.reviews-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #666;
  margin-bottom: 15px;
}
.reviews-row .rating .fa-star {
  color: #ffd200;
}
.reviews-row .rating .fa-star-o {
  color: #ccc;
}
.reviews-row .reviews-link {
  color: #005599;
  cursor: pointer;
}

.detali-product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  border: 1px solid #ddd;
}
.detali-product-table td {
  padding: 5px;
  border: 1px solid #ddd;
}
.detali-product-table td:first-child {
  color: #666;
  width: 40%;
}
.detali-product-table td:last-child {
  color: #333;
  width: 60%;
}

/* Sidebar Menu */
.detali-sidebar-menu {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}
.sidebar-title {
  background: var(--primary-orange);
  color: #fff;
  padding: 15px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 4px 4px 0 0;
}
.sidebar-title i {
  margin-right: 10px;
}
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.sidebar-category-list > li {
  border-bottom: 1px solid #f0f0f0;
}
.sidebar-category-list > li > a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.sidebar-category-list > li:hover > a, .sidebar-category-list > li.active > a {
  background: #f5f5f5;
  color: var(--primary-orange);
}
.sidebar-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 250px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  min-height: 100%;
}
.sidebar-category-list > li:hover .sidebar-submenu {
  display: block;
}
.sidebar-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-submenu li {
  border-bottom: 1px solid #eee;
}
.sidebar-submenu a {
  display: block;
  padding: 10px 15px;
  color: #555;
  text-decoration: none;
}
.sidebar-submenu a:hover, .sidebar-submenu a.active {
  background: #f9f9f9;
  color: var(--primary-orange);
}

/* Home Brands Grid */
.detali-home-brands {
  margin-bottom: 30px;
}
.detali-home-brands h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-orange);
  display: inline-block;
  padding-bottom: 5px;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.2s, transform 0.2s;
}
.brand-item i {
  color: #005599;
  margin-bottom: 10px;
}
.brand-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary-orange);
}

/* Redesigned Header Styles */
.detali-top-bar-outer {
  background-color: #eef2f5;
  border-bottom: 1px solid #d9e1e6;
  width: 100%;
}
.detali-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  max-width: 1530px;
  margin: 0 auto;
}
.detali-top-bar .top-menu {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.detali-top-bar .top-menu a {
  color: #004b80;
  text-decoration: none;
  font-weight: 500;
}
.detali-top-bar .top-menu a:hover {
  color: var(--primary-orange);
}
.detali-top-bar .top-menu a.how-to-buy {
  color: var(--primary-orange);
  border-bottom: 1px dotted var(--primary-orange);
}

.detali-top-bar .top-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.detali-top-bar .authorization {
  color: #333;
}
.detali-top-bar .authorization a {
  color: #333;
  text-decoration: none;
}
.detali-top-bar .authorization a:hover {
  color: var(--primary-orange);
}
.detali-top-bar .authorization i {
  color: #666;
  margin-right: 3px;
}

#language-select {
  display: inline-block;
}
#language-select .btn-group {
  margin: 0;
}
#language-select .btn-link.dropdown-toggle {
  background: #a3b8cc;
  border-radius: 3px;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 2px 6px;
  text-decoration: none;
  border: none;
  text-transform: uppercase;
}
#language-select .btn-link.dropdown-toggle:hover {
  background: var(--primary-orange);
}

.detali-main-header-outer {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
}
.detali-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  max-width: 1530px;
  margin: 0 auto;
  gap: 20px;
}

.detali-main-header .logo-col img {
  max-height: 50px;
  height: auto;
}

.detali-main-header .search-col {
  flex-grow: 1;
  max-width: 600px;
}

.detali-search-wrap {
  position: relative;
  width: 100%;
}

.detali-search-wrap .mic-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #004b80;
  font-size: 16px;
  z-index: 5;
  cursor: pointer;
}

#search.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #a3b8cc;
  border-radius: 4px;
  background: #fff;
  height: 40px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

#search.input-group .form-control {
  border: none;
  box-shadow: none;
  height: 100%;
  font-size: 14px;
  color: #333;
  background: transparent;
  padding-left: 35px;
  padding-right: 40px;
  width: 100%;
}

#search.input-group .input-group-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search.input-group .btn-default {
  background: transparent;
  border: none;
  height: 100%;
  width: 100%;
  color: #004b80;
  font-size: 16px;
  padding: 0;
  box-shadow: none;
}

#search.input-group .btn-default:hover {
  color: var(--primary-orange);
}

.detali-search-popular {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  padding-left: 5px;
}
.detali-search-popular span {
  color: #888;
}
.detali-search-popular a {
  color: #005599;
  text-decoration: none;
  margin: 0 2px;
}
.detali-search-popular a:hover {
  text-decoration: underline;
}

.detali-main-header .info-col {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-block {
  text-align: right;
  padding-right: 20px;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.phone-main {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #004b80;
  font-weight: bold;
  font-size: 16px;
}
.phone-main i.fa-phone {
  font-size: 16px;
  color: #004b80;
}
.phone-main .number {
  color: #004b80;
}
.phone-main i.fa-caret-down {
  font-size: 12px;
  color: #999;
}
.phone-sub {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.cart-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-icon-wrap #cart {
  width: auto;
}

.cart-icon-wrap #cart > button {
  background: #fff !important;
  border: 1px solid #a3b8cc !important;
  border-radius: 4px !important;
  color: #004b80 !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 20px !important;
  box-shadow: none !important;
}
.cart-icon-wrap #cart > button:hover {
  border-color: var(--primary-orange) !important;
  color: var(--primary-orange) !important;
}
.cart-icon-wrap #cart > button #cart-total {
  display: none !important;
}

.cart-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cart-link-top {
  color: #005599;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.3;
}
.cart-link-top:hover {
  text-decoration: underline;
}
.cart-link-bottom {
  color: #004b80;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.3;
  margin-top: 2px;
}
.cart-link-bottom:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .detali-top-bar {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
  .detali-main-header {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }
  .detali-main-header .info-col {
    justify-content: center;
    width: 100%;
  }
  .phone-block {
    border-right: none;
    padding-right: 0;
    align-items: center;
  }
}

/* Product Page Styles */
.product-info-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 30px;
}
.product-image-col {
  flex: 1;
  min-width: 300px;
}
.product-details-col {
  flex: 1.2;
  min-width: 300px;
}

.product-image-col .main-image {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 15px;
  text-align: center;
  background: #fff;
  margin-bottom: 15px;
}
.product-image-col .main-image img {
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
}

.product-image-col .additional-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-image-col .additional-images a {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  background: #fff;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-col .additional-images a img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-details-col h1 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--dark-text);
  line-height: 1.3;
}

.product-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.product-details-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.product-details-table td.label-cell {
  color: #666;
  width: 35%;
  font-weight: 500;
}
.product-details-table td.value-cell {
  color: #333;
}

.product-price-box {
  background: #fbf9f4;
  border: 1px solid #e9dfc6;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.product-price-box .price-container {
  display: flex;
  flex-direction: column;
}

.product-price-box .price-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-price-box .price-amount {
  font-size: 32px;
  font-weight: bold;
  color: #9d853b;
}

.product-price-box .price-old-amount {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 5px;
}

.product-buy-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-buy-box .qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  height: 48px;
  background: #fff;
}

.product-buy-box .qty-wrap button {
  background: #f5f5f5;
  border: none;
  width: 35px;
  height: 100%;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  transition: background 0.2s;
}

.product-buy-box .qty-wrap button:hover {
  background: #e0e0e0;
}

.product-buy-box .qty-wrap input {
  width: 50px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.product-buy-box .btn-add-to-cart {
  flex-grow: 1;
  background: linear-gradient(to bottom, #ffd200 0%, #f7a400 100%);
  border: 1px solid #e09400;
  border-radius: 4px;
  color: #222;
  font-size: 18px;
  font-weight: bold;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-buy-box .btn-add-to-cart:hover {
  background: linear-gradient(to bottom, #f7a400 0%, #ffd200 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #111;
}

.product-actions-secondary {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.product-actions-secondary button {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.product-actions-secondary button:hover {
  color: var(--primary-orange);
  border-color: var(--primary-orange);
  background: #fffdfa;
}

.product-options-box {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.product-options-box h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}
.product-options-box .form-group {
  margin-bottom: 15px;
}
.product-options-box .control-label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Category Filter Module CSS */
.detali-category-filter {
  background: #eef2f5;
  border: 1px solid #ccd6dd;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}
.detali-category-filter h3 {
  font-size: 16px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: #004b80;
  text-transform: uppercase;
}
.detali-category-filter .filter-group {
  margin-bottom: 12px;
}
.detali-category-filter select {
  width: 100%;
  height: 38px;
  border: 1px solid #ccd6dd;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
}
.detali-category-filter .btn-submit-filter {
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, #ffd200 0%, #f7a400 100%);
  border: 1px solid #e09400;
  border-radius: 4px;
  color: #222;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.detali-category-filter .btn-submit-filter:hover {
  background: linear-gradient(to bottom, #f7a400 0%, #ffd200 100%);
}

/* Layout overrides for narrower left column (20% / 80%) */
@media (min-width: 768px) {
  #column-left.col-sm-3 {
    width: 20% !important;
  }
  #column-left.col-sm-3 + #content.col-sm-9 {
    width: 80% !important;
  }
  #column-left.col-sm-3 + #content.col-sm-6 {
    width: 60% !important;
  }
}

@media (max-width: 767px) {
  #column-left {
    margin-bottom: 25px;
    width: 100%;
  }
}

/* Sidebar Info Widget Styles */
.sidebar-info {
  list-style: none;
  padding: 20px 15px;
  margin: 20px 0 0 0;
  background: #fff;
  border: 1px solid #ccd6dd;
  border-radius: 4px;
}
.sidebar-info li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}
.sidebar-info li:last-child {
  margin-bottom: 0;
}
.sidebar-info li i.icon {
  font-size: 24px;
  color: #004b80;
  width: 32px;
  text-align: center;
}
.sidebar-info li i.delivery {
  color: #005599;
}
.sidebar-info li i.payment {
  color: #28a745;
}
.sidebar-info li i.warranty {
  color: #ffc107;
}
.sidebar-info li i.price {
  color: var(--primary-orange);
}
/* Breadcrumb Styles */
ul.breadcrumb {
  background: none !important;
  padding: 10px 0 !important;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  font-size: 13px !important;
  list-style: none !important;
  border: none !important;
  border-radius: 0 !important;
}
ul.breadcrumb > li {
  display: inline !important;
  color: #333 !important;
}
ul.breadcrumb > li a {
  color: #005599 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}
ul.breadcrumb > li a:hover {
  text-decoration: underline !important;
  color: var(--primary-orange) !important;
}
ul.breadcrumb > li:first-child a {
  font-weight: bold !important;
  color: #004b80 !important;
}
ul.breadcrumb > li + li:before {
  content: " »\00a0" !important;
  padding: 0 5px !important;
  color: #666 !important;
}
ul.breadcrumb > li a:after {
  /* Add down arrow to breadcrumb category links except home */
}
ul.breadcrumb > li:not(:first-child) a:after {
  content: " ⬇";
  font-size: 11px;
  color: #004b80;
  display: inline-block;
  margin-left: 2px;
}

/* Align header elements with the content edges by removing horizontal container padding on desktop/tablets */
@media (min-width: 768px) {
  .detali-top-bar,
  .detali-main-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Force 4 columns in product grid listing when a sidebar is present on medium/large screens */
@media (min-width: 992px) {
  #column-left + #content .product-layout.col-md-3 {
    width: 25% !important;
  }
}

/* User custom styling overrides */
.product-thumb .caption {
  padding: 0px !important;
}

/* Decrease spacing/padding between product cards in category pages */
#content .product-layout {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

#content .row:has(> .product-layout) {
  margin-left: -8px !important;
  margin-right: -8px !important;
}

.product-thumb.detali-card {
  margin-bottom: 16px !important;
}

/* Disable Bootstrap's clearfix pseudo-elements from acting as flex items in our header flex containers */
.detali-main-header::before,
.detali-main-header::after,
.detali-top-bar::before,
.detali-top-bar::after {
  display: none !important;
}

/* Responsive List View styles to match detali.zp.ua */
@media (min-width: 768px) {
  .product-list .detali-card {
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 15px;
  }
  
  .product-list .product-thumb .image {
    float: none !important;
    padding: 0 !important;
    flex: 0 0 180px;
    max-width: 180px;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e5e5e5;
    padding-right: 15px !important;
  }
  
  .product-list .product-thumb .caption {
    margin-left: 0 !important;
    flex-grow: 1;
    padding: 0 0 0 15px !important;
    display: grid !important;
    grid-template-columns: 1fr 280px;
    gap: 10px;
  }
  
  .product-list .detali-card .caption h4 {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 10px 0;
  }
  
  .product-list .detali-card .caption .reviews-row {
    grid-column: 1;
    grid-row: 2;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .product-list .detali-card .caption .detali-product-table {
    grid-column: 1;
    grid-row: 3;
    margin-top: 10px;
    width: 100%;
    max-width: 320px !important;
  }
  
  .product-list .detali-card .caption .detali-product-table td:last-child {
    text-align: left !important;
    padding-left: 10px !important;
  }
  
  .product-list .detali-card .caption .price-and-status {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 0;
  }
  
  .product-list .detali-card .caption .price-and-status .price {
    order: 2;
  }
  
  .product-list .detali-card .caption .price-and-status .stock-status {
    order: 1;
  }
  
  .product-list .detali-card .caption .action-row {
    grid-column: 2;
    grid-row: 2 / span 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 0;
    align-self: end;
  }
  
  .product-list .detali-card .caption .action-row .qty-input {
    order: 1;
    display: flex;
    align-items: center;
  }
  
  .product-list .detali-card .caption .action-row .qty-input::before {
    content: "Кіл-ть: ";
    font-size: 12px;
    color: #666;
    margin-right: 5px;
    white-space: nowrap;
  }
  
  .product-list .detali-card .caption .action-row .qty-input select {
    width: 55px !important;
    padding: 4px !important;
    height: 34px !important;
  }
  
  .product-list .detali-card .caption .action-row .btn-buy {
    order: 2;
  }
  
  .product-list .detali-card .caption .action-row .btn-wishlist {
    order: 3;
  }
}

/* Contact Page Layout styles */
.detali-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .detali-contact-card {
    flex: 1 1 calc(50% - 10px);
  }
}
@media (max-width: 767px) {
  .detali-contact-card {
    flex: 1 1 100%;
  }
}

.detali-contact-card {
  background: #ffffff;
  border: 1px solid #ccd6dd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.detali-contact-card-title {
  background: #f5f8fa;
  border-bottom: 1px solid #ccd6dd;
  padding: 12px 20px;
  border-radius: 3px 3px 0 0;
}
.detali-contact-card-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.detali-contact-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}
.contact-info-item .phone-link {
  color: #004b80;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
}
.contact-info-item .phone-link:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}
.contact-info-item i.contact-icon,
.contact-info-item i.fa {
  font-size: 16px;
  color: #004b80;
  width: 18px;
  text-align: center;
}
.contact-info-item.contact-email a {
  color: #005599;
  text-decoration: none;
  font-weight: bold;
}
.contact-info-item.contact-email a:hover {
  text-decoration: underline;
}

.operator-logo {
  display: inline-block;
  flex-shrink: 0;
}

.contact-hours-block {
  border-top: 1px solid #e5e5e5;
  padding-top: 15px;
}
.contact-hours-block strong {
  font-size: 13px;
  color: #444;
  display: block;
  margin-bottom: 5px;
}
.contact-hours-block .hours-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}
.contact-address-text {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-address-text i {
  color: #e60000;
  font-size: 18px;
}

.contact-map-iframe-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #ccd6dd;
}

.detali-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(50% - 10px), 1fr));
  gap: 20px;
}
@media (max-width: 767px) {
  .detali-locations-grid {
    grid-template-columns: 1fr;
  }
}

#content form.form-horizontal {
  background: #ffffff;
  border: 1px solid #ccd6dd;
  border-radius: 4px;
  padding: 25px;
  margin-top: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#content form.form-horizontal legend {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #333;
}

/* Custom styling overrides for product page details table */
.product-details-col .detali-product-table {
  font-size: 13px !important;
}

.product-details-col .detali-product-table td {
  padding: 8px 12px !important;
}

/* Padding top for class="middle" on the home page */
.middle {
  padding-top: 20px;
}
