/*
 * eCloud homepage-only styling
 * File: catalog/view/theme/default/stylesheet/homepage.css
 *
 * These rules are intentionally scoped to the homepage and the existing
 * Home Page Blocks / Trust Signals modules. Global stylesheet untouched.
 */

:root{
  --ecloud-blue: #1c9dd9;
  --ecloud-dark: #232323;
  --ecloud-grey: #60666b;
  --ecloud-white: #fdfdfd;
  --ecloud-offwhite: #e8edf0;
}

#common-home.home {
  padding-bottom: 0;
}

#common-home.home .home__intro {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 16px 28px;
  text-align: center;
}

#common-home.home .home__eyebrow {
  margin: 0 0 10px;
  color: var(--ecloud-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#common-home.home .home__intro h1 {
  margin: 0 0 12px;
  color: var(--ecloud-dark);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
}

#common-home.home .home__intro > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--ecloud-grey);
  font-size: 17px;
  line-height: 1.65;
}

#common-home.home .home_banner {
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 12px;
}

#common-home.home .home_banner a,
#common-home.home .home_banner img {
  display: block;
  width: 100%;
}

#common-home.home .home_banner img {
  height: auto;
  border: 0;
}

#common-home.home .home__catalogue {
  margin: 0 auto 30px;
}

#common-home.home .home__catalogue > * {
  max-width: 100%;
}

/* Product cards, only inside the homepage catalogue area */
#common-home.home .home__catalogue .product-thumb {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ecloud-offwhite);
  border-radius: 10px;
  background: var(--ecloud-white);
  box-shadow: 0 3px 14px rgba(35, 35, 35, .045);
  transition: box-shadow .18s ease, transform .18s ease;
}

#common-home.home .home__catalogue .product-thumb:hover {
  box-shadow: 0 8px 24px rgba(35, 35, 35, .10);
  transform: translateY(-2px);
}

#common-home.home .home__catalogue .product-thumb .image {
  padding: 12px 12px 0;
}

#common-home.home .home__catalogue .product-thumb .image img {
  margin: 0 auto;
}

#common-home.home .home__catalogue .product-thumb .caption {
  padding: 14px 16px 8px;
}

#common-home.home .home__catalogue .product-thumb .caption h4 {
  margin-top: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

#common-home.home .home__catalogue .product-thumb .price {
  color: var(--ecloud-dark);
  font-size: 17px;
  font-weight: 700;
}

#common-home.home .home__catalogue .product-thumb .button-group {
  padding: 0 16px 16px;
}

/* Home Page Blocks: existing image_block_btn module */
#common-home.home ~ .home__lower-content .home-section-6 {
  padding: 34px 0;
}

#common-home.home ~ .home__lower-content .home-section-6 .container {
  max-width: 1240px;
}

#common-home.home ~ .home__lower-content .home-section-6 .cs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#common-home.home ~ .home__lower-content .home-section-6 .cs__grid > div {
  min-width: 0;
}

#common-home.home ~ .home__lower-content .home-section-6 .cs__grid > div > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

#common-home.home ~ .home__lower-content .home-section-6__card-1 {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ecloud-offwhite);
  border-radius: 12px;
  background: var(--ecloud-white);
  box-shadow: 0 4px 18px rgba(35, 35, 35, .055);
  transition: box-shadow .18s ease, transform .18s ease;
}

#common-home.home ~ .home__lower-content .home-section-6 .cs__grid > div > a:hover .home-section-6__card-1 {
  box-shadow: 0 10px 28px rgba(35, 35, 35, .12);
  transform: translateY(-3px);
}

#common-home.home ~ .home__lower-content .home-section-6__card-img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
}

#common-home.home ~ .home__lower-content .home-section-6__card-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

#common-home.home ~ .home__lower-content .home-section-6__card-text h6 {
  margin: 0 0 10px;
  color: var(--ecloud-dark);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

#common-home.home ~ .home__lower-content .home-section-6__card-text p {
  margin: 0 0 18px;
  color: #626a70;
  font-size: 14px;
  line-height: 1.65;
}

#common-home.home ~ .home__lower-content .home-section-6__card-text > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #168cc4;
  font-size: 14px;
  font-weight: 700;
}

#common-home.home ~ .home__lower-content .home-section-6__card-text > span i {
  transition: transform .18s ease;
}

