/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Homepage (.home), category and search pages (.shop), and the product
card and product carousel they share with product.php.
Loaded on every page after theme.css.
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.home,
.shop {
  --ink: #131921;
  --ink-soft: #5b6472;
  --brand: #0d1452;
  --accent: #e7a340;
  --accent-dark: #c9851f;
  --line: #e4e7ec;
  --tint: #f5f6f8;
  --danger: #cf0d42;
  color: var(--ink);
  background: #fff;
}

/* ---------- Hero slider ---------- */

.home .bs-slider {
  max-height: none;
  background: var(--ink);
}

.home .bs-slider .carousel-inner > .item {
  height: 62vh;
  min-height: 380px;
  max-height: 600px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.home .bs-slider .carousel-inner > .item > .container {
  position: relative;
  height: 100%;
}

/* Darken only the side the text sits on, so the map artwork stays visible */
.home .bs-slider .bs-slider-overlay {
  background: rgba(19, 25, 33, 0.55);
}

.home .bs-slider .bs-slider-overlay.overlay-left {
  background: linear-gradient(90deg, rgba(19, 25, 33, 0.92) 0%, rgba(19, 25, 33, 0.72) 34%, rgba(19, 25, 33, 0.12) 72%, rgba(19, 25, 33, 0) 100%);
}

.home .bs-slider .bs-slider-overlay.overlay-right {
  background: linear-gradient(270deg, rgba(19, 25, 33, 0.92) 0%, rgba(19, 25, 33, 0.72) 34%, rgba(19, 25, 33, 0.12) 72%, rgba(19, 25, 33, 0) 100%);
}

.home .slide-text {
  position: absolute;
  top: 50%;
  left: 15px;
  right: 15px;
  max-width: 560px;
  margin: 0;
  padding: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.home .slide-text.slide_style_center {
  max-width: 760px;
  margin: 0 auto;
}

.home .slide-text.slide_style_right {
  margin-left: auto;
  text-align: right;
}

.home .slide-text > h1 {
  display: block;
  margin: 0 0 16px;
  padding-top: 18px;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.5px;
  position: relative;
}

/* Short accent rule above the heading */
.home .slide-text > h1:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.home .slide-text.slide_style_center > h1:before {
  left: 50%;
  margin-left: -28px;
}

.home .slide-text.slide_style_right > h1:before {
  left: auto;
  right: 0;
}

.home .slide-text > p {
  margin: 0 0 28px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.86);
}

.home .slide-text > a.btn-primary {
  margin: 8px 0 0;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  -webkit-transition: background 0.2s ease, transform 0.2s ease;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home .slide-text > a.btn-primary .fa {
  margin-left: 8px;
  -webkit-transition: transform 0.2s ease;
  transition: transform 0.2s ease;
}

.home .slide-text > a.btn-primary:hover,
.home .slide-text > a.btn-primary:focus {
  background: #fff;
  color: var(--ink);
}

.home .slide-text > a.btn-primary:hover .fa {
  -webkit-transform: translateX(4px);
  transform: translateX(4px);
}

.home .slide-text > a.btn-primary:focus {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.home .bs-slider .carousel-indicators {
  bottom: 18px;
  margin-bottom: 0;
}

.home .bs-slider .carousel-indicators li,
.home .bs-slider .carousel-indicators li.active {
  width: 28px;
  height: 4px;
  margin: 0 3px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  -webkit-transition: width 0.25s ease, background 0.25s ease;
  transition: width 0.25s ease, background 0.25s ease;
}

.home .bs-slider .carousel-indicators li.active {
  width: 44px;
  background: var(--accent);
}

.home .bs-slider .carousel-control {
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  background-image: none;
  color: #fff;
  text-shadow: none;
}

.home .bs-slider .carousel-control:hover {
  background: var(--accent);
  color: var(--ink);
}

.home .bs-slider .carousel-control > span {
  font-size: 26px;
  line-height: 46px;
}

/* ---------- Sections ---------- */

.home-section {
  padding: 64px 0;
}

.home-section.is-tinted {
  background: var(--tint);
}

.home-head {
  margin-bottom: 28px;
  padding-right: 110px; /* room for the carousel arrows */
}

.home-head h2 {
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.home-head p {
  margin: 8px 0 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */

.home-services {
  padding: 28px 0;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.home-services-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -8px;
}

.home-service {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex: 1 1 300px;
  flex: 1 1 300px;
  margin: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.home-service-icon {
  -webkit-flex: 0 0 56px;
  flex: 0 0 56px;
  margin-right: 16px;
}

.home-service-icon img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.home-service-text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.home-service-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Product carousel ---------- */

.home-products .product-carousel {
  position: relative;
}

/* Equal-height cards */
.home-products .owl-stage {
  display: -webkit-flex;
  display: flex;
}

.home-products .owl-item {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.home-products .owl-controls {
  position: absolute;
  top: -72px;
  right: 0;
  margin: 0;
}

.home-products .owl-controls .owl-nav {
  margin: 0;
}

.home-products .owl-controls .owl-nav .owl-prev,
.home-products .owl-controls .owl-nav .owl-next {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 0 0 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 38px;
  text-align: center;
  -webkit-transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-products .owl-controls .owl-nav .owl-prev i,
.home-products .owl-controls .owl-nav .owl-next i {
  font-size: 20px;
  line-height: 38px;
}

.home-products .owl-controls .owl-nav .owl-prev:hover,
.home-products .owl-controls .owl-nav .owl-next:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- Product card ---------- */

.home-card {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  border-color: #cfd4dc;
  box-shadow: 0 6px 18px rgba(19, 25, 33, 0.1);
}

.home-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tint);
}

.home-card-photo {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* square */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-transition: transform 0.45s ease;
  transition: transform 0.45s ease;
}

.home-card:hover .home-card-photo {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.home-card.is-out .home-card-photo {
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
  opacity: 0.6;
}

.home-card.is-out:hover .home-card-photo {
  -webkit-transform: none;
  transform: none;
}

.home-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.home-card-badge.is-out {
  background: var(--ink);
}

.home-card-body {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 16px;
}

.home-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  /* at most two lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.home-card-title a {
  color: inherit;
}

.home-card-title a:hover,
.home-card-title a:focus {
  color: var(--brand);
  text-decoration: none;
}

.home-card-rating {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--accent);
}

.home-card-rating span {
  margin-left: 4px;
  color: var(--ink-soft);
}

.home-card-price {
  margin-top: auto;
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 700;
  color: var(--brand);
}

.home-card-price del {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #8a93a0;
}

.home-card-btn {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  -webkit-transition: background 0.2s ease, color 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-card-btn .fa {
  margin-right: 6px;
}

a.home-card-btn:hover,
a.home-card-btn:focus {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.home-card-btn.is-disabled {
  background: var(--tint);
  color: #8a93a0;
  font-weight: 500;
}

.home a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media only screen and (max-width: 991px) {
  .home .slide-text > h1 {
    font-size: 42px;
  }
  .home-section {
    padding: 48px 0;
  }
}

@media only screen and (max-width: 767px) {
  .home .bs-slider .carousel-inner > .item {
    height: 56vh;
    min-height: 320px;
  }
  /* Text spans the full width on phones, so darken the whole slide */
  .home .bs-slider .bs-slider-overlay.overlay-left,
  .home .bs-slider .bs-slider-overlay.overlay-right {
    background: rgba(19, 25, 33, 0.66);
  }
  .home .slide-text {
    left: 20px;
    right: 20px;
  }
  .home .slide-text > h1 {
    font-size: 32px;
  }
  .home .slide-text > p {
    margin-bottom: 20px;
    font-size: 16px;
  }
  .home .slide-text > a.btn-primary {
    padding: 13px 22px;
    font-size: 13px;
  }
  .home .bs-slider .carousel-control {
    display: none;
  }
  .home-section {
    padding: 36px 0;
  }
  .home-head h2 {
    font-size: 22px;
  }
  .home-head p {
    font-size: 14px;
  }
  .home-products .owl-controls {
    top: -66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *:before {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation: none !important;
    animation: none !important;
  }
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Category page (product-category.php)
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* ---------- Banner with breadcrumb ---------- */

.shop-hero {
  position: relative;
  padding: 34px 0 38px;
  background-color: var(--ink);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.shop-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(19, 25, 33, 0.94) 0%, rgba(19, 25, 33, 0.78) 55%, rgba(19, 25, 33, 0.55) 100%);
}

.shop-hero .container {
  position: relative;
}

.shop-crumbs {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.shop-crumbs li {
  display: inline;
}

.shop-crumbs li + li:before {
  content: "/";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.4);
}

.shop-crumbs a {
  color: rgba(255, 255, 255, 0.66);
}

.shop-crumbs a:hover,
.shop-crumbs a:focus {
  color: var(--accent);
  text-decoration: none;
}

.shop-hero h1 {
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #fff;
}

.shop .page {
  padding-top: 40px;
  padding-bottom: 64px;
}

/* ---------- Category tree ---------- */

.shop .shop-side-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.shop #left {
  margin-bottom: 30px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.shop #left ul.nav,
.shop #left ul.nav ul.children {
  margin: 0;
  background: transparent;
}

.shop #left ul.nav ul.children {
  margin-left: 14px;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}

.shop #left ul.nav > li.cat-level-1,
.shop #left ul.nav ul li {
  margin: 0;
}

.shop #left ul.nav li > a,
.shop #left ul.nav > li.cat-level-1.parent > a,
.shop #left ul.nav li.parent ul li a {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-transform: none;
  -webkit-transition: background 0.15s ease;
  transition: background 0.15s ease;
}

.shop #left ul.nav li > a:hover,
.shop #left ul.nav li > a:focus {
  background: var(--tint);
}

.shop #left ul.nav li .lbl,
.shop #left ul.nav > li.cat-level-1 .lbl,
.shop #left ul.nav > li.cat-level-1 .lbl1 {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-order: 1;
  order: 1;
  min-width: 0;
  padding: 9px 10px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink) !important;
  background: transparent;
}

