@import url('products-list.css');

/* ===== HERO ===== */
.hero-section {
  background: var(--white);
  padding: 16px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.hero-grid:has(.reco-catalog) {
  grid-template-columns: 220px 1fr;
}

.hero-sidebar {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 0;
}

/* Recommended Catalogs flyout */
.reco-catalog {
  position: relative;
  z-index: 25;
  align-self: start;
}

.reco-catalog__nav {
  width: 220px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 0;
}

.reco-catalog.is-open .reco-catalog__nav {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.reco-catalog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.reco-catalog__head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.reco-catalog__head a {
  font-size: 12px;
}

.reco-catalog__list li a {
  display: block;
  padding: 7px 12px 7px 14px;
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
  border-left: 3px solid transparent;
  line-height: 1.35;
}

.reco-catalog__list li a:hover,
.reco-catalog__list li.is-active a {
  color: var(--blue);
  background: var(--white);
  border-left-color: var(--blue);
  text-decoration: underline;
}

.reco-catalog__panel {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 620px;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-lg);
  padding: 0;
}

.reco-catalog.is-open .reco-catalog__panel {
  display: block;
}

.reco-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.reco-panel__head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.reco-panel__head a {
  font-size: 12px;
  font-weight: 600;
}

.reco-panel__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  padding: 14px 16px 16px;
}

.reco-panel__cols ul li {
  margin-bottom: 8px;
}

.reco-panel__cols ul li a {
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
  text-decoration: none;
}

.reco-panel__cols ul li a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.hero-sidebar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.hero-sidebar__head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.hero-sidebar__head a {
  font-size: 12px;
}

.hero-sidebar li a {
  display: block;
  padding: 7px 12px;
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}

.hero-sidebar li a:hover {
  color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  flex: 1;
  background: #e8eef5;
  isolation: isolate;
}

.hero-slider--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, #e8f4f0 0%, #d4ebe3 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.is-active {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-slide--banner {
  padding: 32px 36px;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 38%, rgba(255, 255, 255, 0.2) 72%, transparent 100%);
  pointer-events: none;
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  max-width: 55%;
}

.hero-slide__content h2 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--text);
}

.hero-slide__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-slide__tag {
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 2px;
}

