/* Custom overrides for OCT Deals theme */

/* Header: remove top padding */
.ds-header {
  padding-top: 0 !important;
}

/* Top black line above header */
.ds-header-top-line {
  width: 100%;
  height: 44px;
  background-color: #000000;  
}

.ds-header-top-line .socials-header .ds-socials{
    min-width: 80px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ds-header-top-line .socials-header .ds-socials a i{
    color: #ffffff;
}
.ds-header-top-line .ds-arrow-bg {    
    justify-content: center;
    align-items: center;
    display: flex;
    height: 20px;
    width: 20px;
    border-radius: 20px;
    background-color: #4F4F4F;
}
.ds-header-bottom-line {
    height: 79px;
    position: relative;
}

@media (min-width: 1400px) {
    .ds-header-bottom-line #logo {
        max-width: 195px;
    }
}

.ds-menu-maincategories-desktop-box .ds-menu-maincategories {
    border-top: none;
    padding-left: 16px;
    gap: 0;
}
.ds-header-bottom-line .ds-menu-maincategories li:first-child {
    background-color: #F3F3F3;
}
.ds-header-bottom-line .ds-menu-maincategories-item-title {
    line-height: 16px;
}
.ds-header-bottom-line .ds-menu-maincategories-desktop-box .ds-menu-maincategories::after {
    width: 80px;
}
/* Site-wide container width on wide screens for medium layout */
@media (min-width: 1600px) {
  body[data-width="medium"] .container,
  body[data-width="medium"] .container-fluid,
  body[data-width="medium"] .container-sm,
  body[data-width="medium"] .container-md,
  body[data-width="medium"] .container-lg,
  body[data-width="medium"] .container-xl {
    max-width: 1280px !important;
  }
}

@media (min-width: 1200px) {
  .ds-header .container-xl {
    padding: 0;
  }
}

/* Desktop header icons spacing to mirror Figma */
.ds-header .button.button-transparent.me-3 {
  margin-right: 16px; /* adjust if design requires */
}

/* Ensure header action icons align centered */
.ds-header .button.button-transparent .button-icon {
  display: inline-block;
  vertical-align: middle;
  
}

.ds-header .with-menu-btn .button-icon {
  background: #ffffff;
}


/* Ensure header action icons align vertically centered */
.ds-header .button.button-transparent .button-icon {
  display: inline-block;
  vertical-align: middle;
}
/* Top line (Figma-like) */
.ds-header-top-line {
  background-color: #000000;
  height: 44px;
  width: 100%;
  display: block;
}
.ds-header-top-line .container-xl {
  height: 44px;
}
.ds-header-top-line .top-line-text {
  color: #ffffff;
  font-size: 14px;
  line-height: 17px;
  white-space: nowrap;
}

 @media (max-width: 768px) {
    .ds-header-top-line .top-line-text {
      display: none;
    }
  }

.ds-header-top-line .top-line-accent {
  font-weight: 600;
}
/* make icons/text inside top line readable */
.ds-header-top-line .button.button-transparent,
.ds-header-top-line .dark-text,
.ds-header-top-line .secondary-text {
  color: #ffffff !important;
}
.ds-header-top-line svg path {
  fill: #ffffff;
}
/* optional small divider to mimic figma line */
.ds-header-top-line .socials-header{
  padding-right: 32px;
}
.ds-header-top-line .ds-header-phone-button {
  position: relative;
  padding-left: 32px;
}
.ds-header-top-line .ds-header-phone-button:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .ds-header-top-line .ds-header-phone-button {
    position: relative;
    padding-left: 0;
  }
}

.ds-header .ds-header-viewed-button {
  height: 20px;
  min-width: 20px;
}

