* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* fonts */
@font-face {
    font-family: "Geist-thin";
    src: url(fonts/Geist_Mono/static/GeistMono-Thin.ttf) format("truetype");
}

@font-face {
    font-family: "Geist-light";
    src: url(fonts/Geist_Mono/static/GeistMono-Light.ttf) format("truetype");
}

@font-face {
    font-family: "Geologica-semibold";
    src: url(fonts/Geologica/static/Geologica-SemiBold.ttf) format("truetype");
}

@font-face {
    font-family: "Geologica-regular";
    src: url(fonts/Geologica/static/Geologica-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "Geologica-extralight";
    src: url(fonts/Geologica/static/Geologica-ExtraLight.ttf) format("truetype");
}

@font-face {
    font-family: "Geologica-thin";
    src: url(fonts/Geologica/static/Geologica-Thin.ttf) format("truetype");
}

@font-face {
    font-family: "Montserrat-thin";
    src: url(fonts/Montserrat/static/Montserrat-Thin.ttf) format("truetype");
}

@font-face {
    font-family: "Montserrat-light";
    src: url(fonts/Montserrat/static/Montserrat-Light.ttf) format("truetype");
}

@font-face {
    font-family: "Dmsans-extra";
    src: url(fonts/DM_Sans/static/DMSans-ExtraLight.ttf) format("truetype");
}

@font-face {
    font-family: "Dmsans-regular";
    src: url(fonts/DM_Sans/static/DMSans-Regular.ttf) format("truetype");
}

body,
html {
    margin: 0;
    background-color: #483578;
    font-size: 16px;
    font-family: "Dmsans-extra";
    color: white;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* header */
header {
    background-image: url("photo/lily1-pc.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

nav {
    width: 100%;
    height: 8vh;
    display: flex;
    justify-content: space-between;
    font-family: "Geist-thin";
    align-items: flex-end;
    padding: 1% 5%;
    position: fixed;
    z-index: 1000;
    top: 0;
    background-color: rgba(64, 49, 102, 0.5);
}

nav>ul {
    text-align: end;
    top: 0;
    display: flex;
    list-style-type: none;
    gap: 1rem;
    font-size: 1rem;
    margin-top: 0;
}

.nav-name {
    font-size: 1.5rem;
    white-space: nowrap;
}

nav>ul>li>a {
    color: white;
    text-decoration: none;
}

.maintext {
    font-family: "Geist-light";
    font-size: clamp(3rem, 6vw, 6rem);
    position: absolute;
    top: 48%;
    transform: translateY(-48%);
    padding-left: 5%;
    line-height: 1.4;
}

.where,
.sielnce,
.blooms {
    display: block;
}

.scroll {
    font-family: "Geist-thin";
    font-size: clamp(0.5rem, 3vw, 1.5rem);
    position: absolute;
    bottom: 0.6rem;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
}

/* /header */

/* body */

/* cards */

.cards {
    margin-top: 15vh;
    font-family: "Geologica-extralight";
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    padding: 5vh 7vw;
}

.card {
    display: flex;

    flex-direction: column;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    width: 260px;
    height: 380px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-preview {
    flex: 1;
    width: 100%;
    /* height: 100%;  */
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bottom-bar {
    text-align: center;
    padding: 0.5rem 1rem;
    background: #ffffff;
    color: #483578;

    font-size: 1.5rem;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .cards {
        display: flex;
        gap: 1.2rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 5vw;
        scroll-padding-right: 5vw;
        /* padding-left: 5vw;
        padding-right: 5vw; */
        -webkit-overflow-scrolling: touch;
        padding: 4vh 5vw;
        scrollbar-width: none;
    }

    .card {
        flex: 0 0 auto;
        scroll-snap-align: start;
        width: 230px;
        height: 350px;
        transition: transform 0.3 ease;
    }

    .card:hover {
        transform: scale(1.03);
    }

    .cards::-webkit-scrollbar {
        display: none;
    }
}

/* product */
.product-page {
    display: flex;
    padding: 9vh 6vw;
    font-family: "Geologica-extralight";
    font-size: 1.5rem;
    gap: 6vw;

}

.product-image {
    border-radius: 10px;
    overflow: hidden;
    /* max-width: 600px; */
    flex: 1 1 40%;
    aspect-ratio: 1 / 1;
}

.product-image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    display: block;
}

.product-info {
    flex: 1 1 40%;
}

.product-info h2 {
    font-family: "Geologica-regular";
    margin-bottom: 18px;
}

.price {
    font-family: "Dmsans-regular";
    margin-bottom: 7px;
}

#size {
    width: 100%;
    padding: 12px 10px;

    margin: 10px 0;
    color: #483578;
    font-size: 1rem;
    font-family: "Geologica-extralight";
    outline: none;
    border-radius: 10px;
}

.description {
    font-size: 1rem;
    padding: 10px 0;
    width: 100%;
}

.product-control {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.product-control button {
    margin: 0;
    flex: 1;
}

.counter {
    background-color: white;
    color: #483578;
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    font-size: 1rem;
}

.counter button {
    background-color: #ffffff;
    padding: 14.25px;
    border: none;
    cursor: pointer;
    outline: none;
    flex: 1;
}

@media (max-width: 900px) {
    .product-page {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        flex: 1 1 80%;
    }
}

/* about */
.about-section {
    display: flex;
    flex-direction: column;
    margin-top: 20vh;
    padding: 0 7vw;
}

.info-about {
    display: flex;
    align-items: center;
    /* gap: 1rem; */
    width: 100%;
}

.info-about.reverse {
    flex-direction: row-reverse;
    margin-top: 1rem;
}

.info-img {
    aspect-ratio: 3 / 2;
    flex: 0 0 43vw;
    overflow: hidden;

    /* border-radius: 20px 0 0 20px ; */
    flex-shrink: 0;
}

.info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.info-text {
    font-family: Geist-light;

    width: 43vw;
    aspect-ratio: 3/2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 20px;
}

.info-text p,
.info-text span {
    font-size: clamp(18px, 2vw, 20px);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: Geologica-extralight;
}

.info-text span a {
    text-decoration: none;
    border-bottom: solid 0.6px white;
    list-style: none;
    color: white;
    font-family: Geologica-thin;
}

.info-text span {
    text-align: center;
    margin-top: 1.5rem;
}

.info-img,
.info-text.reverse {
    border-radius: 20px 0 0 20px;
    box-shadow: 0 5px 15px #352858;
}

.info-img.reverse,
.info-text {
    border-radius: 0 20px 20px 0;
    box-shadow: 0 5px 15px #352858;
}

/* about */
.text-to-link {
    text-align: center;
    font-family: Geologica-thin;
    padding: 0 9vw;
    font-size: clamp(20px, 1.5vw, 40px);
    margin: 10px;
    padding-bottom: 10px;
    border-bottom: solid 1px #2f2547;
    width: 60%;
    margin: 0 auto;
    box-sizing: border-box;
}

#open {
    /* width: 200px; */
    width: max-content;
    margin: 10px auto;
    font-size: clamp(15px, 1.5vw, 30px);
    font-family: "Geologica-regular";
    background-color: white;
    padding: 7px 5px;
    border: none;
    color: #483578;
    outline: none;
    cursor: pointer;
    border-radius: 10px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

#open:hover {
    background-color: #ffffff7a;
}

.background-letter {
    margin: 0 auto;
    position: relative;
    background-color: #2f2547;
    width: 50%;
    min-height: 70vh;
    border: solid 2px #352858;
    margin-top: 4vh;
    overflow: hidden;
    display: none;
}

.letter {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(./photo/lily3.jpg);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.letter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.letter-content {
    position: relative;
    /* padding: clamp(1rem, 3vw, 2rem); */
    padding: 0 5%;
    z-index: 10;
}

.text-about {
    font-family: geologica-semibold;
    font-size: clamp(3.5rem, 9vw, 18.6rem);
    color: rgba(255, 255, 255, 0.412);
    line-height: 1;
    /* text-align: left; */
}

.us {
    font-family: geologica-semibold;
    color: rgba(255, 255, 255, 0.412);
    font-size: clamp(1.8rem, 6vw, 5.5rem);
    /* font-size: 10vh; */
}

.letter-content p {
    padding-top: 10%;
    font-size: clamp(0.9rem, 1.5vw, 1.4rem);
    max-width: 85%;
    font-family: Geologica-thin;
    color: rgba(196, 196, 196, 0.864);
}

/* contact */
.contact-section {
    padding: 0 6vw;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section h1 {
    font-family: "Geologica-semibold";
    font-size: clamp(2rem, 12vw, 10rem);
    text-align: center;
    margin-bottom: 2rem;
}

.contact-section ul li {
    font-family: "Geologica-thin";
    font-size: clamp(1rem, 1.5vw, 2rem);
}

.form-contact {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    font-family: Geologica-extralight;
}

.form-contact form {
    width: 100%;
    max-width: 350px;
}

.form-contact p {
    width: 30%;
    text-align: left;
}

@media (max-width: 768px) {
    .form-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-contact p {
        width: 80%;
        margin-bottom: 1.5rem;
    }

    .form-contact form {
        width: 100%;
        max-width: 400px;
    }
}

 form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    font-family: Geologica-extralight;
}

label {
    font-size: 1rem;
}

 form input,
 form select,
 form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #fffefed5;
    color: #fffefed5;
    font-family: Geologica-extralight;
    padding: 12px 8px;
    font-size: 1rem;
    border-radius: 1px;
    background: transparent;
    outline: none;
    transition:
        border-color 0.3s ease,
        color 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: #fffefed5;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

form input:focus::placeholder,
form textarea:focus::placeholder {
    opacity: 0;
}

 form input:focus,
form select:focus,
 form textarea:focus {
    border-bottom: 1.3px solid #ffffff;
}

form textarea {
    resize: vertical;
    width: 100%;
}

form button,
.cart {
    margin-top: 10px;
    padding: 12px 20px;
    background-color: #ffffff;
    color: #483578;
    border: none;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: Geologica-light;
    font-size: 1rem;
    transition: background 0.3s;
    font-family: Geologica-regular;
}

form button:hover,
.cart:hover {
    outline: none;
    background-color: #ffffff7a;
    color: #443271;
}

ul {
    margin-top: 25px;
    font-size: 1.5rem;
    list-style-type: none;
    font-family: "Dmsans-extra";
    display: flex;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .background-letter {
        width: 60%;
    }
}

/* footer */
.footer-wrapper {
    margin: 0 auto;
    max-width: 1200px;
    padding: 1.5rem 6vw;
    width: 100%;
    color: #d3d2d2;
    bottom: 0;
}

footer {
    flex-shrink: 0;
    width: 100%;
    bottom: 0;
    margin-top: auto;
    padding: 1.5rem 0 56px 0;
    flex-wrap: wrap;
    display: flex;
    font-family: "Dmsans-extra";
    justify-content: space-between;
    align-items: center;
    font-size: clamp(14px, 1.2vw, 16px);
    border-top: 1px solid #c0bfbf;
}

footer ul {
    display: flex;
    font-family: "Dmsans-extra";
    gap: 5px;
    align-items: center;
    font-size: clamp(14px, 1.2vw, 16px);
    margin-top: 0;
}

footer ul li:last-child {
    margin-left: 10px;
}

@media (max-width: 428px) {
    footer {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* login */
.login-wrapper {
    position: fixed;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-wrapper>div {
    font-family: "Montserrat-thin";
    width: 100%;
    padding: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
}

.main-register {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 8vh;
}

.register-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0 6vw;
    width: max(300px, 50%);
    text-align: center;
}

.login-wrapper>div {
    opacity: 0;
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    pointer-events: none;
}

.login-wrapper>div.active {
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.login-wrapper>div.leave {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: none;
}

.login h2,
.reset h2,
.register h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin: 1rem 0;
    font-family: Geologica-extralight;
    white-space: nowrap;
    text-align: center;
}

.login p,
.reset p,
.register p {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    line-height: 1.5;
    white-space: nowrap;
    margin-bottom: 1rem;
}


form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field .forgot-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #2b1f47;
    font-family: "Montserrat-light";
    text-decoration: none;
    transition: color 0.3s;
}

.password-field .forgot-password:hover {
    color: #0e0623;
}

input {
    padding: 12px 14px;
    border: 1px solid #dddcdc;
    border-radius: 10px;
    font-family: "Montserrat-light";
    outline: none;
    transition: border-color 0.4s ease;
    width: 100%;
}

.login .password-field input {
    padding-right: 120px;
}


 input::placeholder {
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

input:focus::placeholder {
    opacity: 0;
}

input:focus {
    border: 1px solid #2b1f47;
}

button {
    font-family: 'Geologica-regular';
    width: 100%;
}

.create-one,
.remember,
.back-to-login {
    margin: 2rem 0;
}

.create-one a,
.remember a,
.back-to-login a {
    text-decoration: none;
    color: white;
    font-family: "Montserrat-light";
}
p.not_found{
        padding-top: 8vh;
            font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-family: Geologica-extralight;
}

/* account */
.account-wrapper{

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

       font-family: "Geologica-extralight";
     padding: clamp(1.5rem, 4vw, 3rem);
    width: 100%;
    max-width: 500px;

    text-align: center;
    background-color: white;
    color: #2f2547;
    border: solid 2px #1f182f;
    /* margin: 8vh auto; */
   


}
.account-wrapper h1{
     font-size: clamp(28px, 3vw, 48px);
}
.account-wrapper p{
    font-size: clamp(20px, 2.2vw, 24px);
}

.logout{
    text-decoration: none;
    color: #2b1f47;
    font-size: 'Geologica-regular';

}
.item-in-cart{
    display: flex;
    align-items: center;
   justify-content: space-around;
    gap: 12px;
}
.checkout,
.remove{
    background-color: #48357874;
}
.remove-form{
    width: auto;
}
.total{
      font-size: clamp(20px, 2.2vw, 24px);
       font-family: "Dmsans-extra";

}
.info-wrapper{
    display: block;
    text-align: left;
   
}
.admin h1{
   text-align: center;
       font-size: clamp(28px, 3vw, 48px);


}
main.admin{
    padding-top: 8vh;
}

.admin h2{
    text-align: center;
    font-family: "Dmsans-extra";
    padding-top:  1.5vh;
       font-size: clamp(20px, 2.2vw, 24px);
}
.admin-item{
    margin-top: 1vh;
}
.admin-item h3,
.admin-item p{
    text-align: center;
      font-family: "Dmsans-extra";
}
.add-new{
    margin-bottom: 30px;
}
.edit-bouquet h1{
    text-align: center;
}
.edit-bouquet form{
    margin-bottom: 30px;
}

.order {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

.order-id {
    font-size: 1.2rem;
    font-weight: 600;
}

.order-title {
    font-size: 1rem;
    opacity: 0.8;
}

.order-status {
    margin: 0.5rem 0;
}

.order-items {
    margin: 0.5rem 0;
    padding-left: 1rem;
}

.order-total {
    margin-top: 0.5rem;
    font-weight: 600;
}