#common-home.home ~ .home__lower-content .home-section-6 .cs__grid > div > a:hover .home-section-6__card-text > span i {
  transform: translateX(3px);
}

/* Trust Signals: scoped to this section; does not style every call-to-action */
#common-home.home ~ .home__lower-content section.call-to-action#cta_slides,
#common-home.home ~ .home__lower-content section.call-to-action:has(#cta_slides) {
  margin: 18px 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--ecloud-offwhite);
  border-bottom: 1px solid var(--ecloud-offwhite);
  background: #f7fafc;
}

#common-home.home ~ .home__lower-content #cta_slides .swiper-wrapper {
  align-items: stretch;
}

#common-home.home ~ .home__lower-content #cta_slides .swiper-slide > a {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 22px;
  color: var(--ecloud-dark);
  text-align: left;
  text-decoration: none;
}

#common-home.home ~ .home__lower-content #cta_slides .swiper-slide > a > div:first-child {
  flex: 0 0 58px;
}

#common-home.home ~ .home__lower-content #cta_slides .swiper-slide img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

#common-home.home ~ .home__lower-content #cta_slides .call-to-action__text h6 {
  margin: 0 0 5px;
  color: var(--ecloud-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

#common-home.home ~ .home__lower-content #cta_slides .call-to-action__text p {
  margin: 0;
  color: var(--ecloud-grey);
  font-size: 13px;
  line-height: 1.5;
}

#common-home.home ~ .home__lower-content #cta_slides .swiper-slide > a:hover h6 {
  color: var(--ecloud-blue);
}

#common-home.home ~ .home__lower-content .home-section-6 + section,
#common-home.home ~ .home__lower-content section.call-to-action + section {
  margin-top: 24px;
}

@media (max-width: 991px) {

  #common-home.home ~ .home__lower-content .home-section-6 .cs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #common-home.home ~ .home__lower-content .home-section-6__card-img {
    height: 210px;
  }
}

@media (max-width: 600px) {

  #common-home.home .home__intro {
    padding: 25px 8px 22px;
  }

  #common-home.home .home__intro > p:last-child {
    font-size: 15px;
  }

  #common-home.home .home_banner {
    margin-bottom: 22px;
    border-radius: 8px;
  }

  #common-home.home ~ .home__lower-content .home-section-6 {
    padding: 24px 0;
  }

  #common-home.home ~ .home__lower-content .home-section-6 .cs__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #common-home.home ~ .home__lower-content .home-section-6__card-img {
    height: 220px;
  }

  #common-home.home ~ .home__lower-content .home-section-6__card-text {
    padding: 18px;
  }

  #common-home.home ~ .home__lower-content #cta_slides .swiper-slide > a {
    justify-content: flex-start;
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #common-home.home .home__catalogue .product-thumb,
  #common-home.home ~ .home__lower-content .home-section-6__card-1,
  #common-home.home ~ .home__lower-content #cta_slides .swiper-slide > a > div,
  #common-home.home ~ .home__lower-content #cta_slides .swiper-slide > a h6 {
    transition: none;
  }
}



/* ========================================
   Homepage Category Cards
   ======================================== */

#common-home .homepage-categories {
    width: 100%;
    margin: 0;
}

#common-home .homepage-categories *,
#common-home .homepage-categories *::before,
#common-home .homepage-categories *::after {
    box-sizing: border-box;
}

#common-home .homepage-categories__heading {
    margin: 0 0 22px;
    justify-content: center;
}

#common-home .homepage-categories__heading h2 {
    margin: 0 0 8px;
    color: var(--ecloud-white);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

#common-home .homepage-categories__heading p {
    margin: 0;
    color: hsl(from var(--ecloud-grey) h s calc(l + 10%));
    font-size: 15px;
    line-height: 1.6;
}

#common-home .homepage-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

#common-home a.homepage-category {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 265px;
    margin: 0;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--ecloud-offwhite);
    border-radius: 12px;
    background: var(--ecloud-white);
    color: var(--ecloud-dark);
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(35, 35, 35, .05);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Subtle blue accent at the top of each card */
#common-home a.homepage-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--ecloud-blue);
}

#common-home a.homepage-category--eliquids {
    background: linear-gradient(135deg, var(--ecloud-white) 0%, #f4f7fa 100%);
}

