/* Basel JS equivalents + Angular host fixes. Theme CSS stays untouched. */
@font-face {
  font-weight: normal;
  font-style: normal;
  font-family: 'simple-line-icons';
  src: url('/basel/fonts/Simple-Line-Icons.woff2') format('woff2'),
    url('/basel/fonts/Simple-Line-Icons.woff') format('woff');
}

@font-face {
  font-weight: normal;
  font-style: normal;
  font-family: 'Simple-Line-Icons';
  src: url('/basel/fonts/Simple-Line-Icons.woff2') format('woff2'),
    url('/basel/fonts/Simple-Line-Icons.woff') format('woff');
}

@font-face {
  font-weight: normal;
  font-style: normal;
  font-family: 'basel-font';
  src: url('/basel/fonts/basel-font.woff2') format('woff2'), url('/basel/fonts/basel-font.woff') format('woff');
}

html.document-ready .mobile-nav,
html.document-ready .cart-widget-side {
  display: block;
}

app-root,
app-header,
app-footer,
app-bag-drawer,
app-page-title,
app-product-card,
app-product-detail,
app-home-slider,
app-checkout,
app-checkout-pay,
app-checkout-success,
app-checkout-cancel {
  display: block;
  --dd-slider-grid-width: 1900;
  --dd-slider-grid-height: 600;
  --dd-slider-height: clamp(
    280px,
    calc(100vw * var(--dd-slider-grid-height) / var(--dd-slider-grid-width)),
    600px
  );
}

.main-header .site-logo {
  overflow: visible;
}

.site-logo img {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 95px;
  object-fit: contain;
}

.main-header,
.topbar-wrapp {
  position: relative;
  z-index: 400;
}

.basel-navigation .menu > li.menu-item-has-children > .sub-menu-dropdown {
  z-index: 500;
}

/* Revolution Slider `home-base` — full viewport width, no autoplay */
.home-revslider-block .wpb_column,
.home-revslider-block .vc_column-inner,
.home-revslider-block .wpb_wrapper,
.home-revslider-block .wpb_revslider_element,
.home-revslider-block .rev_slider_wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.rev_slider_wrapper.fullwidthbanner-container {
  width: 100% !important;
  max-width: none;
  overflow: hidden;
  height: var(--dd-slider-height, 600px);
}

.dd-home-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: var(--dd-slider-height, 600px);
  max-height: 600px;
  background: #0a0a0a;
}

.dd-home-slider__slides {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.dd-home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  overflow: hidden;
}

.dd-home-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.dd-home-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transform-origin: center center;
}

.dd-home-slider__slide img.dd-kenburns {
  animation: dd-kenburns 8s ease-out forwards;
}

.dd-home-slider__slide img.dd-kenburns--right {
  transform-origin: 78% 42%;
  animation: dd-kenburns-right 8s ease-out forwards;
}

@keyframes dd-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes dd-kenburns-right {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.18) translate(-4%, 2%);
  }
}

.dd-home-slider .tp-bannertimer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  z-index: 3;
  pointer-events: none;
}

.dd-home-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease;
}

.dd-home-slider__arrow:hover {
  background: rgba(26, 173, 163, 0.85);
}

.dd-home-slider__arrow--prev {
  left: 20px;
}

.dd-home-slider__arrow--next {
  right: 20px;
}

.dd-home-slider__arrow span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.dd-home-slider__arrow--prev span {
  transform: rotate(-135deg);
  margin-left: 18px;
}

.dd-home-slider__arrow--next span {
  transform: rotate(45deg);
  margin-right: 18px;
}

