@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Geist:wght@100..900&display=swap');

* {
    padding: 0%;
    margin: 0%;
    text-decoration: none;
    list-style-type: none;
    box-sizing: border-box;
    border: none;
}

.space-gap {
    height: 80px;
}

nav {
    height: 80px;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0px 20px;
    justify-content: space-between;
    position: fixed;
    border-bottom: 0.1px solid #09090b31;
    z-index: 10000000000;
}

.logo {
    height: 80px;
    width: 180px;
}

.logo img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.nav_second {
    font-family: "Geist", sans-serif;
    font-size: 14px;
    color: #757575;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
}
.nav_second a {
    color: #757575;
}
.nav_third {
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: "Geist", sans-serif;
}

.login_icon {
    font-family: "Geist", sans-serif;
    border-radius: 8px;
    color: #09090b;
    font-size: 12px;
    font-weight: 400;
    color: #18181B;
    background-color: #F4F4F5;
    filter: opacity(84%);
    padding: 9px 14px;
    margin: 12px;
}

/* finding location */
.nav_fourth {
    color: #757575;
    font-weight: 500;
    font-family: "Geist", sans-serif;
}

.location_selection {
    width: 280px;
    height: 48px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 0.1px solid rgb(209, 209, 209);
    position: relative;
}

.location_selection_elements {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.location_name {
    font-weight: normal;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
   
}

.location_angle_down {
    text-align: right;
    margin-right: 10px;
    margin-top: 3px;
}

/* Location Popup */
.location-popup {
    position: absolute;
    top: 60px;
    left: 0;
    width: 350px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.location-popup[style*="display: block"] {
    transform: scaleY(1);
    opacity: 1;
}

.location-search {
    display: flex;
    align-items: center;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    position: relative;
    background-color: #F4F4F5;
}

.location-search input {
    border: none;
    outline: none;
    flex: 1;
    font-family: "Geist", sans-serif;
    font-size: 14px;
    color: #18181B;
    background-color: transparent;
}

.search-icon {
    margin-right: 8px;
    color: #757575;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #6b48ff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    font-family: "Geist", sans-serif;
    font-size: 12px;
    color: #ff4444;
    margin-bottom: 10px;
    text-align: center;
}

.current-location-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: none;
    background: #f4f4f5;
    font-family: "Geist", sans-serif;
    font-size: 14px;
    color: #6b48ff;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.current-location-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

.location-icon {
    margin-right: 8px;
}

.suggestions {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #F4F4F5;
    border-radius: 8px;
}

.suggestion-icon {
    margin-right: 10px;
    color: #757575;
}

.suggestion-details p {
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #18181B;
}

.suggestion-details span {
    font-family: "Geist", sans-serif;
    font-size: 12px;
    color: #757575;
}

.recent-locations h4 {
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #18181B;
    margin-bottom: 8px;
}

.recent-locations > div {
    max-height: 200px;
    overflow-y: auto;
}

.location-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

.location-item:hover {
    background-color: #f4f4f5;
    border-radius: 8px;
}

.clock-icon {
    margin-right: 10px;
    color: #757575;
}

.location-details p {
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #18181B;
}

.location-details span {
    font-family: "Geist", sans-serif;
    font-size: 12px;
    color: #757575;
}

.google-branding {
    text-align: right;
    font-family: "Geist", sans-serif;
    font-size: 12px;
    color: #757575;
    margin-top: 10px;
}

.google-branding span {
    color: #4285f4;
}

/* map animation */
.map-pin-container {
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    width: 38px;
    height: 100%;
}

.map-pin-svg {
    width: 19px;
    height: 19px;
}

.map-pin-path,
.map-pin-circle {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Animation keyframes */
@keyframes bounce {
    0% { transform: translateY(0); }
    60% { transform: translateY(-5px); }
    100% { transform: translateY(-3px); }
}

@keyframes circleAnimate {
    0% {
        stroke-dasharray: 18.85;
        stroke-dashoffset: 9.425;
        opacity: 0;
    }
    100% {
        stroke-dasharray: 18.85;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Animation classes */
.animate .map-pin-svg {
    animation: bounce 0.5s ease-out forwards;
}

.animate .map-pin-circle {
    animation: circleAnimate 0.5s ease-out 0.3s forwards;
}

/* Normal state */
.normal .map-pin-svg {
    transform: translateY(0);
    animation: none;
}

.normal .map-pin-circle {
    stroke-dasharray: 18.85;
    stroke-dashoffset: 0;
    opacity: 1;
    animation: none;
}

/* cart */
.cart-icon-container {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.cart-count {
    position: absolute;
    top: 1px;
    right: 2px;
    background-color: #cd1515;
    text-align: center;
    color: #fff;
    font-size: 9px;
    font-weight: 500;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    align-content: space-around;
    font-family: "Geist", sans-serif;
}

.cart-icon {
    display: block;
    transition: transform 0.2s ease-in-out;
}

.cart-icon-container:hover .cart-icon {
    animation: cartBounce 0.7s ease-in-out;
}

@keyframes cartBounce {
    0% {
      transform: scale(1) translateY(0);
    }
    30% {
      transform: scale(1.1) translateY(-5px);
    }
    60% {
      transform: scale(1.1) translateY(0);
    }
    100% {
      transform: scale(1) translateY(0);
    }
}

/* user icon */
.user-icon-container {
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon-svg {
    width: 22px;
    height: 22px;
}

.user-icon-circle {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.user-icon-path {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Animation keyframes */
@keyframes circleAnimate {
    0% {
        stroke-dashoffset: 31.4;
        stroke-dasharray: 31.4;
        transform: scale(0.5);
    }
    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 31.4;
        transform: scale(1);
    }
}

@keyframes pathAnimate {
    0% {
        stroke-dashoffset: 50;
        stroke-dasharray: 50;
        opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 50;
        opacity: 1;
    }
}

/* Animation classes */
.animate .user-icon-circle {
    animation: circleAnimate 0.4s ease-out forwards;
}

.animate .user-icon-path {
    animation: pathAnimate 0.4s ease-out 0.2s forwards;
}

/* Normal state */
.normal .user-icon-circle {
    stroke-dasharray: 31.4;
    stroke-dashoffset: 0;
    transform: scale(1);
    animation: none;
}

.normal .user-icon-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 0;
    opacity: 1;
    animation: none;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff;
    border: 0.1px solid #09090b31;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 150px;
    z-index: 1000;
    overflow: hidden;
    transform-origin: top right;
    transform: scaleY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.user-dropdown[style*="display: block"] {
    transform: scaleY(1);
    opacity: 1;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #18181B;
    font-family: "Geist", sans-serif;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #F4F4F5;
}

/* Account Page */
.account-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: "Geist", sans-serif;
}

.account-container h1 {
    font-size: 24px;
    color: #18181B;
    margin-bottom: 20px;
    text-align: center;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #757575;
    font-weight: 500;
}

.form-group input {
    padding: 10px;
    border: 0.1px solid #d1d1d1;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Geist", sans-serif;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #18181B;
}

.form-group input:disabled {
    background-color: #F4F4F5;
    color: #757575;
}

.save-btn {
    padding: 10px;
    background-color: #18181B;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Geist", sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.save-btn:hover {
    background-color: #333;
    transform: scale(1.02);
}

.save-btn:active {
    transform: scale(0.98);
}

/* Mobile/Tablet Header */
.mobile-header {
    display: none;
    height: 60px;
    width: 100%;
    background: #fff;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    position: fixed;
    top: 0;
    border-bottom: 0.1px solid #09090b31;
    font-family: "Geist", sans-serif;
    z-index: 10000000001;
}

.mobile-header-left {
    flex: 1;
}

.mobile-header-right {
    display: flex;
    align-items: center;
}

.mobile-header .location_selection {
    width: 200px;
    height: 40px;
    border: none;
}

.mobile-header .location-popup {
    width: 100%;
    max-width: 350px;
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* nav responsive */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    nav {
        position: fixed;
        bottom: 0;
        padding: 10px 10px;
        height: 60px;
        justify-content: space-around;
        border-top: 0.1px solid #09090b31;
    }
    .login_icon {
        margin: 0;
    }
    .nav_second {
        gap: 20px;
        font-size: 12px;
        margin-right: 25px;
    }
    
    .logo {
       width: 100px;
       height: 60px;
       margin-right: 25px;
    }
    .nav_fourth {
        display: none;
    }
    .nav_third .cart-icon-container {
        display: none;
    }

    .mobile-header .location_selection {
        width: 100%;
    }
    .location_name {
        width: 30%;
    }
}

@media (max-width: 458px) {
    nav {
        position: fixed;
        bottom: 0;
        padding: 10px 10px;
        height: 60px;
        justify-content: space-around;
        border-top: 0.1px solid #09090b31;
    }
    .login_icon {
        margin: 0;
    }
    .nav_second {
        gap: 20px;
        font-size: 12px;
        margin-right: 25px;
    }
    .mobile-header-right .cart-icon-container {
        display: block;
    }
    .logo {
       width: 80px;
       height: 60px;
       margin-right: 25px;
    }
    .space-gap {
        height: 60px;
    }
    .mobile-header .location_selection {
        width: 100%;
    }
    .location_name {
        width: 45%;
    }
}

/* Service Unavailable Page */
.service-unavailable-container {
    max-width: 600px;
    margin: 100px auto;
    padding: 20px;
    text-align: center;
}

.service-unavailable-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.unavailable-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.service-unavailable-content:hover .unavailable-icon {
    transform: scale(1.1);
}

.service-unavailable-content h2 {
    font-family: "Geist", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #18181B;
    margin-bottom: 16px;
}

.service-unavailable-content p {
    font-family: "Geist", sans-serif;
    font-size: 16px;
    color: #757575;
    margin-bottom: 20px;
}

.service-unavailable-content blockquote {
    font-family: "Geist", sans-serif;
    font-style: italic;
    font-size: 14px;
    color: #6b48ff;
    margin: 20px 0;
    padding: 10px 20px;
    border-left: 4px solid #6b48ff;
    background-color: #f4f4f5;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .service-unavailable-container {
        margin: 80px auto;
        padding: 15px;
    }

    .service-unavailable-content {
        padding: 20px;
    }

    .service-unavailable-content h2 {
        font-size: 20px;
    }

    .service-unavailable-content p {
        font-size: 14px;
    }

    .service-unavailable-content blockquote {
        font-size: 12px;
    }
}

@media (max-width: 458px) {
    .service-unavailable-container {
        margin: 60px auto;
    }

    .service-unavailable-content h2 {
        font-size: 18px;
    }

    .service-unavailable-content p {
        font-size: 12px;
    }

    .service-unavailable-content blockquote {
        font-size: 10px;
    }
}