@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&family=Exo+2:ital,wght@0,100..900;1,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    /*background-color: #f7f7f0;*/
}

body {
    background-color: #f7f7f0;
    font-family: "Josefin Sans", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    /* stays fixed even when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../../assets/user_assets/image/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
    /* <<< CHANGE OPACITY HERE */
    z-index: -1;
}

/* PAGE-SPECIFIC HOME STYLES START HERE */



.mobile-user{
    display:none;
}

.mobile-user .cart-wrapper{
    margin-top:5px;
}

.mobile-user .login-btn{
    width:150px;
    text-align:center;
}

.welcome-user {
    margin-right: 12px;
    font-weight: 500;
    color: #194a7a;
    position: relative;
    top: 3px; 
}

.welcome-link {
    text-decoration: none;
    margin-right: 12px;
    font-weight: 500;
    color: #194a7a;
}

.welcome-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.hamburger{
    display:none;
    font-size:26px;
    cursor:pointer;
    color:#194a7a;
}

#cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

#cart-panel.open {
    transform: translateX(0);
}

.cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

/*------------------------flip card------------------------*/

.top .float { 
    display: flex; 
    justify-content: center;
    align-items: center; }

.float button {
    font-family: "Josefin Sans", sans-serif;
    padding: 5px;
    font-size: 20px;
    border-radius: 15px;
    background-color: #FAAD0D;
    color: white;
    width: 200px;
    height: 50px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 4);
    transition: box-shadow 0.1s;
    position: relative;
    animation: bounce 1s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-5px);
    }
}

/*@keyframes bounce {
  0%   {top: 0px;}
  25%  {top: 200px;}
  75%  {top: 50px}
  100% {top: 100px;}
}*/


.float button:hover {
    cursor: pointer;
    background-color: #123e77;
    color: white;
    animation: none;
}

.top {
    width: 100%;
    max-width: 1400px;
    height: auto;
    margin: 80px auto;
    padding: 0 20px;
}

.top img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}


.scroll-wrapper {
    width: 100%;
    overflow: hidden;
    background: #660b05;
    display: flex;
    align-items: center;
    padding: 10px 0;
    position: relative;
}

.scroll-content {
    display: flex;
    gap: 80px;
    animation: scroll-left 15s linear infinite;
}

.scroll-content span {
    color: #fbf7ba;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 60px;
}

/* scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


/*---------------------BEST SELLER---------------------*/
.product-section {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 50px 20px;
}
.bs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.subtitle {
    font-size: 14px;
    color: #444;
}

.title {
    font-size: 40px;
    color: #660b05;
    justify-content: flex-end;
    font-family: "Poppins", sans-serif;
}

.title span {
    color: #b78c46;
}

.top-btn {
    width: auto;
    display: flex;
    justify-content: flex-end;
}

.view-btn {
    background: #660b05;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: poppins;
}

.view-btn:hover {
    opacity: .5;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.38);
}

.product-img {
    width: 100%;
    border-radius: 12px;
    height: 200px;
    object-fit: cover;
}

.product-name {
    font-size: 18px;
    margin: 8px 0;
}

.price {
    margin-top: 8px;
}

.current-price {
    color: #204423;
    font-weight: bold;
    font-size: 18px;
}



/*---------------------ABOUT US---------------------*/
.about-us {
    color: #660b05;
    /*background: linear-gradient(150deg,white, #660b05);
    background-color: #f7f7f0;
    padding-top: 20px;*/
}

.about-us h1 {
    font-weight: bold;
    font-size: 100px;
    text-align: center;
    margin: 50px;
    font-family: "Poppins", sans-serif;
    color: #660b05;
}

.about-us #story {
    font-weight: bold;
    font-size: 70px;
    text-align: center;
    margin: 50px;
    font-family: "Poppins", sans-serif;
}

.image {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    border: 3px solid #FAAD0D;
}


.img2 img {
    max-width: 550px;
}

.image h3 {
    margin-top: 10px;
}


.para {
    display: flex;
    justify-content: center;
    align-items: center;
}

.para p {
    width: 500px;
    font-size: 20px;
}

.para1 {
    text-align: right;
}

/*---------------------TIMELINE---------------------*/
.timeline {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
    font-family: "Josefin Sans", sans-serif;
    width: 100%;
    max-width: 500px;
}

.timeline__component {
    margin: 0 20px 20px 20px;
}

.timeline__component--bg {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: #f7f7f0;
}

.timeline__component--bg img {
    width: 400px;
    height: 220px;
}

/* LEAVE TILL LAST */
.timeline__component--bottom {
    margin-bottom: 0;
}

.timeline__middle {
    position: relative;
    background: #660b05;
}

.timeline__point {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #660b05;
    border-radius: 50%;
}

/* LEAVE TILL LAST */
.timeline__point--bottom {
    top: initial;
    bottom: 0;
}

.timeline__date--right {
    text-align: right;

}

.timeline__date {
    font-weight: bold;
    font-family: "Poppins", sans-serif;
}

.timeline__title {
    margin: 0;
    font-size: 1.15em;
    font-weight: bold;
}

.timeline__paragraph {
    line-height: 1.5;
    /*color: #fbf7ba;*/
}