.shop #left ul.nav > li.cat-level-1 > a > .lbl {
  font-weight: 700;
}

.shop #left ul.nav ul.children ul.children .lbl {
  font-size: 14px;
  color: var(--ink-soft) !important;
}

/* Expand / collapse button, moved to the right edge */
.shop #left ul.nav li .sign,
.shop #left ul.nav > li.cat-level-1.parent > a > .sign,
.shop #left ul.nav > li.cat-level-1 li.parent > a > .sign {
  -webkit-flex: 0 0 30px;
  flex: 0 0 30px;
  -webkit-order: 2;
  order: 2;
  width: 30px;
  height: 30px;
  margin: 0 4px 0 0;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 30px;
  text-align: center;
}

.shop #left ul.nav li.parent > a > .sign:hover {
  background: var(--line);
  color: var(--ink);
}

/* End categories have no children, so no button */
.shop #left ul.nav li:not(.parent) > a > .sign {
  display: none;
}

/* Current category */
.shop #left ul.nav li.current > a,
.shop #left ul.nav li.current > a:hover,
.shop #left ul.nav > li.cat-level-1.parent.current > a,
.shop #left ul.nav li.parent ul li.current > a {
  background: #fdf3e1;
}

.shop #left ul.nav li.current > a .lbl,
.shop #left ul.nav > li.cat-level-1 li.current > a .lbl {
  background: transparent;
  color: var(--brand) !important;
  font-weight: 700;
}