#common-home a.homepage-category--kits {
    background: linear-gradient(135deg, var(--ecloud-white) 0%, #f4f7fa 100%);
}

#common-home a.homepage-category:hover,
#common-home a.homepage-category:focus {
    color: var(--ecloud-dark);
    text-decoration: none;
    border-color: #b8dff0;
    box-shadow: 0 10px 28px rgba(35, 35, 35, .10);
    transform: translateY(-3px);
}

#common-home .homepage-category__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 460px;
}

#common-home .homepage-category__eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--ecloud-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.4;
}

#common-home .homepage-category h3 {
    margin: 0 0 12px;
    padding: 0;
    color: var(--ecloud-dark);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

#common-home .homepage-category p {
    max-width: 380px;
    margin: 0 0 24px;
    color: var(--ecloud-grey);
    font-size: 15px;
    line-height: 1.7;
}

#common-home .homepage-category .homepage-category__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    padding: 11px 17px;
    border: 1px solid var(--ecloud-blue);
    border-radius: 6px;
    background: var(--ecloud-blue);
    color: var(--ecloud-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

#common-home .homepage-category .homepage-category__link span {
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease;
}

#common-home a.homepage-category:hover .homepage-category__link {
    background: var(--ecloud-blue);
    border-color: var(--ecloud-blue);
}

#common-home a.homepage-category:hover .homepage-category__link span {
    transform: translateX(3px);
}

.padding-40{
  padding: 40px;
}

.dark-section{
  background-color: var(--ecloud-dark);
  color: var(--ecloud-white) !important;  
}

.light-section{
  background-color: var(--ecloud-white);
  color: var(--ecloud-dark) !important;   
}

.popular-products .container{
  padding:40px;
}

.product-layout.product-grid.col-lg-3.col-md-3.col-xs-6 {
    padding: 3px;
}

.homepage-categories .container .row{
  background-color: inherit;
  color: inherit !important;
}

@media (max-width: 767px) {
    #common-home .homepage-categories,
    #common-home .popular-products{
        padding: 30px 15px;
    }

    #common-home .homepage-categories__heading {
        margin-bottom: 16px;
    }

    #common-home .homepage-categories__heading h2 {
        font-size: 24px;
    }

    #common-home .homepage-categories__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    #common-home a.homepage-category {
        min-height: 225px;
        padding: 26px 22px;
        border-radius: 9px;
    }

    #common-home .homepage-category h3 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #common-home a.homepage-category,
    #common-home .homepage-category__link,
    #common-home .homepage-category__link span {
        transition: none;
    }
}

/* Equal-height product cards in homepage product grid */
#common-home .popular-products .slider-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

#common-home .popular-products

#common-home .popular-products .slider-row > .product-layout {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#common-home .popular-products .product-thumb__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

#common-home .popular-products .product-thumb {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

#common-home .popular-products .product-thumb .caption {
    flex: 1 1 auto;
}

#common-home .popular-products .product-thumb .caption h4 {
    min-height: 2.8em;
    line-height: 1.4;
}

#common-home .popular-products .product-thumb .view-product-btn {
    display: block;
    margin-top: auto;
    text-align: center;
}


/* Make all three homepage cards equal height */
#common-home.home ~ .home__lower-content .home-section-6 .cs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

#common-home.home ~ .home__lower-content .home-section-6 .cs__grid > div {
    display: flex;
    min-width: 0;
}

#common-home.home ~ .home__lower-content .home-section-6 .cs__grid > div > a {
    display: flex;
    flex: 1;
    width: 100%;
}

#common-home.home ~ .home__lower-content .home-section-6__card-1 {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#common-home.home ~ .home__lower-content .home-section-6__card-1 picture {
    display: block;
    flex-shrink: 0;
}

#common-home.home ~ .home__lower-content .home-section-6__card-img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

#common-home.home ~ .home__lower-content .home-section-6__card-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

#common-home.home ~ .home__lower-content .home-section-6__card-text > span {
    margin-top: auto;
    padding-top: 16px;
}


/* ========================================
   Customer Favourites – Homepage
   ======================================== */

#common-home .popular-products {
    padding: 40px 20px;
    color: #232323;
}

/* Centre and style the module headings */
#common-home .popular-products h2,
#common-home .popular-products h3 {
    color: #232323;
    font-weight: 700;
}

