@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital@1&family=Oswald&display=swap');


@import url('https://fonts.googleapis.com/css2?family=Actor&display=swap');

* {
    font-family: 'Actor', sans-serif;
}

.logo {
    width: 220px;
    height: 140px;
}

@media (max-width: 576px) {
    .logo {
        width: 10rem;
        height: 7rem;
    }

    i.fa-sm-xl {
        font-size: 1.5em;
        line-height: .04167em;
        vertical-align: -0.125em;
    }
}

.clickable {
    cursor: pointer;
}

section {
    clear: both;
}

/***** Dark overlay *****/
.overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(51, 51, 51, 0.7);
    z-index: 666;
    opacity: 0;
    transition: opacity .25s, visibility 0s linear .25s;
    top: 0;
    filter: blur(1.5rem);
    visibility: hidden;
}

.overlay.active {
    opacity: 1;
    background-color: hsla(0, 0%, 7%, .36);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    visibility: visible;
    transition: opacity .8s ease, visibility 0s;
}

/* End of Overlay */

@media (min-width:300px) {
    body {
        font-size: 2.75vw;
    }
}

@media (min-width:600px) {
    body {
        font-size: 2.25vw;
    }
}

@media (min-width:900px) {
    body {
        font-size: 1.75vw;
    }
}

@media (min-width:1200px) {
    body {
        font-size: 1.5vw;
    }
}

@media (min-width:1500px) {
    body {
        font-size: 1.25vw;
    }
}

/* ------------------------ 
        Start of Header 
---------------------------*/
nav {
    box-shadow: -2px 4px 8px -3px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: -2px 4px 8px -3px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: -2px 4px 8px -3px rgba(0, 0, 0, 0.75);
}

/* Navbar button remove outline */
.navbar-toggler {
    border: unset;
}

.navbar-toggler:focus {
    box-shadow: unset;
}

.nav-item a,
.nav-social span {
    position: relative;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link:focus {
    color: rgb(255 239 239);
}

.nav-item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.first-header {
    background-color: #303030;
    color: ghostwhite;
}

.first-header-text {
    font-size: clamp(14px, 1.5vw, 20px);
}

.custom-sidenav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    max-width: 100vw;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* When Bootstrap collapse adds "show", slide in */
.custom-sidenav.show {
    transform: translateX(0);
}

.nav-item {
    opacity: 0;
    -webkit-transform: translateY(-20px);
    -moz-transform: translateY(-20px);
    -ms-transform: translateY(-20px);
    -o-transform: translateY(-20px);
    transform: translateY(-20px);
}

.nav-item:first-child {
    -webkit-transition: all .7s .2s ease-in-out;
    -moz-transition: all .7s .2s ease-in-out;
    -ms-transition: all .7s .2s ease-in-out;
    -o-transition: all .7s .2s ease-in-out;
    transition: all .7s .2s ease-in-out;
}

.nav-item:nth-child(2) {
    -webkit-transition: all .7s .4s ease-in-out;
    -moz-transition: all .7s .4s ease-in-out;
    -ms-transition: all .7s .4s ease-in-out;
    -o-transition: all .7s .4s ease-in-out;
    transition: all .7s .4s ease-in-out;
}

.nav-item:nth-child(3) {
    -webkit-transition: all .7s .6s ease-in-out;
    -moz-transition: all .7s .6s ease-in-out;
    -ms-transition: all .7s .6s ease-in-out;
    -o-transition: all .7s .6s ease-in-out;
    transition: all .7s .6s ease-in-out;
}

.nav-item:nth-child(4) {
    -webkit-transition: all .7s .8s ease-in-out;
    -moz-transition: all .7s .8s ease-in-out;
    -ms-transition: all .7s .8s ease-in-out;
    -o-transition: all .7s .8s ease-in-out;
    transition: all .7s .8s ease-in-out;
}

.nav-item:nth-child(5) {
    -webkit-transition: all .7s 1s ease-in-out;
    -moz-transition: all .7s 1s ease-in-out;
    -ms-transition: all .7s 1s ease-in-out;
    -o-transition: all .7s 1s ease-in-out;
    transition: all .7s 1s ease-in-out;
}

.nav-item:last-child {
    -webkit-transition: all .7s 1.2s ease-in-out;
    -moz-transition: all .7s 1.2s ease-in-out;
    -ms-transition: all .7s 1.2s ease-in-out;
    -o-transition: all .7s 1.2s ease-in-out;
    transition: all .7s 1.2s ease-in-out;
}

.nav-item.active {
    opacity: 1;
    -webkit-transform: translateY(0px);
    -moz-transform: translateY(0px);
    -ms-transform: translateY(0px);
    -o-transform: translateY(0px);
    transform: translateY(0px);
}

/* -------------------------------
            End of Header 
----------------------------------*/

.btn-transition {
    transition: 0.1s;
}

.btn-transition:hover {
    transform: scale(1.2);
    z-index: 100;
}

a.nav-link:hover {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}


@media screen and (min-width: 992px) {
    .nav-item a::after {
        position: absolute;
        content: "";
        top: 100%;
        left: 0;
        width: 100%;
        height: 3px;
        background: #3498db;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.5s;
    }
}

@media screen and (min-width: 1650px) {
    .navbar {
        padding: 0;
    }
}

.zoom-scroll {
    transform: scale(1.1);
    transition: transform 3.8s ease;
    opacity: 0;
}

.zoom-scroll.active {
    transform: scale(1);
    opacity: 1;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 2.9s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ----------------------------------------------------------- */
/* End of Body */
/* ------------------------------------------------------------ */


/* FOOTER */
.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 1056;
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-panel.open {
    right: 0;
}

.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1055;
    display: none;
}

.cart-backdrop.active {
    display: block;
}

/* Prevent body scroll when cart is open */
body.noscroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

.cart-item-img img {
    object-fit: cover;
}

footer {
    font-family: 'Englebert', sans-serif;
    font-size: 11px;
}

.footer-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease;
}

