/* Costa Cars — global dark shell + Nova overrides */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --container: 1760px;
  --cc-container: 1760px;
}

html,
body,
.ty-tygh,
#tygh_container,
.ty-helper-container,
.tygh-container {
  background:
    radial-gradient(circle at 78% 0%, rgba(239, 31, 45, 0.07), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(180deg, #090b0f 0%, #0b0e14 48%, #080a0e 100%) !important;
  color: #fff;
}

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

.ty-tygh,
#tygh_container,
.ty-helper-container {
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.cc-site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

.cc-site-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.cc-container,
.cc-home-catalog__container,
.cc-product-dark__container {
  width: min(var(--container, 1760px), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* Nova default header/footer — hidden when Costa shell is active */
.cc-site-shell ~ .tygh-top-panel,
.cc-site-shell ~ .tygh-header,
.cc-site-shell ~ .tygh-footer,
.tygh-top-panel,
.tygh-header,
.tygh-footer,
.container-fluid.top-grid,
.container-fluid.ty-top-panel-grid-responsive,
.container-fluid.header-grid,
.container-fluid.ty-header-grid-responsive,
.container-fluid.ty-footer-grid,
.container-fluid.ty-footer-grid-responsive,
.ty-footer-form-block,
.ty-footer-menu,
.footer-copyright,
.footer-stay-connected {
  display: none !important;
}

/* Homepage: hide Nova layout blocks when Costa catalog is active */
body:has(.cc-home-catalog) .content-grid > .row-fluid:not(:has(.cc-home-catalog)),
.ty-cs-controller-index.ty-cs-mode-index .homepage-banners,
.ty-cs-controller-index.ty-cs-mode-index .ty-banner__banners,
.ty-cs-controller-index.ty-cs-mode-index .ty-mainbox-simple-container,
.ty-cs-controller-index.ty-cs-mode-index .ty-mainbox-simple,
.ty-cs-controller-index.ty-cs-mode-index .ty-grid-list,
.ty-cs-controller-index.ty-cs-mode-index .ty-scroller-list,
.ty-cs-controller-index.ty-cs-mode-index .ty-brand-block,
.ty-cs-controller-index.ty-cs-mode-index .ty-brand-grid,
.ty-cs-controller-index.ty-cs-mode-index .our-brands-grid {
  display: none !important;
}

/* Content wrappers — full width dark */
.tygh-content,
.ty-mainbox-container,
.ty-mainbox-body,
.row-fluid,
.row-fluid .span16,
.content-grid,
.main-content-grid,
.breadcrumbs-grid,
.side-grid {
  background: transparent !important;
  box-shadow: none !important;
}

.tygh-content > .container-fluid,
.tygh-content .container,
.ty-mainbox-container .container,
.ty-mainbox-container .container-fluid,
.content-grid.container-fluid {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cc-site-content,
.cc-site-content .content-grid,
.cc-site-content .row-fluid,
.cc-site-content .span16 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.cc-site-content .owl-carousel,
.cc-site-content .ty-owl-container,
.cc-site-content .ty-scroller {
  max-width: 100%;
}

.ty-mainbox-title,
.ty-breadcrumbs,
.ty-cs-controller-categories.ty-cs-mode-view.side-grid,
.ty-cs-controller-categories.ty-cs-mode-view .side-grid,
.ty-cs-controller-categories.ty-cs-mode-view.breadcrumbs-grid,
.ty-cs-controller-categories.ty-cs-mode-view .breadcrumbs-grid,
.ty-cs-controller-categories .ty-product-filters__top-panel,
.ty-cs-controller-categories .ty-product-filters__outer,
body:has(.cc-product-dark) .ty-mainbox-title,
body:has(.cc-product-dark) .ty-breadcrumbs,
body:has(.cc-home-catalog) .ty-mainbox-title,
body:has(.cc-home-catalog) .ty-breadcrumbs,
body:has(.cc-home-catalog) .side-grid,
body:has(.cc-home-catalog) .breadcrumbs-grid {
  display: none !important;
}

body:has(.cc-home-catalog) .row-fluid > .span13,
body:has(.cc-home-catalog) .row-fluid > .main-content-grid,
.ty-cs-controller-categories.ty-cs-mode-view .main-content-grid,
.ty-cs-controller-categories.ty-cs-mode-view .main-content-grid > div,
.ty-cs-controller-car_filter.ty-cs-mode-filter .main-content-grid,
.ty-cs-controller-car_filter.ty-cs-mode-filter .main-content-grid > div,
.ty-cs-controller-car_filter.ty-cs-mode-filter_german .main-content-grid,
.ty-cs-controller-car_filter.ty-cs-mode-filter_german .main-content-grid > div,
.ty-cs-controller-products.ty-cs-mode-view .main-content-grid,
.ty-cs-controller-products.ty-cs-mode-view .main-content-grid > div {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

.ty-cs-controller-car_filter .ty-mainbox-container,
.ty-cs-controller-car_filter .ty-mainbox-body {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Product page: hide Nova blocks below Costa product layout */
body:has(.cc-product-dark) .content-grid > .row-fluid:not(:has(.cc-product-dark)),
.ty-cs-controller-products.ty-cs-mode-view .ty-mainbox-simple-container,
.ty-cs-controller-products .ty-scroller-list,
.ty-cs-controller-products .ty-grid-list__item {
  display: none !important;
}

/* Header */
.cc-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(9, 11, 15, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-brand__mark {
  background:
    linear-gradient(135deg, rgba(239, 31, 45, 0.28), rgba(255, 55, 69, 0.18)),
    rgba(255, 255, 255, 0.03);
}

.cc-header__cta--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.cc-header__cta--ghost:hover,
.cc-header__cta--ghost:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* Footer */
.cc-footer {
  margin-top: auto;
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 82% 0%, rgba(239, 31, 45, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.2) 0%, rgba(8, 10, 14, 0.92) 100%);
}

.cc-footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-footer__desc {
  max-width: 420px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.6;
}

.cc-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cc-footer__label {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cc-footer__link {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cc-footer__link:hover {
  color: #fff;
}

.cc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
}

.cc-footer__copy {
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
  line-height: 1.5;
}

.cc-footer__cta-actions .cc-home-catalog__btn {
  min-height: 52px;
  padding: 0 24px;
  font-size: 12px;
}

/* Mobile navbar */
.ty-navbar-mobile {
  background: rgba(8, 10, 14, 0.94) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28) !important;
}

.ty-navbar-mobile__item-link,
.ty-navbar-mobile__item-text,
.ty-navbar-mobile__item-icon,
.ty-icon-file {
  color: rgba(255, 255, 255, 0.56) !important;
}

.ty-navbar-mobile__item-link--active,
.ty-navbar-mobile__item-link--active .ty-navbar-mobile__item-text,
.ty-navbar-mobile__item-link--active .ty-navbar-mobile__item-icon {
  color: #fff !important;
}

.ty-navbar-mobile__item-link--active .ty-navbar-mobile__item-icon {
  color: #ef1f2d !important;
}

/* Forms sitewide */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea,
.ty-input-text,
.ty-input-textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 14px !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

.ty-btn,
button.ty-btn {
  border-radius: 999px !important;
}

.ty-btn-go,
input.ty-btn-go {
  background: linear-gradient(135deg, #ef1f2d, #ff3745) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Links */
a {
  color: rgba(255, 255, 255, 0.82);
}

.ty-pagination__item,
.ty-pagination__text {
  color: rgba(255, 255, 255, 0.72) !important;
}

.ty-pagination__selected {
  background: rgba(239, 31, 45, 0.18) !important;
  border-color: rgba(239, 31, 45, 0.35) !important;
  color: #fff !important;
}

/* Cart / checkout */
.ty-cart-content,
.ty-checkout__container,
.litecheckout__container,
.ty-orders-search,
.ty-table th,
.ty-table td {
  color: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.ty-cart-content__product-title a,
.ty-checkout__title,
.litecheckout__section-title {
  color: #fff !important;
}

/* Product page spacing */
.ty-mainbox-body .cc-product-dark {
  margin-top: 0;
}

@media (max-width: 900px) {
  .cc-footer__top {
    grid-template-columns: 1fr;
  }

  .cc-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .cc-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .cc-container,
  .cc-home-catalog__container,
  .cc-product-dark__container {
    width: min(var(--container, 1760px), calc(100% - 24px));
  }

  .cc-footer__cols {
    grid-template-columns: 1fr;
  }

  .cc-header__cta--ghost {
    display: none;
  }
}
