* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #fff; margin: 0; padding: 0; color: #555; }
.container { max-width: 1620px; margin: 0 auto; padding: 20px; margin-top: 20px; }

/* === HEADER & BREADCRUMBS === */
.header { margin-bottom: 20px; }
.breadcrumbs { margin-bottom: 15px; font-size: 18px; color: #666; }
.breadcrumbs a { color: #FF4000; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.home-icon { font-size: 16px; margin-right: 5px; }
.breadcrumbs span { color: #333; font-weight: 500; }

/* === MOBILE LOGO ADAPTATION === */
@media (max-width: 768px) {
  .logo-line .container {
    padding: 10px 15px;
  }
  
  .table-group {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .table-control {
    display: flex;
    align-items: center;
  }
  
  .header-logo img {
    max-width: 250px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
  }
  
  .header-phone-box {
    margin-left: 8px;
  }
  
  .header-phone-box a {
    display: inline-block;
    padding: 8px 12px !important;
    font-size: 14px !important;
  }
  
  .text-right1,
  .timetable-box,
  .header-call-box {
    display: none;
  }
  
  .logo-line {
    padding: 5px 0;
  }
}

/* === GRIDS === */
.categories-grid, .products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 10px; }
@media (max-width: 1400px) { .categories-grid, .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .categories-grid, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .categories-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* === CATEGORY CARD === */
.card { background: #f7f4f3; border: 1px solid #e5e2e1; border-radius: 6px; padding: 10px 8px 0; text-align: center; text-decoration: none; color: #555; display: flex; flex-direction: column; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow: hidden; position: relative; min-height: 100px; width: 100%; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); border-color: #d8d4d3; }
.card-img { height: 95px; object-fit: contain; background: transparent !important; margin: 0 auto; max-width: calc(100% - 8px); border: none !important; padding: 0 !important; transition: transform 0.3s; }
.card:hover .card-img { transform: scale(1.05); }
.card-title { font-size: 16px; font-weight: 600; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #333; line-height: 1.3; min-height: 40px; }

/* === PRODUCT CARD === */
.product-card { background: #f7f4f3; border: 1px solid #e5e2e1; border-radius: 6px; padding: 16px; text-align: center; display: flex; flex-direction: column; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); height: 100%; min-height: 420px; width: 100%; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); border-color: #d8d4d3; }
.product-image-container { position: relative; display: inline-block; width: 100%; margin: 8px auto 12px; max-width: calc(100% - 16px); }
.product-main-image { width: 100%; height: 180px; object-fit: contain; background: #fff; cursor: pointer; border-radius: 4px; border: 1px solid #e5e2e1; padding: 8px; transition: transform 0.3s; }
.product-card:hover .product-main-image { transform: scale(1.02); }
.zoom-icon { position: absolute; top: 12px; left: 12px; width: 28px; height: 28px; background: rgba(255, 255, 255, 0.7); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #666; opacity: 0.6; transition: all 0.3s ease; pointer-events: none; }
.product-image-container:hover .zoom-icon { opacity: 0.9; background: rgba(255, 255, 255, 0.9); }

/* === THUMBNAILS === */
.thumbnails-container { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; position: relative; max-width: 100%; margin-left: auto; margin-right: auto; width: 100%; }
.thumbnails-container.centered { justify-content: center; }
.thumbnails-container.centered .thumbnails-wrapper { max-width: 100%; flex: none; }
.thumbnails-container.centered .thumbnails-track { justify-content: center; }
.thumbnails-wrapper { flex: 1; overflow: hidden; max-width: calc(100% - 72px); }
.thumbnails-track { display: flex; gap: 8px; transition: transform 0.3s ease; width: max-content; }
.thumbnail-scroll-btn { background: transparent; color: #FF4000; border: none; width: 28px; height: 60px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; transition: all 0.2s ease; z-index: 2; flex-shrink: 0; }
.thumbnail-scroll-btn:hover:not(:disabled) { color: #e03800; transform: scale(1.1); }
.thumbnail-scroll-btn:disabled { color: #ccc; cursor: not-allowed; }
.thumbnail { width: 60px; height: 60px; object-fit: cover; border: 2px solid #ddd; cursor: pointer; transition: all 0.2s; border-radius: 4px; flex-shrink: 0; }
.thumbnail:hover, .thumbnail.active { border-color: #FF4000; box-shadow: 0 0 4px #FF4000; transform: scale(1.05); }
.single-image-notice { color: #999; font-size: 14px; font-style: italic; text-align: center; padding: 10px 0; margin: 0 0 12px; opacity: 0.7; }
.thumbnails-container:not(.has-scroll) .thumbnail-scroll-btn { display: none; }

/* === PRICE & BTN === */
.price-section { margin: 6px 0 8px; }
.price-label { font-size: 18px; color: #e63900; margin: 2px 0 2px; font-weight: 500; }
.price-value { font-size: 28px; color: #FF4000; font-weight: bold; margin: 0 0 4px; }
.product-name { font-size: 16px; margin: 6px 0 12px; color: #333; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 60px; line-height: 1.3; }
.btn { display: inline-block; background: #FF4000; color: #fff; border: none; padding: 10px 16px; border-radius: 4px; font-size: 16px; text-decoration: none; cursor: pointer; font-weight: bold; margin-top: auto; box-shadow: 0 2px 4px rgba(255,64,0,0.3); transition: all 0.2s ease; }
.btn:hover,
.btn:focus,
.btn:active {
  color: #fff !important;
  background: #e03800;
  box-shadow: 0 3px 6px rgba(255,64,0,0.4);
  transform: translateY(-1px);
}

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; margin: 20px 0; gap: 6px; flex-wrap: wrap; background: #f7f4f3; padding: 12px; border-radius: 6px; border: 1px solid #e5e2e1; }
.page-btn { padding: 6px 12px; background: #fff; border: 1px solid #ddd; cursor: pointer; border-radius: 3px; margin: 4px; transition: all 0.2s; color: #555; }
.page-btn:hover { background: #f0f0f0; color: #333; border-color: #ccc; }
.page-btn.active { background: #FF4000; color: #fff; border-color: #FF4000; }

/* === MODAL === */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; }
.modal-content { position: relative; max-width: 95vw; max-height: 95vh; text-align: center; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.7); border: 2px solid white; width: 60px; height: 60px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: white; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 1002; }
.modal-nav:hover { background: rgba(0,0,0,0.9); transform: translateY(-50%) scale(1.1); border-color: #FF4000; }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }
.modal-close { position: absolute; top: -50px; right: -50px; background: rgba(0,0,0,0.7); border: 2px solid white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 1002; }
.modal-close:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); border-color: #FF4000; color: #FF4000; }
.modal-image { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.7); }
.modal-counter { position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: white; padding: 10px 20px; border-radius: 25px; font-size: 16px; font-weight: bold; border: 1px solid rgba(255,255,255,0.3); }
@media (max-width: 768px) {
  .modal-content { max-width: 98vw; max-height: 98vh; padding: 10px; }
  .modal-nav { width: 45px; height: 45px; font-size: 18px; }
  .modal-prev { left: 5px; }
  .modal-next { right: 5px; }
  .modal-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 22px; background: rgba(0,0,0,0.8); }
  .modal-image { max-height: 85vh; }
  .modal-counter { bottom: -40px; font-size: 14px; padding: 8px 16px; }
}

/* === SEARCH SUGGESTIONS === */
.search-container-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.home-button-custom {
  display: inline-block;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  background: #555;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  transition: all 0.2s ease;
}
.home-button-custom:hover,
.home-button-custom:focus,
.home-button-custom:active {
  color: white !important;
  background: #444;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-container {
  flex: 1;
  position: relative;
  width: 100%;
}

#search-input {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  font-size: 16px;
  border: 1px solid #e6eaef;
  border-radius: 6px;
  outline: none;
  background: #fff;
}

@media (max-width: 768px) {
  .search-container-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .home-button-custom {
    width: 100%;
    height: 45px;
    line-height: 45px;
    font-size: 14px;
    padding: 0;
    margin-bottom: 8px;
  }
  
  #search-input {
    height: 45px;
    font-size: 14px;
    padding: 0 15px;
  }
}

#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  border: 1px solid #e5e2e1;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 3000;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  padding: 0;
}

#search-suggestions.show {
  display: block;
}

.search-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.search-suggestion-item:hover {
  background: #f9f7f6;
}

.suggestion-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
  color: #333;
}

.suggestion-info {
  font-size: 13px;
  color: #888;
  line-height: 1.3;
}

mark {
  background: #fff9e6;
  padding: 0 3px;
  border-radius: 2px;
  color: #d97706;
}

.no-results {
  text-align: center;
  color: #999;
  padding: 16px;
}

/* === SIMPLE HIGHLIGHTED PRODUCT === */
._akcessuary-highlighted-product {
  position: relative;
  animation: pulse 2s infinite;
}

._akcessuary-highlighted-product::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #FF4000;
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 64, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 64, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 64, 0, 0); }
}

/* === SEARCH SUGGESTIONS SCROLLBAR === */
#search-suggestions::-webkit-scrollbar {
  width: 8px;
}
#search-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
#search-suggestions::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 4px;
}
#search-suggestions::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* === AIRLINE INFO SECTION === */
.airline-info-section {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid #e5e2e1;
}

.airline-logo {
  text-align: center;
  margin-bottom: 20px;
}

.airline-logo-img {
  max-width: 90%;
  height: auto;
  max-height: 100px;
  display: block;
  margin: 0 auto;
}

.airline-description {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  color: #555;
}

.airline-description p {
  margin: 15px 0;
  font-size: 16px;
}

@media (max-width: 768px) {
  .airline-info-section {
    padding: 25px 15px;
  }
  
  .airline-description {
    font-size: 15px;
  }
  
  .airline-logo-img {
    max-height: 80px;
  }
}

/* === WINTER PRODUCTS VIDEO === */
.winter-products-video {
  margin-top: 20px;
  padding: 0;
  border-top: none;
  margin-bottom: 20px;
}

.video-container {
  max-width: 50%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .video-container {
    max-width: 100%;
  }
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .winter-products-video {
    padding: 15px 0;
  }
  
  .video-container video {
    max-height: 450px;
  }
}