/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
a {
    transition: 0.3s ease;
}

/* Consistent styled dropdowns across customer and management pages. */
select:not([multiple]) {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 42px !important;
    border-color: #E8D5D0 !important;
    background-color: #fff3f4 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2398485f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 7 5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    color: #3f3036 !important;
    cursor: pointer;
}

select:not([multiple]):hover {
    border-color: #A9B5A0 !important;
    background-color: #ffeaee !important;
}

select:not([multiple]):focus {
    border-color: #A9B5A0 !important;
    box-shadow: 0 0 0 3px rgba(169, 181, 160, 0.12) !important;
    outline: none !important;
}

select option {
    background: #fff7f5;
    color: #3f3036;
}

select option:checked {
    background: #A9B5A0;
    color: #ffffff;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #eeeeee;

    position: sticky;
    top: 0;

    z-index: 1000;
}


/* ================= LOGO ================= */

.logo {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 21px;

    font-weight: bold;

    color: #333333;
}

.logo .navbar-logo-image {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e4e7e8;
    border-radius: 50%;
    background: #ffffff;
}

.logo .navbar-logo-image img {
    position: absolute;
    top: calc(50% + 10px);
    left: 50%;
    width: 170px;
    max-width: none;
    height: 170px;
    display: block;
    transform: translate(-50%, -50%);
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    position: relative;

    font-size: 14px;

    color: #555555;

    padding: 8px 0;
}


/* Hover + Active */

.navbar nav a:hover,
.navbar nav a.active {
    color: #443C36;
}


/* Underline */

.navbar nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #A9B5A0;

    transition: 0.3s ease;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
    width: 100%;
}


/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions {
    display: flex;

    align-items: center;

    gap: 12px;
}


/* Login Button */

.login-btn {
    padding: 9px 20px;

    border: 1px solid #d8d8d8;

    border-radius: 30px;

    font-size: 14px;
}

.login-btn:hover {
    background: #333333;

    color: white;
}


/* Cart Button */

.cart-btn {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #F5F0E8;
}

.cart-btn:hover {
    background: #A9B5A0;

    color: white;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 8% 8%, rgba(169, 181, 160, .10), transparent 23%), linear-gradient(135deg, #A9B5A0 0%, #A9B5A0 55%, #A9B5A0 100%);

    color: white;

    padding: 65px 8% 0;
}

.footer::before {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    right: -155px;
    top: -155px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    pointer-events: none;
}

.footer-container,
.footer-bottom { position: relative; z-index: 1; }

.footer-container {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 24px;

    margin-bottom: 15px;
}

.footer-logo-image {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #ffffff;
}

.footer-logo-image img {
    position: absolute;
    top: calc(50% + 9px);
    left: 50%;
    width: 149px;
    max-width: none;
    height: 149px;
    display: block;
    transform: translate(-50%, -50%);
}

.footer-column > p {
    color: #bbbbbb;

    font-size: 13px;

    max-width: 300px;
}

.footer-column h3 {
    font-size: 15px;

    margin-bottom: 18px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: .3px;
}

.footer-column a {
    display: block;

    color: #bbbbbb;

    font-size: 13px;

    margin-bottom: 10px;
}

.footer-column a:hover {
    color: white;

    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid #3d3a3d;

    text-align: center;

    color: #999999;

    font-size: 12px;
}

.footer-policy-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 10px;
}

.footer-policy-links a {
    color: #ded7da;
    font-size: 12px;
    text-decoration: none;
}


/* =========================================================
   MAIN RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .navbar {
        padding: 0 4%;
    }

    .navbar nav {
        gap: 15px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 700px) {

    .navbar {
        height: auto;

        flex-wrap: wrap;

        padding: 15px 5%;

        gap: 15px;
    }

    .navbar nav {
        order: 3;

        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 12px;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 30px;
    }
}

.footer-column .footer-contact-detail {
    margin-top: 16px;

    color: #d1c7cb;

    line-height: 1.8;
}


.footer-column .footer-contact-detail a {
    display: inline;
    margin: 0;
    color: inherit;
}


.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;

    margin-top: 18px;
}


.footer-column .footer-social-links a {
    display: inline-flex;
    margin: 0;
    padding: 0;
}


.footer-column .footer-social-links a:hover {
    padding-left: 0;
}


/* =====================================================
   ADD TO BAG FEEDBACK
===================================================== */