.left_timeline {
    text-align: right;
}

.about-con {
    display: flex;
    gap: 350px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-deets {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 800px;
    margin: 0 auto;
    text-align: justify;
    text-shadow: 5px 5px 6px rgba(0, 0, 0, 0.35);
}

.about-deets h2 {
    font-size: 40px;
}

.about-deets p {
    font-size: 25px;
    line-height: 50px;
}

/*---------------------FOOTER---------------------*/
footer {
    background-color: #f7f7f0;
    padding: 30px;
    color: #194a7a;
    font-family: "Josefin Sans", sans-serif;
    margin-top: 100px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-top {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.footer-brand {
    font-size: 18px;
    font-weight: bold;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-contact i {
    margin-right: 8px;
}

/* Horizontal line */
.footer-line {
    margin: 20px 0;
    border: none;
    border-bottom: 2px solid black;
}

/* Social icons */
.footer-social {
    text-align: center;
    margin-bottom: 10px;
}

.footer-social i {
    font-size: 22px;
    margin: 0 10px;
    cursor: pointer;
}

/* Copyright */
.footer-copy {
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
}

/*---------------------PRE LOADER---------------------*/

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}


#preloader img {
    width: 200px;
    animation: bouncePop 1.2s ease forwards;
}

@keyframes bouncePop {
    0% {
        transform: scale(3);
        opacity: 0;
    }

    40% {
        transform: scale(0.8);
        opacity: 1;
    }

    60% {
        transform: scale(1.1);
    }

    80% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* Slide-up animation for preloader */
.slide-up {
    animation: slideUp 0.8s forwards;
}

/* Start invisible + shifted to the right */
.slide-in {
    opacity: 0;
    transform: translateX(50px);
    /* smaller for subtle effect */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in.show {
    opacity: 1;
    transform: translateX(0);
}

.image1.slide-in {
    transition-delay: 0s;
}

.image2.slide-in {
    transition-delay: 0.2s;
}

.image3.slide-in {
    transition-delay: 0.4s;
}


@keyframes slideUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}


.fade-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.show {
    opacity: 1;
    transform: translateY(0);
}



.cart-wrapper {
    position: relative;
    display: inline-block;
}

.right-section i.fa-cart-shopping {
    color: #194a7a;
    width: 25px;
}

.cart-wrapper .cartcount {
    position: absolute;
    top: -9px;
    right: -6px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}





/* ================= RESPONSIVE DESIGN ================= */

/* TABLETS */
@media (max-width: 1000px){

.main-header{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.nav-menu{
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a{
    padding: 10px 20px;
}

.right-section{
    justify-content: center;
}

.top{
    width: 95%;
    height: auto;
}

.top img{
    height: auto;
}

.float button {
    width: 150px;
    height: 35px;
    font-size: 15px;
}

.product-section{
    padding: 40px 40px;
}

.product-container{
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
}

.about-con{
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.about-deets{
    width: 90%;
}

.about-deets p{
    font-size: 20px;
    line-height: 38px;
}

.timeline{
    width: 100%;
    max-width: 500px;
}

.view-btn {
    padding: 5px 14px;
    font-size: 9px;
}

}



@media (max-width:900px){

.mobile-user{
    display:flex;
}
.hamburger{
    display:block;
}
.nav-menu{
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:#f7f7f0;
    flex-direction:column;
    align-items:center;
    display:none;
}
.nav-menu a{
    width:100%;
    text-align:center;
    padding:15px;
    border-bottom:1px solid #ddd;
}
.nav-menu.show{
    display:flex;
}
.right-section{
    display:none;
}

}


/* MOBILE */
@media (max-width: 700px){

.brand{
    font-size: 16px;
}

.logo{
    width: 40px;
    height: 40px;
}

.nav-menu{
    gap: 5px;
}

.nav-menu a{
    padding: 8px 15px;
    font-size: 14px;
}

.product-section{
    padding: 30px 20px;
}

.title{
    font-size: 28px;
}

.product-img{
    height: 180px;
}

.about-us #story{
    font-size: 40px;
}

.about-deets h2{
    font-size: 30px;
}

.about-deets p{
    font-size: 18px;
    line-height: 30px;
}

.timeline{
    grid-template-columns: 1fr;
}

.timeline__middle{
    display: none;
}

.timeline__component{
    text-align: center;
}

.timeline__date--right{
    text-align: center;
}

.timeline__component--bg img{
    width: 100%;
    height: auto;
}

.scroll-content span{
    font-size: 14px;
}



}


/* SMALL PHONES */
@media (max-width: 500px){

.main-header{
    padding: 8px;
}

.nav-menu{
    flex-direction: column;
    align-items: center;
}

.nav-menu a{
    width: 100%;
    text-align: center;
}

.right-section{
    flex-direction: column;
    gap: 5px;
}

.cart-wrapper{
    margin-top: 5px;
}

.top{
    margin: 40px auto;
}

.product-container{
    grid-template-columns: 1fr;
}

.footer-top{
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.footer-contact{
    text-align: center;
}

.footer-social i{
    font-size: 20px;
}

}
html, body {
    width: 100%;
    overflow-x: hidden;
}