@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Story+Script&family=Tagesschrift&family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --halfbody-image: #f5f2ee;
    --font1: "Story Script", sans-serif;
    --font2: "Tagesschrift", system-ui;
    --font3: "Cinzel", serif;
    --font4: "Zalando Sans Expanded", sans-serif;
    --font5: "Gravitas One", serif;
}


html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--halfbody-color);
    overflow-x: hidden;
}

/*BackGround IMage...............................................*/

.bg {
    height: 580px;
    /*border: 1px solid;*/
    width: auto;
    background-image: url(jawabg-account.jpg);
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .bg {
        transition: 0.3s;
        height: 300px;
    }
}

@media (max-width: 430px) {
    .bg {
        transition: 0.3s;
        height: 250px;
        background-position: left;
    }
}


/*....................Navbar..............................*/

.bg .navbar {

    margin-top: 30px;
    height: 70px;
    width: 95%;
    background-color: #f5f2ee;
    /*border: 1px solid;*/
    border-color: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
}

.bg {
    .nav1 {
        flex-grow: 1;
        padding-left: 30px;
    }

    .nav2 {

        flex-grow: 2;

        ul {
            list-style-type: none;
            display: flex;
            justify-content: space-evenly;
            margin-bottom: 0;
        }

        li {
            font-size: 18px;
            font-weight: 600;
            color: grey;

            a {
                text-decoration: none;
                color: grey;
            }
        }



    }

    .nav2:hover {
        cursor: pointer;

    }

    .nav2 li:hover {
        a {
            color: black;
        }

        transition: 0.3s;
        transform: scale(1.08);
    }

    .nav3 {
        flex-grow: 1;

        ul {
            list-style-type: none;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            margin-bottom: 0;
        }
    }

    .nav3 ul .sicon:hover {
        transform: scale(1.7);
        transition: 0.3s;
    }

    .nav3 ul .sicon1:hover {
        transform: scale(1.15);
        transition: 0.3s;
    }

    .nav3 .sicon1 {
        font-weight: 600;
        font-size: 18px;
    }

}

.menu-icon {
    display: none;
    /* outside media query — hides everywhere */
}

/*................Navbar - Media.......................*/

@media screen and (max-width: 919px) {

    /* Hide Account text, only icon */
    .bg .navbar .nav3 li:has(.fa-user) {
        font-size: 0;
    }

    .bg .navbar .nav3 li .fa-user {
        font-size: 20px;
        color: #333;
    }
}

@media screen and (max-width: 766px) {
    .bg .navbar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        background-color: #f5f2ee;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        height: 50px;
    }

    .bg .nav3 {
        flex-grow: 0;
    }

    /* Hamburger visible on mobile */
    .menu-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 8px;
    }

    .menu-icon i {
        font-size: 20px;
        color: #333;
        transition: transform 0.3s ease;
    }

    .menu-icon:active i {
        transform: scale(0.9);
    }

    /* Logo */
    .bg .navbar .nav1 {
        flex-grow: 0;
        padding-left: 0;
    }

    .bg .navbar .nav1 img {
        height: 20px;
    }

    /* Hide big nav links initially */
    .bg .navbar .nav2 {
        display: none;
    }

    /* Mobile dropdown when toggled by JS */
    .bg .navbar .nav2.open {
        display: flex;
        justify-content: center;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #f5f2ee;
        padding: 15px 0;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        animation: slideDown 0.3s ease forwards;
        z-index: 999;
    }

    .bg .navbar .nav2.open ul {
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 0;
    }

    /* Right section (search + cart) */
    .bg .navbar .nav3 {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .bg .navbar .nav3 ul {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 0;
        padding: 0;
    }

    .bg .navbar .nav3 li {
        list-style: none;
        font-size: 20px;
        color: #333;
    }

    /* Hide Account text, only icon */
    .bg .navbar .nav3 li:has(.fa-user) {
        font-size: 0;
    }

    .bg .navbar .nav3 li .fa-user {
        font-size: 18px;
        color: #333;
    }

    /* Search overlay responsiveness */
    .search10 {
        width: 90%;
        height: auto;
        padding: 20px 15px;
        border-radius: 10px;
        gap: 1rem;
    }

    .search10 input {
        width: 100%;
        font-size: 16px;
    }

    .search10 button {
        width: 40px;
        height: 40px;
    }

    .search10 p {
        font-size: 22px;
        text-align: center;
    }

    /* Smooth dropdown animation */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 440px) {

    .nav3 ul .sicon i,
    .sicon1 i {
        font-size: 14px;
    }

    .bg .navbar .nav3 li .fa-user {
        font-size: 14px;
    }
}

