/* Costa Cars — template fixes */

.ty-tabs__item#features,
.ty-tabs li#features,
ul.ty-tabs li#features {
  display: none !important;
}

#content_features {
  display: block !important;
}

.tygh-content,
.ty-mainbox-container,
.ty-mainbox-body {
  background: transparent !important;
}

.tygh-content > .container-fluid,
.tygh-content .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.cc-product-dark ~ .ty-tabs,
.cc-product-dark ~ .ty-product-block {
  display: none !important;
}

.cc-home-catalog__catalog-top .cc-home-catalog__sort {
  min-width: 0;
  width: min(280px, 100%);
}

/* Gallery thumbs — ensure images fill */
.cc-product-dark__thumb img,
.cc-product-dark__hero-image-card img,
.cc-product-dark__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-product-dark__gallery-arrow,
.cc-product-dark__lightbox-arrow,
.cc-product-dark__lightbox-close,
.cc-product-dark__thumb,
.cc-product-dark__hero-image-card,
.cc-product-dark__gallery-main {
  cursor: pointer;
}

.cc-product-dark__gallery-main {
  cursor: zoom-in;
}

.cc-product-dark__hero-image-card {
  cursor: zoom-in;
}

/* Secondary hero button visibility on dark bg */
.cc-product-dark a.cc-product-dark__btn--red,
.cc-product-dark a.cc-product-dark__btn--dark,
.cc-product-dark a.cc-product-dark__btn.cc-product-dark__btn--red,
.cc-product-dark__btn--red {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.cc-product-dark a.cc-product-dark__btn--white,
.cc-product-dark a.cc-product-dark__btn.cc-product-dark__btn--white,
.cc-product-dark__btn--white {
  color: #090b0f !important;
  -webkit-text-fill-color: #090b0f !important;
}

.cc-product-dark a.cc-product-dark__btn--dark,
.cc-product-dark a.cc-product-dark__btn--dark:link,
.cc-product-dark a.cc-product-dark__btn--dark:visited,
.cc-product-dark a.cc-product-dark__btn--dark:hover,
.cc-product-dark a.cc-product-dark__btn--dark:focus,
.cc-product-dark a.cc-product-dark__btn--dark:active,
.cc-product-dark__btn--dark {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.cc-product-dark a.cc-product-dark__btn--dark:hover,
.cc-product-dark__btn--dark:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* Price: number and currency on one line */
.cc-product-dark__hero-price-info strong .ty-price-update,
.cc-product-dark__hero-price-info strong .ty-price,
.cc-product-dark__hero-price-info strong .ty-price-num,
.cc-product-dark__side-price-item strong .ty-price-update,
.cc-product-dark__side-price-item strong .ty-price,
.cc-product-dark__side-price-item strong .ty-price-num {
  display: inline !important;
  vertical-align: baseline;
}

.cc-product-dark__hero-price-info strong .ty-price-num:last-of-type,
.cc-product-dark__side-price-item strong .ty-price-num:last-of-type {
  font-size: 0.78em;
  margin-left: 0.06em;
}

/* Price blocks inside Nova price.tpl markup */
.cc-product-dark__hero-price-info strong .ty-list-price,
.cc-product-dark__side-price-item strong .ty-list-price {
  display: none !important;
}

/* Hide broken gallery thumbs after image error */
.cc-product-dark__thumbs:empty {
  display: none;
}

/* Lightbox is moved to document.body — styles must not depend on .cc-product-dark */
.cc-product-dark__lightbox.is-active {
  display: grid !important;
  grid-template-rows: auto 1fr auto;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.94) !important;
}

.cc-product-dark__lightbox-close,
.cc-product-dark__lightbox-arrow {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  appearance: none !important;
  -webkit-appearance: none !important;
}

.cc-product-dark__lightbox-close {
  z-index: 1000001 !important;
  line-height: 1 !important;
  font-size: 30px !important;
  font-weight: 300 !important;
}

.cc-product-dark__lightbox-close svg,
.cc-product-dark__lightbox-arrow svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.cc-product-dark__lightbox-close:hover,
.cc-product-dark__lightbox-arrow:hover {
  background: rgba(239, 31, 45, 0.9) !important;
  border-color: rgba(239, 31, 45, 0.9) !important;
  color: #fff !important;
}

/* Hero white CTA — dark text on white pill (like example) */
.cc-home-catalog a.cc-home-catalog__btn.cc-home-catalog__btn--white,
.cc-home-catalog a.cc-home-catalog__btn--white {
  background: #fff !important;
  color: #090b0f !important;
  -webkit-text-fill-color: #090b0f !important;
  border-color: #fff !important;
}