.benefits {
  background-color: #F3F3F3;
  min-height: 227px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits .container-xl {
  display: inline-flex;
  flex-wrap: wrap;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}
@media (min-width: 1320px) {
  .benefits .container-xl {
      max-width: 1280px;      
  }
}
.benefits .frame{
    display: flex;
    flex-direction: column;
    max-width: 196px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

@media (max-width: 1319px) {
  .benefits .container-xl {
      padding: 20px 12px;
  }
  .benefits .frame {
      flex: 0 1 calc((100% - 40px) / 3);
      max-width: none;
      width: auto;
  }
}

 @media (max-width: 768px) {
    .benefits .frame {
      flex: 0 1 calc((100% - 20px) / 2);
    }
  }

.benefits .frame-text{
    width: 100%;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    flex: 0 0 auto;
    margin-left: -0.50px;
    margin-right: -0.50px;
    display: flex;
    flex-direction: column;
}

.benefits .text-wrapper-14 {
    position: relative;
    align-self: stretch;
    margin-top: -1.00px;
    font-weight: 600;
    color: #000000;
    font-size: 14px;
    text-align: center;
    line-height: normal;
    letter-spacing: 0;
}

/* Force mobile behavior for header search on all widths */
@media (min-width: 768px) {
  .ds-header-bottom-line .ds-header-search {
    max-width: calc(100% - 344px);
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    position: absolute;
    right: 134px;
    top: 16px;
    -webkit-transition: width var(--ds-main-transition);
    transition: width var(--ds-main-transition);
    width: 0px;
    overflow: hidden;
    background: var(--ds-white-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .ds-header-search .form-control {
    height: 46px;
    padding: 1rem 1.75rem;
    border-radius: 0;
  }

  .isviewedactive.ds-header-bottom-line .ds-header-search {
    max-width: calc(100% - 380px);
    right: 170px;
  }
  
}

.ds-header-bottom-line .ds-header-search.active {
    width: auto;
    overflow: visible;
    width: 100%;
    z-index: 13000;
}

@media (max-width: 767.98px) {
    .ds-header-bottom-line .ds-header-search.active {
        left: 0;
    }
}

.ds-header-search-toggle-button,
.ds-header-wishlist-button,
.ds-header-compare-button {
  min-width: 20px;
}

.benefits .text-wrapper-15 {
    position: relative;
    align-self: stretch;
    font-weight: 300;
    color: #000000;
    font-size: 14px;
    text-align: center;
    line-height: normal;
    letter-spacing: 0;
}

.benefits .img-4 {
    position: relative;
    width: 32px;
    height: 32px;
}

.ds-category-wall-wrap {
  padding: 100px 0;
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .ds-category-wall-wrap {
    padding: 16px 0;
  }
}

.ds-category-wall-header{
  font-size: 32px;
  line-height: 39px;
  text-align: center;
}

.ds-category-wall-body {
  max-width: 236px;
  height: 235px;
}
.ds-category-wall a{
    justify-content: center;
    max-width: 100%;
    background: none;
    border: none;
}

.ds-category-wall a span{
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    line-height: 24px;
    padding-top: 32px;
}

.ds-category-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 16px;
}

.ds-category-wall .ds-category-wall-item {
  flex: 0 1 calc((100% - 32px) / 3);
}

@media (max-width: 991.98px) {
  .ds-category-wall .ds-category-wall-item {
    flex: 0 1 calc((100% - 16px) / 2);
  }
}

@media (max-width: 575.98px) {
  .ds-category-wall .ds-category-wall-item {
    flex: 0 1 100%;
  }
}

.ds-category-wall .content-block {
  width: 100%;
}

.ds-category-divider { display: none; }

@media (min-width: 992px) {
  .ds-category-wall > .ds-category-wall-item:nth-of-type(3n) + .ds-category-divider {
    display: block;
    flex: 0 0 100%;
    height: 0;
    border-bottom: 2px solid #ececec;
  }
}

@media (max-width: 991.98px) and (min-width: 576px) {
  .ds-category-wall > .ds-category-wall-item:nth-of-type(2n) + .ds-category-divider {
    display: block;
    flex: 0 0 100%;
    height: 0;
    border-bottom: 2px solid #ececec;
  }
}

@media (max-width: 575.98px) {
  .ds-category-wall > .ds-category-wall-item + .ds-category-divider {
    display: block;
    flex: 0 0 100%;
    height: 0;
    border-bottom: 2px solid #ececec;
  }
}
 
.ds-category-wall .ds-category-wall-item { 
  position: relative;
  display: flex;
  align-items: center;  
  justify-content: center;
}

@media (min-width: 992px) {
  .ds-category-wall > .ds-category-wall-item:nth-of-type(3n+1)::after,
  .ds-category-wall > .ds-category-wall-item:nth-of-type(3n+2)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    width: 2px;
    height: 34px;
    background: #ececec;
    transform: translateY(-50%);
    pointer-events: none;
  }
}
@media (max-width: 991.98px) and (min-width: 576px) {
  .ds-category-wall > .ds-category-wall-item:nth-of-type(2n+1)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    width: 2px;
    height: 34px;
    background: #ececec;
    transform: translateY(-50%);
    pointer-events: none;
  }
}

/* Info cards (DS) */
.ds-info-cards {
  padding: 24px 0;
  background: #ffffff;
}

.ds-info-cards .container-xl .row{
  justify-content: center;
}

.ds-info-cards .green-tech {
  width: 630px;
  height: 630px;
  display: flex;
  background-image: url(/image/catalog/home-page/1-banner.png);
  background-size: cover;
  background-position: 50% 50%;
  padding: 0;
}
.ds-info-cards .safe-zone {
  width: 630px;
  height: 630px;
  display: flex;
  background-image: url(/image/catalog/home-page/2-banner.png);
  background-size: cover;
  background-position: 50% 50%;
  padding: 0;
}
.ds-info-card {
  box-shadow: var(--ds-small-shadow, 0 2px 8px rgba(0,0,0,.06));
  border-radius: 7px;
}
@media (max-width: 576px) {
  .ds-info-card {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start !important;
  }
}
.ds-info-card-img {
    min-width: 178px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.ds-info-card-body {
    max-height: 136px;
    padding: 35px 32px;
    position: relative;
    background-color: #ffffff0d;
    backdrop-filter: blur(12px) brightness(100%);
    -webkit-backdrop-filter: blur(12px) brightness(100%);
}
.ds-info-card-body .ds-info-card-link {
    text-decoration: none;
    color: #ffffff;
}
.ds-info-card-body .ds-info-card-link:hover {
    color: #ffffff;
}
.ds-info-card-body .ds-info-card-link svg path {
    stroke: #ffffff;
}
.ds-info-card-image {
  flex: 0 0 auto;
  max-width: 240px;
  height: auto;
}
@media (max-width: 575.98px) {
  .ds-info-card-image { max-width: 140px; }
}
.ds-info-card-body { flex: 1 1 auto; }
.ds-info-card-title { line-height: 1.2; }
.ds-info-card-title svg path { stroke: var(--ds-primary-dark-color-light, #00171F); }


.ds-text-cards .container-xl {
  padding: 100px 12px;
}
@media (max-width: 768px) {
  .ds-text-cards .container-xl {
    padding: 16px 12px;
  }
}

.ds-text-cards {
  background: #F3F3F3;
  background-color: #F3F3F3;
}
.ds-text-cards-header {  
  text-align: left;
  font-size: 32px;
  padding-bottom: 6px;
}

.ds-text-cards h3 {
  padding-top: 24px;
  color: #000000;
}

.ds-text-cards p {
  color: #4e4e4e;
}
.ds-text-cards ul {
  padding-left:24px;
  color: #4e4e4e;
}
/* Blog latest layout */
.ds-news-cards {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .ds-news-cards {
    padding: 16px 0;
  }
}

.ds-last-news-additional-wrapper {
  position: relative;
  overflow-y: overlay;
  overflow-x: hidden;
  max-height: 576px;
  -webkit-overflow-scrolling: touch;
}

.ds-last-news-additional-backdrop {
  position: relative;
  overflow: hidden;
}

.ds-last-news-additional-backdrop::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: calc(var(--bs-gutter-x) * .5);
  width: calc(100% - var(--bs-gutter-x));
  height: 103px; 
  pointer-events: none;
  background: linear-gradient(to top, rgba(255,255,255,1) 20%, rgba(255,255,255,0));
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
}

.ds-last-news-additional {
  padding: 24px;
  margin-bottom:20px;
  background-color: #ffffff;
  box-shadow: 0px 4px 24px #00000014;
  align-items: flex-start;
}

.ds-last-news-additional h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}
.ds-last-news-additional p {
  font-size: 14px;
  line-height: 17px;
  color: #4e4e4e;
  margin-bottom: 16px;
}

.ds-last-news-item-date {
  background-color: #F3F3F3;
  color: #4e4e4e;
  height: 41px;
  font-size: 14px;
  line-height: 17px;
}
.ds-last-news-main {
  height: 100%;
}

.ds-last-news-main .content-block{
  padding: 0;
  border-radius: 0;
}
@media (max-width: 768px) {
  .ds-last-news-main .content-block{
    flex-direction: column;
  }
}
.ds-last-news-item-info {
  background-color: #F3F3F3;
  margin: 0;
  padding: 24px;
}

.ds-last-news-item-controls {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin: 0;
  padding-bottom: 12px;
}

.ds-last-news-item-controls .ds-last-news-item-date {
  height: 17px;
  padding-left: 0;
  background: none;
}

.ds-last-news-item-controls .ds-last-news-item-date svg {
  margin-left: 0;
  margin-right: 8px;
}

.ds-last-news-item-controls a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 14px;
  line-height: 17px;
  color: #000000;
  text-decoration: none;
}
.ds-last-news-item-controls svg {
  margin-left: 8px;
}

.ds-last-news-item-description {
  padding-top: 12px;
}
.ds-last-news-item-description h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}