/*Navbar - Shop Hover...............................................*/

.bg .shopscroll {
    height: 550px;
    width: 85%;
    /*border: 1px solid;*/
    position: absolute;
    top: 110px;
    left: 110px;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    display: none;
    z-index: 999;

}

.shopscroll {

    .scroll1 {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 300px;
        /*border: 1px solid;*/

        ul {
            list-style-type: none;

            a {
                text-decoration: none;
                color: black;
                font-weight: 600;
            }

            li {
                font-size: 18px;
                font-weight: 400;
                color: rgb(128, 128, 128);
                padding-bottom: 5px;
                font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
            }

            li:hover {
                color: black;
                transform: translateX(10px);
                transition: 0.3s;
                cursor: pointer;
            }
        }


    }

    .scroll2 {
        margin-top: 15px;
        height: 200px;
        /*border: 1px solid;*/
        display: flex;
        align-items: center;
        justify-content: space-around;

        img {
            border-radius: 10px;
            height: 180px;
        }

        img:hover {
            transform: scale(1.05);
            transition: .3s;
            cursor: pointer;
        }
    }
}

@media (max-width: 768px) {
    .bg .shopscroll {
        display: none !important;
    }
}

/*Navbar - Collections Hover...............................................*/

.bg .collecti {
    height: 250px;
    width: 95%;
    border: 1px solid;
    margin-top: 120px;
    border-color: transparent;
    position: absolute;
    background-color: white;
    display: none;
    z-index: 999;
}

.collecti {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    left: 25px;
    border-radius: 10px;


    div {
        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 10px;

        img {
            border-radius: 10px;
        }

        img:hover {
            transform: scale(1.05);
            transition: 0.3s;
            box-shadow: 0px 0px 10px 5px grey;
        }

        a {
            text-decoration: none;
            color: grey;
            font-weight: 600;
        }

        a:hover::before {
            content: "-> ";
            font-weight: 800;
        }

        a:hover {
            transform: translateX(10px);
            transition: 0.3s;
            color: rgba(0, 0, 0, 0.671);
            font-weight: 700;
        }
    }
}

@media (max-width: 768px) {
    .bg .collecti {
        display: none !important;
    }
}

/*Navbar - Pages Hover...............................................*/

.bg .pages {
    height: 250px;
    width: 15%;
    border: 1px Solid white;
    background: transparent;
    backdrop-filter: blur(8px);
    position: absolute;
    margin-top: 120px;
    border-radius: 10px;
    margin-left: 300px;
    display: none;
    z-index: 999;

    ul {
        list-style-type: none;
        margin-top: 20px;

    }

    a {
        text-decoration: none;
        color: white;
    }

    li {
        margin-left: 10px;
        margin-top: 9px;
        font-weight: 600;
    }
}

.bg .pages:hover {
    box-shadow: 0px 0px 20px 5px white;


}

.pages li:hover {
    transform: translateX(15px);
    transition: 0.3s;
    font-size: 20px;

}

.bg .pages ul .present:hover{
    color: yellow;
}

@media (max-width: 768px) {
    .bg .pages {
        display: none !important;
    }
}

/*...................Add to Cart................................*/

.cart {
    height: auto;
    width: 30%;
    position: absolute;
    top: 120px;
    right: 45px;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--halfbody-image);
    transform: translateX(600px);
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

/* Header text */
.cart .head {
    font-size: 22px;
    font-weight: 600;
    color: rgb(70, 42, 42);
    font-family: "Cinzel", serif;
    text-align: center;
}

/* Cart item box */
.cart div {
    height: 180px;
    border: 5px solid gray;
    border-radius: 12px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    gap: 10px;
    background: #fff;
}

/* Item text */
.cart .p1 {
    font-size: 20px;
    font-family: "Tagesschrift", system-ui;
}

.cart .p2 {
    font-weight: 600;
}