.cart-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;

    max-width: min(390px, calc(100vw - 32px));
    min-height: 58px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 18px;

    border: 1px solid #E8D5D0;
    border-radius: 14px;

    background: #ffffff;
    color: #2d2729;

    box-shadow: 0 18px 45px rgba(169, 181, 160, 0.20);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;

    opacity: 0;
    transform: translateY(18px);

    transition: opacity 0.22s ease, transform 0.22s ease;
}


.cart-toast-show {
    opacity: 1;
    transform: translateY(0);
}


.cart-toast-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f7e9ee;
    color: #443C36;

    font-size: 15px;
    font-weight: 800;
}


.cart-toast-error {
    border-color: #efd7d7;
}


.cart-toast-error .cart-toast-icon {
    background: #fff0f0;
    color: #a95353;
}


.is-adding-to-cart,
.is-added-to-cart {
    min-width: 92px;
}


.is-added-to-cart {
    background: #46704d !important;
    border-color: #46704d !important;
    color: #ffffff !important;
}


/* =====================================================
   CHECKOUT PROGRESS
===================================================== */

.checkout-progress {
    width: min(620px, 90%);
    margin: 0 auto 34px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.checkout-step {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;

    color: #9a8e92;

    font-size: 11px;
    font-weight: 700;
    text-align: center;
}


.checkout-step::before {
    content: "";

    position: absolute;
    top: 15px;
    right: 50%;
    z-index: 0;

    width: 100%;
    height: 2px;

    background: #E8D5D0;
}


.checkout-step:first-child::before {
    display: none;
}


.checkout-step-number {
    width: 32px;
    height: 32px;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #E8D5D0;
    border-radius: 50%;

    background: #ffffff;
    color: #9a8e92;
}


.checkout-step.is-active,
.checkout-step.is-complete {
    color: #443C36;
}


.checkout-step.is-active .checkout-step-number,
.checkout-step.is-complete .checkout-step-number {
    border-color: #A9B5A0;
    background: #A9B5A0;
    color: #ffffff;
}


.checkout-step.is-complete::before,
.checkout-step.is-active::before {
    background: #A9B5A0;
}


@media (max-width: 650px) {
    .cart-toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .checkout-progress {
        margin-bottom: 28px;
    }
}


/* =========================================================
   ACCESSIBILITY + MOBILE NAVIGATION
========================================================= */

:root {
    --brand-pink: #A9B5A0;
    --brand-pink-dark: #443C36;
    --focus-ring: rgba(169, 181, 160, 0.3);
}

button,
input,
select,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.visually-hidden {
    width: 1px;
    height: 1px;

    position: absolute;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;
}

.mobile-menu-toggle {
    width: 42px;
    height: 42px;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    background: #F5F0E8;

    border: 1px solid #ead8de;
    border-radius: 50%;

    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;

    display: block;

    background: #333333;

    border-radius: 10px;

    transition: 0.25s ease;
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {

    .navbar.has-mobile-menu {
        min-height: 70px;
    }

    .navbar.has-mobile-menu nav {
        display: none;

        padding: 15px 0 5px;

        border-top: 1px solid #f0e5e9;
    }

    .navbar.has-mobile-menu.mobile-menu-open nav {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;

        margin-left: auto;
    }

}

@media (max-width: 430px) {

    .navbar {
        padding: 13px 4%;

        gap: 9px;
    }

    .logo {
        font-size: 17px;
    }

    .logo .navbar-logo-image {
        width: 32px;
        height: 32px;
    }

    .logo .navbar-logo-image img {
        top: calc(50% + 8px);
        width: 138px;
        height: 138px;
    }

    .nav-actions {
        gap: 7px;
    }

    .login-btn {
        padding: 8px 12px;

        font-size: 12px;
    }

    .cart-btn,
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}