/* ---------- Product grid ---------- */

.shop-head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.shop-head h2 {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.shop-count {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.shop-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -10px;
}

.shop-grid .home-card {
  width: calc(33.333% - 20px);
  margin: 10px;
}

.shop-empty {
  padding: 56px 20px;
  border: 1px dashed #cfd4dc;
  border-radius: 12px;
  background: var(--tint);
  text-align: center;
  color: var(--ink-soft);
}

.shop-empty .fa {
  margin-bottom: 12px;
  font-size: 34px;
  color: #a9b1bd;
}

.shop-empty p {
  margin: 0;
  font-size: 15px;
}

.shop a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media only screen and (max-width: 991px) {
  .shop-hero h1 {
    font-size: 26px;
  }
}

@media only screen and (max-width: 767px) {
  .shop-hero {
    padding: 24px 0 28px;
  }
  .shop-hero h1 {
    font-size: 22px;
  }
  .shop .page {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .shop-head h2 {
    font-size: 18px;
  }
  .shop-grid .home-card {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 479px) {
  .shop-grid .home-card {
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop * {
    -webkit-transition: none !important;
    transition: none !important;
  }
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––
Search results (search-result.php)
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Full-width grid (no sidebar): four cards per row */
.shop-grid.is-wide .home-card {
  width: calc(25% - 20px);
}

.shop-pages {
  margin-top: 36px;
  text-align: center;
}

.shop-pages a,
.shop-pages span {
  display: inline-block;
  min-width: 40px;
  margin: 3px 2px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  -webkit-transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shop-pages a:hover,
.shop-pages a:focus {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.shop-pages span.current {
  border-color: var(--accent);
  background: var(--accent);
  font-weight: 700;
}

.shop-pages span.disabled {
  color: #a9b1bd;
  background: var(--tint);
}

.shop-pages span.gap {
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}

@media only screen and (max-width: 991px) {
  .shop-grid.is-wide .home-card {
    width: calc(33.333% - 20px);
  }
}

@media only screen and (max-width: 767px) {
  .shop-grid.is-wide .home-card {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 479px) {
  .shop-grid.is-wide .home-card {
    width: calc(100% - 20px);
  }
}