/* Medium Laptop / Large Tablet (≤ 912px) */
@media screen and (max-width: 912px) {
    .cart {
        width: 45%;
        right: 25px;
        top: 100px;
        padding: 12px;
    }

    .cart .head {
        font-size: 20px;
    }

    .cart div {
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .cart .p1 {
        font-size: 18px;
    }

    .cart .p2 {
        font-size: 16px;
    }

    .cart img {
        height: 130px;
    }
}

/* =============================== */
/* Tablet View (≤ 768px)       */
/* =============================== */
@media screen and (max-width: 768px) {
    .cart {
        width: 60%;
        right: 20px;
        top: 100px;
        padding: 12px;
    }

    .cart .head {
        font-size: 20px;
    }

    .cart div {
        height: auto;
        flex-direction: row;
        padding: 10px;
        gap: 10px;
    }

    .cart .p1 {
        font-size: 18px;
    }

    .cart .p2 {
        font-size: 16px;
    }
}

/* =============================== */
/* Mobile View (≤ 412px)       */
/* =============================== */
@media screen and (max-width: 412px) {
    .cart {
        width: 90%;
        right: 5%;
        left: 5%;
        top: 80px;
        padding: 10px;
        border-radius: 12px;
    }

    .cart .head {
        font-size: 18px;
        text-align: center;
    }

    .cart div {
        flex-direction: column;
        height: auto;
        gap: 8px;
        text-align: center;
    }

    .cart img {
        height: 100px;
    }

    .cart .p1 {
        font-size: 16px;
    }

    .cart .p2 {
        font-size: 15px;
    }

    .cart i.fa-x {
        font-size: 16px;
        align-self: flex-end;
        margin-right: 8px;
        color: #444;
    }
}


.cart.open {
    transform: translateX(0);
    /* slide in */
}

/*.............................Search Bar......................................*/
/*Search result*/
.search10 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    /* initially hidden above */
    width: 80%;
    height: 300px;
    background: linear-gradient(135deg, #b1b1b1, #7a7a7a);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
    z-index: 999;
}

.search10.open {
    transform: translate(-50%, -30px);
    opacity: 1;
}

@media(max-width: 416px) {
    .search10 {
        p {
            font-size: 18px !important;
        }

        input {
            width: 200px !important;
            padding: 8px 15px !important;
        }
    }
}

/* Title */
.search10 p {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

/* Close icon */
.search10 .fa-x {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 24px;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.search10 .fa-x:hover {
    opacity: 1;
}

/* Input box */
.search10 input {
    width: clamp(250px, 50%, 500px);
    padding: 12px 20px;
    background-color: #f5f2ee;
    color: #333;
    border: 2px solid #ccc;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search10 input:focus {
    border-color: #222;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Placeholder */
.search10 input::placeholder {
    color: #777;
    font-weight: 600;
}

/* Button */
.search10 button {
    background: #000;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search10 button:hover {
    background: #222;
}

.search10 button i {
    color: #fff;
    font-size: 20px;
    opacity: 0.9;
}


/*Searchbar Result*/
.searchbar {
    height: auto;
    width: 80%;
    position: absolute;
    top: 35%;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    background-image: var(--halfbody-image);
    z-index: 99;
    display: flex;
    flex-direction: column;
    transition: 0.5s;
    transform: scale(0.5);
    opacity: 0;

    i {
        cursor: pointer;
    }
}

.searchbar.srch {
    opacity: 1;
    transform: scale(1);
}

.searchbar .nav6 {
    /* border: 1px solid;*/
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.searchbar .nav6>div {
    height: 350px;
    /* border: 1px solid;*/
    flex-basis: 20%;

    background-image: url(product-01.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;



    .p1 {
        position: absolute;
        bottom: 50px;
        left: 20%;
        font-size: 1.2vw;
        font-weight: 600;
        font-family: "Tagesschrift", system-ui;
    }

    .p2 {
        position: absolute;
        bottom: 0;
        left: 40%;
        padding: 5px 20px;
        color: white;
        font-weight: 600;
        background: rgb(121, 111, 111);
        border-radius: 10px;
    }


}

.searchbar .nav6>div {
    .p1 {
        color: rgb(104, 14, 9);
    }
}


@media (max-width: 430px) {
    .searchbar .nav6>div {
        height: 200px;
        flex-basis: 40%;

        .p1 {
            font-size: 12px !important;
        }

        .p2{
            padding: 5px 10px !important;
            font-size: 12px !important;
        }
    }
}


/*LATEST FASHION...............................................*/

.bg .brand {
    height: auto;
    /* remove fixed height */
    width: 80%;
    /* responsive width instead of fixed 700px */
    max-width: 700px;
    /* don’t grow too big on large screens */
    /*border: 1px solid white;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 250px;



    p {
        color: rgba(255, 255, 255, 0.834);
        font-size: clamp(28px, 8vw, 80px);
        font-family: "Tagesschrift", system-ui;
    }

    .p2 {
        font-size: clamp(8px, 3vw, 18px);

        a {
            text-decoration: none;
            color: white;
        }
    }

}

@media (max-width: 768px) {
    .bg .brand {
        top: 120px;
    }
}

@media(max-width: 768px) {
    .bg .brand {
        top: 140px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    /* added a subtle scale effect */
    animation: fadescale 1s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadescale {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*.....................welcome..............................*/
.welcome {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome>p:nth-child(1) {
    font-size: 45px;
    font-family: var(--font3);
}

.welcome>p:nth-child(3) {
    font-size: 25px;
    font-family: var(--font3);
}

/*......................collections-list....................*/

.collections-list {
    width: 100%;
    display: flex;
    padding: 20px;
    padding-top: 50px;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

/* Each card */
.collections-list>div {
    height: 500px;
    flex: 1 1 32%;
    position: relative;
    min-width: 300px;
    max-width: 500px;
    transition: 0.3s;
    opacity: 0 !important;
    transform: translateY(100px) !important;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.collections-list>div.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.collections-list div:hover {
    transform: translateY(-20px) !important;
}

/* Inside .cl1 */
.collections-list .cl1 .p1 {
    position: absolute;
    right: 55px;
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 30% 0% 50%;
    top: 10px;
    font-weight: 500;
    background: white;
}

.collections-list .cl1 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
}

.collections-list .cl1 .p2 {
    position: absolute;
    bottom: 0;
    left: 32%;
    font-size: 20px;
    padding: 15px 30px;
    border-radius: 5px;
    background-color: #f5f2ee;
}

.collections-list .cl1:hover .p2 {
    background-color: #423a34;

    a {
        color: #f5f2ee;
    }
}

.collections-list .cl1 .p2 a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}

/* Hover style */
.collections-list .cl1:hover .p1 {
    border-radius: 0% 30% 0% 30%;
    color: white;
    background-color: #423a34;
}

/* -------------------------
      RESPONSIVE BREAKPOINTS
   ------------------------- */

/* Tablet – 2 per row */
@media (max-width: 900px) {
    .collections-list div {
        flex: 1 1 45%;
        height: 420px;
    }

    .collections-list .cl1 .p1 {
        right: 20px;
    }

    .collections-list .cl1 .p2 {
        left: 25%;
    }
}



/* Mobile – 1 per row */
@media (max-width: 600px) {
    .collections-list div {
        flex: 1 1 95%;
        height: 380px;
    }

    .collections-list .cl1 .p1 {
        right: 15px;
        font-size: 14px;
    }

    .collections-list .cl1 .p2 {
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 20px;
        font-size: 18px;
    }
}

@media(max-width: 540px) {
    .collections-list div {
        flex: 1 1 95%;
        height: 450px;
    }
}


/*.................Get-offer..................*/
.Get-offer {
    margin-top: 100px;
    height: 250px;
    width: 100%;
    border: 1px solid;
    background-color: #423a34;
    display: flex;
    overflow: hidden;


    ul {
        list-style-type: none;
        display: flex;
        align-items: center;
        justify-content: space-around;
        animation: scroll 20s linear infinite;
        flex-shrink: 0;
    }

    p {
        font-size: 22vh;
        font-family: "Lora", serif;
        color: rgba(255, 255, 255, 0.40);

    }

    i {
        font-size: 10vh;
        color: rgba(255, 255, 255, 0.40);
    }
}

@keyframes scroll {

    to {
        transform: translateX(-100%);
    }
}

/*........................Footer..................*/

.footer {
    height: auto;
    width: 100%;
    background-color: #423a34;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer div {
    height: 300px;
    flex-grow: 1;
    min-width: 250px;
    display: flex;
    align-items: center;



    ul {
        list-style-type: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .head {

        font-weight: 600;
        color: white;
    }

    li {
        color: rgba(255, 255, 255, 0.40);
        font-size: 18px;
    }

    a {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.40);
    }

    li:hover {
        cursor: pointer;
        transform: translateX(10px);
        transition: 0.3s;

        a {
            color: white;
        }
    }
}

.footer5 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 2;



    ul :nth-child(2) {
        display: flex;
        align-items: center;
        color: white;
        font-family: "Cinzel", serif;
    }

    .join {
        font-size: 28px;
        font-family: "Cinzel", serif;

    }


    input {
        background-color: transparent;
        border-color: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.40);
    }
}


/*.....................COpyrights...................................*/

.copyrights {
    height: auto;
    background-color: #423a34;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid white;
    flex-wrap: wrap;


    p {
        color: rgba(255, 255, 255, 0.40);
        font-size: 18px;
        font-weight: 600;

        a {
            color: white;
        }
    }
}

.copyrights>div{
    height: 50px;
    display: flex;
    align-items: center;
    min-width: 300px;
    justify-content: center;
}

.copyrights :nth-child(3):hover {
    color: white;
    transition: 0.3s;
}