/* Product category tabs */
#common-home .popular-products .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    border: none;
}

#common-home .popular-products .nav-tabs > li {
    float: none;
    margin: 0;
}

#common-home .popular-products .nav-tabs > li > a {
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #dce4e9;
    border-radius: 7px;
    background: #fff;
    color: #454b50;
    font-weight: 600;
    transition: background .2s ease, color .2s ease,
                border-color .2s ease;
}

#common-home .popular-products .nav-tabs > li > a:hover {
    border-color: #1c9dd9;
    background: #e8f6fc;
    color: #167eae;
}

#common-home .popular-products .nav-tabs > li.active > a,
#common-home .popular-products .nav-tabs > li.active > a:hover,
#common-home .popular-products .nav-tabs > li.active > a:focus {
    border-color: #1c9dd9;
    background: #1c9dd9;
    color: #fff;
}

/* Product cards */
#common-home .popular-products .product-thumb {
    overflow: hidden;
    border: 1px solid #e2e9ed;
    background: #fff;
    box-shadow: 0 3px 12px rgba(35, 35, 35, .04);
    transition: box-shadow .2s ease, transform .2s ease;
}

#common-home .popular-products .product-thumb:hover {
    box-shadow: 0 8px 22px rgba(35, 35, 35, .10);
    transform: translateY(-3px);
}

#common-home .popular-products .product-thumb .caption h4 a {
    color: #232323;
    font-weight: 600;
    text-decoration: none;
}

#common-home .popular-products .product-thumb .caption h4 a:hover {
    color: #168cc4;
}

#common-home .popular-products .product-thumb .price {
    color: #232323;
    font-size: 18px;
    font-weight: 700;
}

/* Keep product actions consistent */
#common-home .popular-products .product-thumb .button-group {
    padding: 0 14px 16px;
}

@media (max-width: 767px) {
    #common-home .popular-products {
        padding: 28px 0;
    }

    #common-home .popular-products .nav-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }

    #common-home .popular-products .nav-tabs > li > a {
        padding: 8px 12px;
        font-size: 13px;
    }
}
/* Customer Favourites banner */


#common-home .category-banner
{
  width: 100%;
  aspect-ratio: 3 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.customer-favourites-banner{
  background-image: url('/image/catalog/Banners/customer_favourites.png');
}

.explore-our-products-banner{
  background-image: url('/image/catalog/Banners/explore_our_products.png');
}

@media (max-width: 767px) {
    #common-home .customer-favourites-banner {
        background-size: contain;
        background-color: var(--ecloud-white);
    }
}



#pre-vape-duty-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.82);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pre-vape-duty-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 30px;
    border-radius: 18px;
    background: #232323;
    color: #ffffff !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    overflow: hidden;
}

#pre-vape-duty-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#pre-vape-duty-modal .pre-vape-duty-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    box-sizing: border-box;
}


#pre-vape-duty-title h2 {
    color: var(--ecloud-white);
    font-size: clamp(25px, .1em + 5vw, 40px);
    font-weight: 1000;
    text-transform: capitalize;
}


.pre-vape-duty-modal h2 {
    margin: 0 20px 24px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.pre-vape-duty-close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 2;
    padding: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.pre-vape-duty-close:hover {
    color: #1c9dd9;
}

.pre-vape-duty-image-wrapper {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin-bottom: 22px;
    border-radius: 8px;
}

.pre-vape-duty-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0px;
    background-image: url("/image/catalog/Banners/liquid_bottles.png");
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: .4;
    z-index: -1;
}

.pre-vape-duty-image {
    position: relative;
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
    transform: translateY(8px) scale(1.2);
}

.pre-vape-duty-content {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.65;
}

.pre-vape-duty-content p {
    margin: 0 0 16px;
}

.pre-vape-duty-content strong {
    color: #ffffff;
}

.pre-vape-duty-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 24px;
    padding: 15px 18px;
    border-radius: 8px;
    background: #1c9dd9;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.pre-vape-duty-button:hover {
    background: #1686ba;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .pre-vape-duty-modal {
        padding: 26px 20px;
    }

    .pre-vape-duty-modal h2 {
        font-size: 27px;
    }

    .pre-vape-duty-content {
        font-size: 15px;
    }

    .pre-vape-duty-image {
        max-height: 200px;
    }
}