.footer-animate.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-slide {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-in-out;
}

.fade-slide.in-view {
    opacity: 1;
    transform: translateY(0);
}

.footer-text {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    line-height: 1.6;
}

.footer-heading {
    font-size: clamp(1rem, 2vw, 1.3rem);
}

/* End of Footer */

/* ----------------------------------- */
/* Card */
/* Wrapper for horizontal scrolling */
.product-scroll-wrapper {
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
.product-scroll-wrapper picture{
    display: block;
}
.product-scroll-wrapper picture.hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.product-card picture.default {
  position: relative; /* To keep it in flow initially */
  opacity: 1;
  z-index: 1;
}

/* Hover image hidden initially */
.product-card picture.hover {
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.product-card:hover picture.hover {
    opacity: 1;
}

.product-card:hover picture.default {
    opacity: 0;
}

.product-scroll-container {
    display: flex;
    gap: 1rem;
}

/* Product Card */
.product-card picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 1s ease;
}
.product-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(200px, 25vw, 280px);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Image */
.product-image {
    width: 100%;
    aspect-ratio: 4 / 5; /* width : height ratio */
    object-fit: cover;
    display: block;
}

/* Info section */
.product-info {
    text-align: center;
    padding: 0.5rem;
}

/* Responsive text sizes */
.product-name {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 600;
    margin: 0.5rem 0 0.3rem;
}

.product-price {
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    margin: 0;
}


/* end of card */
/* ------------------------------------ */
.section-d,
.section-d2,
.section-d3 {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.section-bg-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    filter: brightness(0.6);
    z-index: 1;
    padding: 2rem;
    color: white;
}

.section-d>div:not(.section-bg-content),
.section-d2>div:not(.section-bg-content),
.section-d3>div:not(.section-bg-content) {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-d.bg-image {
    background-image: url(../product_storage/xijiubgimage.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50vh;
}

.section-d2.bg-image {
    background-image: url(../product_storage/xijiubgimage2.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50vh;
}

.eco-section {
    background: #f8f8f8;
}

.section-subtitle {
    font-size: clamp(1.2rem, 2vw, 2rem); /* min, preferred, max */
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.eco-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    opacity: 0;
    transition: all 1.6s ease-out;
    position: relative;
}

.eco-item.left {
    flex-direction: row;
    transform: translateX(-200px);
}

.eco-item.right {
    flex-direction: row-reverse;
    transform: translateX(200px);
}

.eco-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.eco-image-wrapper {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    height: auto;
    background-blend-mode: multiply;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.eco-item:hover .eco-image {
    transform: scale(1.05);
}

.eco-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 100%;
    height: 100%;
    text-align: center;
    align-content: center;
}

.eco-label {
    max-width: 60%;
    opacity: 0.9;
}

.eco-text {
    flex: 1;
    min-width: 260px;
}

.eco-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.eco-text p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .eco-item {
        flex-direction: column !important;
        text-align: center;
    }

    .eco-image-wrapper {
        max-width: 100%;
    }
}