.content-block .ds-last-news-item-description p {
  font-size: 14px;
  line-height: 17px;
  color: #4e4e4e;
}

.ds-news-cards-all {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 0;
  padding-bottom: 32px;
}
.ds-news-cards .ds-news-header{
  padding-top: 9px;
}
.ds-news-cards-all a{
    display: inline-flex;
    height: 56px;
    padding: 16px 24px;
    background-color: #ffffff;
    border: 1px solid;
    border-color: rgba(0, 0, 0, 0.05);
    align-items: center;
    color: #000000;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

.ds-last-news-additional .ds-last-news-item-date{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  position: relative;
  flex: 0 0 auto;
}
.ds-last-news-additional .ds-last-news-item-date span{
  display: block;
  position: relative;
  width: fit-content;
  margin-top: -1.00px;
}

.ds-last-news-additional-description {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* video */

.ds-video-cards { 
  padding: 100px 0; 
  background: #121212; 
  color: #fff; 
}
 @media (max-width: 768px) {
    .ds-video-cards {
      padding: 16px 0;
    }
  }
.ds-video-title {
    text-align: center;
    margin: 0 0 40px;
    font-size: 32px;
    line-height: 39px;
    font-weight: 500;
    color: #ffffff;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 1064px;
  margin: 0 auto;
  /* 16:9 */
  aspect-ratio: 16 / 9;            /* сучасні браузери */
  background: #121212;
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.ds-video-video-ctrls {
  margin: 16px auto 0;
  max-width: 1064px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.ds-video-video-prev,
.ds-video-video-next {
  height: 88px;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #222;
  color: #fff;
  padding: 12px 16px;
  opacity: .4;
  transition: opacity .15s ease;
}
.ds-video-video-prev:hover,
.ds-video-video-next:hover { opacity: 1; }

.ds-video-video-dots { display: flex; gap: 8px; justify-content: center; }
.ds-video-video-dots .rectangle {
  width: 10px; height: 10px; border-radius: 2px; background: #555; border: 0; padding: 0; cursor: pointer;
}
.ds-video-video-dots .rectangle.active { background: #fff; }

/* homepage products */

.ds-latest-products {
    background-color: #ffffff;
}

.custom-ds-latest_0 .container-xl {
    padding: 100px 12px 234px;
}

@media (min-width: 1200px) {
  .custom-ds-latest_0  .ds-module-item:not(.product-layout) {
        width: 25%;
    }
}
/* footer */
.ds-footer {
  background-color: #f3f3f3;  
}
.ds-footer.homepage {
  padding-top: 201px;
}
.ds-footer-top {
  position: relative;
  z-index: 1;
  padding-top: 0;
}
.ds-footer-subscribe {
    height: 311px;
    width: 100%;
    position: absolute;
    bottom: 155px;
    z-index: 3;
}

#subscribeContainer {
  background-color: #111111;
  position: relative;
  padding: 48px;
  width: 1064px;
  height: 311px;
}
.subscribe-bg-img {
  top: 0;
  right: 0;
  z-index: 0;
}

.ds-footer-subscribe-text {
  max-width: 387px;
  padding-bottom: 20px;
}
.ds-footer-subscribe-text p {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 17px;
}

.ds-footer-subscribe-text p:first-child {
    color: #FFFFFF;
    font-size: 32px;
    line-height: 39px;
    margin-bottom: 24px;
}

#InputSubscribeEmail {
  width: 366px;
  border-radius: 0;
  border: none;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .custom-ds-latest_0 .container-xl{
    padding: 16px 12px;
  }
  .ds-footer.homepage {
    padding-top: 16px;
  }
  .ds-footer-subscribe {
    height: auto;
    position: relative;
    bottom: 0;
  }
  .ds-footer-subscribe #subscribeContainer {
    height: auto;
  }
  .subscribe-bg-img {
    display: none;
  }
  #InputSubscribeEmail {
    width: 100%;
  }
}

#footer-make-subscribe {
  min-width: 159px;
  height: 56px;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 0px;
  border: none;
  text-transform: uppercase;
}

#oct-scales-static {
  border-radius: 0px;
}

.form-check {
  color: #FFFFFF;
}
.form-check-label a {
  color: #FFFFFF;
}
