@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;600;800&family=Playfair+Display:wght@700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
    width: 100%;
}

.container {
    margin: 0;
    padding: 5px 25px;
    width: 100%;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn {
    display: inline-block;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: inherit;

    &:hover {
        color: #BD590E;
        border-bottom: 2px solid #BD590E;
    }
}

.btn-outline {
    border: 2px solid #BD590E;
    color: #BD590E;
    background: transparent;

    &:hover {
        background-color: #BD590E;
        color: #fff;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f1f0efa4;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eaeaea;
    padding: 0px 25px;
    width: 100%;
    border-bottom: 2px solid #BD590E;
    margin-bottom: 25px;
}

/* logo */
/* .header-logo {
    font-size: 25px;
    font-weight: bold;

    &>h3 {
        display: inline-block;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    &>i {
        color: #BD590E;
        font-size: 40px;
    }
} */

/* nav section */
.header-nav {
    list-style: none;
    display: flex;

    &>li>a {
        padding-inline: 15px;
        text-decoration: none;
        color: #333;
        font-weight: bold;
        font-size: large;
        transition: color 0.3s;

        &:hover {
            color: #BD590E;
            border-bottom: 2px solid #BD590E;
        }
    }
}

/* cart and account buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cart-link {
    text-decoration: none;
    font-size: 25px;
    position: relative;
    color: #333;
    border-radius: 50%;

    &:hover {
        color: #BD590E;
        border-bottom: 2px solid transparent;
    }

    &>span {
        position: absolute;
        top: -8px;
        right: -12px;
        background: #BD590E;
        color: white;
        font-size: 11.25px;
        font-weight: bold;
        padding: 3px 7.5px;
        border-radius: 20px;
        /* display: none; */
    }

}

.account-btn {
    border-radius: 50%;
    font-size: 20px;
    padding: 7px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;

    &:hover {
        background: #BD590E;
        color: #fff;
    }
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #f1f1ef;
    border: 1px solid #f1f1ef;
    border-top: 0;
    border-radius: 4px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    padding: 7.5px;
    min-width: 120px;
    /* display: block; */
    /* hidden by default, shown by user.js */
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;

    &>button {
        width: 100%;
        padding: 7.5px;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        font-size: 13.5px;

        &:hover {
            color: #BD590E;
        }
    }
}

.account-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-btn.logged-in {
    color: #266acf;
    font-weight: bolder;
}

.site-footer {
    background: #222;
    padding: 45px 0px 22.5px;
    margin-top: 45px;
}

.footer-col {
    &>h4 {
        margin-bottom: 15px;
        color: #BD590E;
        font-size: 18px;
    }

    &>p,
    &>ul {
        margin: 7.5px 0;
        color: #ccc;
        list-style: none;
        padding: 0;
    }

    & a {
        color: #ccc;
        text-decoration: none;
    }

    & a:hover {
        color: #BD590E;
    }
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 22.5px;
    text-align: center;
    font-size: 13.5px;
    color: #aaa;
}

/* ── Feedback Modal ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .card {
    width: 100%;
    max-width: 460px;
    position: relative;
    transform: translateY(12px);
    transition: transform 0.25s;
}

.modal-overlay.open .card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;

    &:hover {
        color: #333;
    }
}

.modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    text-align: center;

    & i {
        color: #BD590E;
        font-size: 40px;
    }
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 22.5px;
    /* padding: 1.5rem; */
}

/* Add to header-footer.css */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

#feedback-modal-container input,
#feedback-modal-container textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #BD590E;
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

/* Ensure the submit button uses .btn-primary (already in global.css) */
.btn-primary {
    background-color: #BD590E;
    color: #fff;
    border: 2px solid #BD590E;
}

.btn-primary:hover {
    background-color: #b8860b;
    border-color: #b8860b;
}