.hero-slide__btn {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.hero-slide__btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.hero-slide__visual {
  width: 200px;
  height: 160px;
  background: linear-gradient(145deg, #2ecc71, #27ae60);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-slide--pcb .hero-slide__visual {
  background: linear-gradient(145deg, #27ae60, #1e8449);
}

.hero-slide--wire .hero-slide__visual {
  background: linear-gradient(145deg, #3498db, #2980b9);
}

.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
}

.hero-slider__dot.is-active {
  background: var(--blue);
}

.hero-promos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-promo {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.hero-promo:hover {
  box-shadow: var(--shadow);
  text-decoration: none;
}

.hero-promo__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.hero-promo__price {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
}

.hero-promo__link {
  font-size: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.hero-promo__img {
  height: 70px;
  margin-top: 8px;
  background: var(--blue-light);
  border-radius: var(--radius);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-action {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
}

.hero-action strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.hero-action a {
  font-size: 11px;
}

.hero-action:hover {
  border-color: var(--blue);
  text-decoration: none;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--blue-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  text-align: center;
}

.trust-item__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.trust-item__sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== PRODUCT TABS ===== */
.product-tabs-section {
  padding: 24px 0;
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 0;
}

.product-tab {
  padding: 14px 16px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: var(--text);
  border: 1px solid var(--border);
  border-right: none;
  transition: opacity 0.2s;
}

.product-tab:last-child {
  border-right: 1px solid var(--border);
}

.product-tab--1 {
  background: var(--blue-tab-1);
}

.product-tab--2 {
  background: var(--blue-tab-2);
}

.product-tab--3 {
  background: var(--blue-tab-3);
  color: var(--white);
}

.product-tab--4 {
  background: var(--blue-tab-4);
  color: var(--white);
}

.product-tab.is-active {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  z-index: 1;
}

.product-tab-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px;
}

.product-tab-panel.is-active {
  display: block;
}

/* Product list table (homepage tabs) */
.rk-products-table-wrap {
  overflow-x: auto;
}

.rk-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--white);
}

.rk-products-table th {
  background: #fafafa;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.rk-products-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.rk-products-table tr:hover td {
  background: #fafafa;
}

.rk-products-table__row--outstock td {
  color: var(--text-muted);
}

.rk-products-table__col-img {
  width: 56px;
}

.rk-products-table__col-price {
  text-align: right;
  white-space: nowrap;
}

.rk-products-table__thumb {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafafa;
}

.rk-products-table__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rk-products-table__name a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.rk-products-table__name a:hover {
  text-decoration: underline;
}

.rk-products-table__price {
  font-weight: 600;
  text-align: right;
}

.category-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-link-item {
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}

.category-link-item:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

/* ===== SERVICES ===== */
.services-banner {
  background: var(--blue-light);
  padding: 16px 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.services-section {
  padding: 20px 0 32px;
}

.service-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.service-row__info h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.service-row__info p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-outline {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--blue-light);
  text-decoration: none;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-card {
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
}

.service-card:hover {
  opacity: 0.95;
  text-decoration: none;
}

.service-card--blue {
  background: #f0f7ff;
}

.service-card--green {
  background: #f2faf9;
}

.service-card--purple {
  background: #f4f6ff;
}

.service-card p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
}

.service-card .highlight {
  color: var(--orange);
  font-weight: 700;
}

.service-card__link {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card__img {
  width: 80px;
  height: 60px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  margin-top: auto;
}

/* ===== BLOG ===== */
.blog-section {
  background: var(--white);
  padding: 32px 0;
}

.blog-section h2 {
  text-align: center;
  margin: 0 0 24px;
  font-size: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.blog-card__featured {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.blog-card__thumb {
  width: 80px;
  height: 60px;
  background: var(--blue-light);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.blog-card__featured-text h3 {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.3;
}

.blog-card__featured-text p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.blog-card__date {
  font-size: 11px;
  color: var(--text-light);
  float: right;
}

.blog-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid #f5f5f5;
}

.blog-card__list a {
  color: var(--text);
  flex: 1;
}

.blog-card__footer {
  text-align: right;
  margin-top: 12px;
  font-size: 13px;
}

/* ===== STATS ===== */
.stats-section {
  padding: 40px 0;
  text-align: center;
}

.stats-section h2 {
  margin: 0 0 32px;
  font-size: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.stat-item__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}

.stat-item__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, #eef3fb 0%, #dce8f7 100%);
  padding: 32px 0;
  text-align: center;
}

.newsletter h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.newsletter__form {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  outline: none;
}

.newsletter__btn {
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.newsletter__btn:hover {
  background: var(--blue-dark);
}

.newsletter__msg {
  margin-top: 10px;
  font-size: 13px;
  color: var(--green);
  display: none;
}

.newsletter__msg.is-visible {
  display: block;
}

/* ===== HOME WELCOME / PROMO / MAP ===== */
.rk-home-welcome {
  padding: 32px 0 24px;
  background: var(--white);
}

.rk-home-welcome__inner {
  padding: 28px 32px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.rk-home-welcome__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.rk-home-welcome__text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.rk-home-welcome__text p {
  margin: 0 0 10px;
}

.rk-home-welcome__text p:last-child {
  margin-bottom: 0;
}

.rk-home-promo__card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.rk-home-promo__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
}

.rk-home-promo__card-head .rk-home-promo__card-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.rk-home-promo {
  padding: 24px 0 40px;
  background: var(--bg);
}

.rk-home-promo__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.rk-home-promo__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.rk-home-promo__item {
  display: flex;
  min-height: 0;
}

.rk-home-promo__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rk-home-promo__card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.rk-home-promo__card-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.rk-home-promo__card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.rk-home-promo__card-link:hover {
  text-decoration: underline;
}

.rk-home-map {
  width: 100%;
  background: #eef1f4;
}

.rk-home-map__frame {
  position: relative;
  width: 100%;
  height: 300px;
  min-height: 300px;
  overflow: hidden;
}

.rk-home-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 992px) {
  .hero-slide__content {
    max-width: 100%;
  }

  .hero-slide--banner {
    padding: 20px 16px;
  }

  .hero-slide__overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 55%, rgba(255, 255, 255, 0.35) 100%);
  }

  .rk-home-promo__grid {
    grid-template-columns: 1fr;
  }

  .rk-home-map__frame {
    height: 240px;
    min-height: 240px;
  }
}