.dd-home-slider__bullets {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dd-home-slider__bullet {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dd-home-slider__bullet.is-active {
  background: #1aada3;
  transform: scale(1.15);
}

.product-element-top img,
.woocommerce-product-gallery img,
.widget_shopping_cart img,
.suggestion-thumb img {
  max-width: 100%;
  height: auto;
  display: block;
}

.dd-hero {
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  padding: 90px 20px 80px;
  margin-bottom: 25px;
}

.dd-hero .title {
  color: #fff;
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.dd-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.dd-cat-banner {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  min-height: 220px;
  background: #111;
  color: #fff;
}

.dd-cat-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}

.dd-cat-banner .hover-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.dd-cat-banner h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.dd-cat-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.page-title .breadcrumbs a {
  cursor: pointer;
}

.single-product-content .thumbnails a {
  display: inline-block;
  width: 70px;
  margin-right: 8px;
  margin-top: 10px;
  border: 1px solid transparent;
}

.single-product-content .thumbnails a.is-on {
  border-color: #1aada3;
}

.widget_shopping_cart .quantity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.widget_shopping_cart .quantity-row button {
  min-width: 24px;
  height: 24px;
  line-height: 22px;
  padding: 0;
}

body.basel-search-opened .basel-search-wrapper {
  top: 0;
}

.vc_row.full-width img,
.wpb_single_image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.vc_row.about-bg .vc_single_image-wrapper img {
  width: 218px;
  height: auto;
}

.dd-heart-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin: 8px 0 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1919' stroke-width='1.4'%3E%3Cpath d='M12.1 21.35l-1.1-1C6.14 16.07 3 13.2 3 9.9 3 7.3 5.02 5.4 7.5 5.4c1.54 0 3.04.81 4 2.09.96-1.28 2.46-2.09 4-2.09C17.98 5.4 20 7.3 20 9.9c0 3.3-3.14 6.17-7.9 10.45l-1 1z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

@media (max-width: 767px) {
  .vc_hidden-xs {
    display: none !important;
  }
}

.basel-products-element .products-footer .btn {
  text-indent: -9999px;
  overflow: hidden;
}

/* Top bar — phone only (Diffuser Dreams) */
.topbar-wrapp .topbar-text {
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.topbar-wrapp .topbar-text .icon-phone {
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}

.topbar-wrapp .topbar-text a {
  color: inherit;
  text-decoration: none;
}

.topbar-wrapp .topbar-text a:hover {
  opacity: 0.85;
}

/* Sticky header — table layout only on desktop (mobile must hide main-nav). */
@media (min-width: 992px) {
  .sticky-header .wrapp-header {
    display: table;
    width: 100%;
  }

  .sticky-header .wrapp-header > .site-logo,
  .sticky-header .wrapp-header > .main-nav,
  .sticky-header .wrapp-header > .right-column {
    display: table-cell;
    vertical-align: middle;
  }

  .sticky-header .wrapp-header > .main-nav {
    text-align: center;
  }
}

@media (max-width: 991px) {
  .sticky-header .wrapp-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    width: 100%;
  }

  .sticky-header .wrapp-header > .main-nav,
  .sticky-header .main-nav {
    display: none !important;
  }

  .sticky-header .wrapp-header > .site-logo {
    display: flex !important;
    align-items: center;
    width: auto;
    max-width: 55%;
  }

  .sticky-header .wrapp-header > .right-column {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
  }
}

/* Shop mega menu — full viewport dropdown without breaking header table layout */
.main-header.header-simple > .container,
.sticky-header.header-simple > .container {
  position: relative;
}

.header-simple .main-nav .menu > li.menu-item-design-full-width > .sub-menu-dropdown,
.sticky-header.header-simple .main-nav .menu > li.menu-item-design-full-width > .sub-menu-dropdown {
  left: 50%;
  right: auto;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  box-sizing: border-box;
}

.header-simple .main-nav .menu > li.menu-item-design-full-width.is-mega-closed > .sub-menu-dropdown,
.sticky-header.header-simple .main-nav .menu > li.menu-item-design-full-width.is-mega-closed > .sub-menu-dropdown {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

.basel-navigation .menu > li.menu-item-design-full-width .sub-menu.dd-shop-mega {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 48px;
}

.basel-navigation .menu > li.menu-item-design-full-width .sub-menu.dd-shop-mega > li {
  float: none !important;
  width: 220px !important;
  flex: 0 0 220px;
  min-width: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.dd-mega-benefits {
  display: flex;
  flex-wrap: wrap;
  clear: both;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 10px;
  padding: 18px 0 8px;
}

.dd-mega-benefit {
  flex: 1 1 33%;
  min-width: 180px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 12px 12px;
}

.dd-mega-benefit i {
  font-size: 28px;
  line-height: 1;
  color: #1aada3;
}

.dd-mega-benefit__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dd-mega-benefit__text strong {
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #1b1919;
}

.dd-mega-benefit__text span {
  font-size: 12px;
  color: #777;
}

.dd-about-page {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.dd-about-page > .wpb_column {
  width: 50%;
  float: none;
  padding-left: 0;
  padding-right: 0;
}

.dd-about-page .vc_column-inner {
  padding-left: 0;
  padding-right: 0;
}

.dd-about-page img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.dd-about-page__title {
  text-align: center;
  font-size: 42px;
  text-transform: capitalize;
  margin: 0 0 30px;
}

.dd-about-page .vc_col-sm-6:last-child .wpb_wrapper {
  padding: 0 10% 50px;
}

.dd-about-page p {
  text-align: justify;
  margin-bottom: 16px;
  line-height: 1.7;
}

.dd-about-page .social-icons {
  margin-top: 28px;
}

.dd-faqs p {
  margin-bottom: 16px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .dd-about-page > .wpb_column {
    width: 100%;
  }

  .dd-about-page .vc_col-sm-6:last-child .wpb_wrapper {
    padding: 16px 20px 40px;
  }
}

.dd-contact {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-top: -40px;
  margin-bottom: -40px;
  background-color: #021019;
}

.dd-contact__map,
.dd-contact__panel {
  width: 50%;
  flex: 1 1 50%;
}

.dd-contact__map {
  display: flex;
  min-height: 0;
}

.dd-contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.dd-contact__panel {
  padding: 30px 60px 40px;
  background-image: url('/basel/media/home/land.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #fff;
}

.dd-contact__info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.dd-contact__info-col {
  flex: 1 1 50%;
}

.dd-contact__info p {
  margin-bottom: 22px;
  color: #fff;
  line-height: 1.6;
}

.dd-contact__info a {
  color: #fff;
}

.dd-contact__form p {
  margin-bottom: 27px;
}

.dd-contact__form label {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 400;
}

.dd-contact__form input[type='text'],
.dd-contact__form input[type='email'],
.dd-contact__form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: none;
}

.dd-contact__form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.dd-contact__message {
  display: flex;
}

.dd-contact__message p {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.dd-contact__form textarea {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  resize: none;
  overflow-y: auto;
}

.dd-contact__error {
  color: #ffb4b4;
  margin-bottom: 12px;
}

.dd-contact__thanks {
  color: #fff;
  margin: 20px 0 30px;
}

.dd-contact .social-icons {
  margin-top: 10px;
}

@media (max-width: 991px) {
  .dd-contact {
    flex-wrap: wrap;
  }

  .dd-contact__map,
  .dd-contact__panel {
    width: 100%;
    flex: 1 1 100%;
  }

  .dd-contact__map {
    min-height: 360px;
  }

  .dd-contact__panel {
    padding: 30px 24px 40px;
  }

  .dd-contact__form textarea {
    min-height: 186px;
  }
}

.dd-checkout .col2-set {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.dd-checkout .col2-set > .col-1,
.dd-checkout .col2-set > .col-2 {
  flex: 1 1 280px;
  float: none;
  width: auto;
}

.dd-checkout .form-row input {
  width: 100%;
}

.dd-checkout .form-row-first,
.dd-checkout .form-row-last {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}

.dd-checkout .form-row-last {
  margin-left: 4%;
}

.dd-checkout .place-order {
  margin-top: 20px;
}

.dd-checkout__error {
  margin-top: 16px;
}

.dd-checkout-pay__stripe {
  width: 100%;
  min-height: 480px;
}

.dd-checkout-success .button + .button,
.dd-checkout-cancel .button + .button {
  margin-left: 10px;
}

/* Product page — Diffuser Dreams layout */
.single-product-content .product-images .product-labels {
  opacity: 1;
}

.single-product-content .product-image-wrap {
  position: relative;
}

.single-product-content .product-image-wrap .basel-show-product-gallery-wrap {
  right: 10px;
  bottom: 10px;
}

.single-product-content > .product-tabs-wrapper {
  margin-left: 0;
  margin-right: 0;
}

.single-product-content .tabs li.active {
  border-color: #1aada3;
}

.single-product-content .woocommerce-Tabs-panel h2 {
  margin-bottom: 12px;
}
