/* Header Styles */

/* Navigation Bar*/
.navbar {
  background-color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  position: relative; /* 顶部默认占位，不悬浮 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 49;
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.15s ease;
  will-change: transform; 
}

/* 占位符：仅固定状态时生效，放在 navbar 后面 */
.navbar-placeholder {
  display: none;
  height: 5rem; /* 严格匹配 navbar 高度（你的是 5rem） */
}
.navbar.is-fixed + .navbar-placeholder {
  display: block;
}

/* 滚动后固定：立即贴顶，无延迟 */
.navbar.is-fixed {
  position: fixed;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 向下滚动隐藏：向上滑出 */
.navbar.is-hidden {
  transform: translateY(-100%);
}

/* 向上滚动显示：重置位移，毫秒级弹出 */
.navbar.is-show {
  transform: translateY(0);
}

.navbar-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .navbar-container {
        padding: 0;
    }
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    overflow: hidden;
    flex: 1;
}

.mobile-menu-btn button {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon, .close-icon {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 24px;
    height: 24px;
}

.hidden {
    display: none !important;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 5rem);
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-100%);
}

.mobile-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 20px;
}

.mobile-menu-close {
    color: #1C1C1C;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: #BE930B;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    gap: 10px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    color: #1C1C1C;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
}

.mobile-nav-link:hover {
    color: #BE930B;
}

.mobile-nav-arrow {
    color: #1C1C1C;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.mobile-nav-arrow:hover {
    color: #BE930B;
}

/* Mobile Submenu */
.mobile-submenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 51;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(-100%);
}

.mobile-submenu.visible {
    opacity: 1;
    visibility: visible;
    width: 100%;
    transform: translateX(0);
}

.mobile-menu-back {
    color: #1C1C1C;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.mobile-menu-back:hover {
    color: #BE930B;
}

.mobile-submenu-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1C1C1C;
    text-align: center;
}

/* Mobile E-Bike Submenu Styles */
.mobile-ebike-content {
    padding: 10px 20px;
    height: calc(100vh - 110px);
    overflow-y: auto;
}

.mobile-ebike-section {
    margin-bottom: 20px;
}

.mobile-ebike-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-section-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: #1C1C1C;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-section-toggle:hover {
    color: #BE930B;
}

.mobile-section-toggle .toggle-icon {
    transition: transform 0.2s ease;
}

.mobile-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-section-content.expanded {
    max-height: 500px;
}

.mobile-section-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.mobile-ebike-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-ebike-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1C1C1C;
    transition: transform 0.2s ease;
}

.mobile-ebike-item:hover {
    transform: translateY(-2px);
}

.mobile-ebike-image {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-ebike-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.mobile-ebike-view-all {
    margin-top: 20px;
    text-align: center;
}

.mobile-view-all-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #BE930B;
    border-radius: 20px;
    color: #BE930B;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-view-all-btn:hover {
    background-color: #BE930B;
    color: white;
}

/* Mobile Accessories Submenu Styles */
.mobile-accessories-content {
    padding: 10px 20px;
    height: calc(100vh - 110px);
    overflow-y: auto;
}

.mobile-accessories-category-header {
    font-size: 16px;
    font-weight: 600;
    color: #1C1C1C;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-accessories-category-header .mobile-section-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: #1C1C1C;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-accessories-category-header .mobile-section-toggle:hover {
    color: #BE930B;
}

.mobile-accessories-category-header .mobile-section-toggle .toggle-icon {
    transition: transform 0.2s ease;
}

.mobile-accessories-category-header .mobile-section-toggle .toggle-icon {
    transform: rotate(180deg);
}

.mobile-accessories-category-header .mobile-section-toggle.active .toggle-icon {
    transform: rotate(0deg);
}

.mobile-accessories-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-accessories-category-content.expanded {
    max-height: 500px;
}

.mobile-accessories-subcategory-item {
    font-size: 16px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #1C1C1C;
    text-decoration: none;
}

.mobile-accessories-view-all {
    margin-top: 20px;
    text-align: center;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }
    .mobile-submenu {
        display: none;
    }
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 2rem;
}

/* Navigation Links */
.nav-links {
    display: none;
    height: 100%;
    align-items: center;
    gap: 2rem;
    font-size: 16px;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    height: 100%;
    color: #1C1C1C;
    font-size: 16px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #BE930B;
}

.nav-link:hover::after,
.nav-link:active::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-end;
}

@media (min-width: 1024px) {
    .social-icons {
        gap: 24px;
        flex: none;
    }
}

/* Search Container */
.search-container {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    z-index: 120;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 220px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

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

.search-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
}

.search-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #1C1C1C;
    text-transform: uppercase;
}

.clear-recent-btn {
    font-size: 12px;
    color: #BE930B;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.clear-recent-btn:hover {
    background-color: #f5f0e6;
}

.search-dropdown-list {
    padding: 4px 0;
}

.search-dropdown-item {
    display: block;
    padding: 6px 16px;
    font-size: 14px;
    color: #1C1C1C;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.search-dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 8px 0;
}

.search-bar-form {
    display: flex;
    align-items: center;
    background-color: #F5F5F5;
    border-radius: 20px;
    padding: 4px;
    overflow: hidden;
    width: 220px;
    flex-shrink: 0;
}

.search-bar-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 12px;
    min-width: 0;
}

.search-bar-icon {
    margin-right: 8px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-bar-icon:hover {
    transform: scale(1.1);
}

.search-bar-icon:hover path {
    stroke: #BE930B;
}

.search-bar-input {
    flex: 1;
    background: transparent !important;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 8px 8px 0;
    color: #1C1C1C !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    min-width: 0;
}

/* 👇 核心修复：干掉浏览器自动填充样式（完美适配你的灰色背景） */
.search-bar-input:-webkit-autofill,
.search-bar-input:-webkit-autofill:hover,
.search-bar-input:-webkit-autofill:focus,
.search-bar-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #F5F5F5 inset !important;
    -webkit-text-fill-color: #1C1C1C !important;
    background-color: #F5F5F5 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.search-bar-input::placeholder {
    color: #999;
}

.search-clear-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.search-clear-btn:hover {
    opacity: 0.7;
}

.search-close-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    color: #1C1C1C;
    padding: 8px 0;
    white-space: nowrap;
    transition: color 0.2s ease;
    display: none;
    flex-shrink: 0;
}

.search-close-btn:hover {
    color: #BE930B;
}

/* User Avatar */
.user-avatar-container {
    position: relative;
}

.user-avatar-icon {
    color: #666;
    transition: color 0.2s ease;
    cursor: pointer;
    position: relative;
}

.user-avatar-icon:hover {
    color: #BE930B;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    overflow: hidden;
}

.user-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background-color: #BE930B;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* User Info Dropdown */
.user-info-dropdown {
    position: absolute;
    right: -20px;
    top: 46px;
    width: 200px;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 16px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px) scaleY(0.9);
    transform-origin: top right;
}

.user-info-dropdown::before {
    content: '';
    position: absolute;
    right: 32px;
    top: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.user-info-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

.user-info-dropdown-logged-in {
    width: 400px;
}

.user-info-dropdown-logged-out {
    width: 200px;
}

.user-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Logged Out State */
.user-info-logged-out {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info-account-label {
    font-size: 12px;
    font-weight: bold;
    color: #1C1C1C;
    text-transform: uppercase;
}

.user-info-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-info-link {
    font-size: 14px;
    color: #BE930B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-info-link:hover {
    color: #a67f0a;
}

.user-info-card {
    display: flex;
    background-color: #e2c76c;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    justify-content: space-between;
    flex: 1;
}

.user-info-left {
    display: flex;
    gap: 10px;
    flex: 1;
    align-items: center;
    justify-content: flex-start;
}

.user-info-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid #f3f4f6;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    font-size: 12px;
}

@media (min-width: 768px) {
    .user-info-text {
        font-size: 14px;
    }
}

.user-info-right {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    color: white;
    font-size: 12px;
}

@media (min-width: 768px) {
    .user-info-right {
        font-size: 14px;
    }
}

.user-info-link {
    position: relative;
    transition: text-decoration 0.2s ease;
}

.user-info-link:hover {
    text-decoration: underline;
}

.user-info-link:active {
    text-decoration: underline;
}

.user-info-sections {
    display: flex;
    width: 100%;
    color: black;
    font-size: 12px;
    gap: 20px;
}

@media (min-width: 768px) {
    .user-info-sections {
        font-size: 14px;
    }
}

.user-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.user-info-section-title {
    font-weight: 400;
}

.user-logout-section {
    display: flex;
    flex: 1;
    flex-direction: row;
    border: 1px solid #BE930B;
    border-radius: 10px;
    color: #BE930B;
    font-size: 14px;
}

.user-logout {
    width: 380px;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.user-logout:hover {
    color: white;
    background-color: #BE930B;
}

/* E-Bike Dropdown */
.ebike-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px) scaleY(0.9);
    transform-origin: top;
}

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

.ebike-dropdown-content {
    display: flex;
    padding: 1.5rem;
    justify-content: space-between;
}

.ebike-dropdown-left {
    width: 16.666667%;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.ebike-dropdown-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.category-header {
    font-weight: 600;
    font-size: 16px;
    color: #1C1C1C;
    cursor: pointer;
}

.category-header.active {
    color: #BE930B;
}

.view-all-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 16px;
    color: #1C1C1C;
    transition: background-color 0.2s ease;
}

.view-all-btn:hover {
    background-color: #f9fafb;
}

.ebike-dropdown-right {
    width: 83.333333%;
    padding-left: 2.5rem;
    font-size: 16px;
}

/* Accessories Dropdown */
.accessories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px) scaleY(0.9);
    transform-origin: top;
}

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

.accessories-dropdown-content {
    display: flex;
    padding: 1.5rem;
    justify-content: space-between;
}

.accessories-dropdown-left {
    width: 16.666667%;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.accessories-categories-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.accessories-category-header {
    font-weight: 600;
    font-size: 16px;
    color: #1C1C1C;
    cursor: pointer;
}

.accessories-category-header.active {
    color: #BE930B;
}

.view-all-accessories-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 16px;
    color: #1C1C1C;
    transition: background-color 0.2s ease;
}

.view-all-accessories-btn:hover {
    background-color: #f9fafb;
}

.accessories-dropdown-right {
    width: 83.333333%;
    padding-left: 2.5rem;
    font-size: 16px;
}

/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Category Card */
.category-card {
    display: block;
    transition: transform 0.3s ease;
    transform-origin: left;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card-image {
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-card-image img {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-title {
    text-align: center;
    color: #374151;
    font-weight: 500;
}

/* Category Header */
.category-header {
    transition: all 0.3s ease;
}

.category-header:hover {
    color: #BE930B;
    transform: translateY(-2px);
}

.category-header.active {
    color: #BE930B;
    font-weight: 700;
    position: relative;
}

.category-header.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 2px;
    background: linear-gradient(135deg, #BE930B 0%, #D4A817 100%);
    border-radius: 1px;
}

/* Accessories Category Header */
.accessories-category-header:hover {
    color: #BE930B;
    transform: translateY(-2px);
}

.accessories-category-header.active {
    color: #BE930B;
    font-weight: 700;
    position: relative;
}

.accessories-category-header.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 2px;
    background: linear-gradient(135deg, #BE930B 0%, #D4A817 100%);
    border-radius: 1px;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.message.error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.message-icon {
    font-size: 1.25rem;
    font-weight: bold;
}

.message-content {
    flex: 1;
}

.message-close {
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.message-close:hover {
    opacity: 0.7;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Address Selection Modal */
.address-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.address-selection-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
}

.address-selection-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.address-selection-list {
    max-height: 15rem;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.address-option {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.address-option:hover {
    background-color: #f9fafb;
}

.address-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.address-option-name {
    font-weight: 600;
}

.address-option-address {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.address-option-city {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.address-option-phone {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.add-new-address-btn {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #BE930B;
    border-radius: 0.5rem;
    color: #BE930B;
    background-color: white;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

.add-new-address-btn:hover {
    background-color: #f5f0e6;
}

.address-selection-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.cancel-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    transition: background-color 0.2s ease;
}

.cancel-btn:hover {
    background-color: #f3f4f6;
}

.confirm-btn {
    padding: 0.5rem 1rem;
    background-color: #BE930B;
    color: white;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.confirm-btn:hover {
    background-color: #a8820a;
}

/* Address Form Modal */
.address-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.address-form-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 4xl;
    width: 100%;
}

.address-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.address-form-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

.close-address-form-btn {
    font-size: 1.5rem;
    color: #6b7280;
    transition: color 0.2s ease;
    cursor: pointer;
}

.close-address-form-btn:hover {
    color: #374151;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    color: #BE930B;
    border-color: #d1d5db;
    border-radius: 0.25rem;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: #374151;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.save-address-btn {
    background-color: #BE930B;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.save-address-btn:hover {
    background-color: #d4a612;
}

.cancel-address-form-btn {
    border: 1px solid #BE930B;
    color: #BE930B;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.cancel-address-form-btn:hover {
    background-color: #f5f0e6;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.checkout-modal-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
}

.checkout-modal-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.checkout-modal-total {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.checkout-modal-total-amount {
    font-weight: bold;
    color: #BE930B;
}

.checkout-modal-info {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.checkout-modal-address {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
}

.checkout-modal-address-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.checkout-modal-address-detail {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.checkout-modal-items {
    margin-bottom: 1rem;
}

.checkout-modal-items-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.checkout-modal-items-list {
    max-height: 10rem;
    overflow-y: auto;
    gap: 0.5rem;
}

.checkout-modal-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.checkout-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.confirm-order-btn {
    flex: 1;
    height: 2.75rem;
    background-color: #BE930B;
    color: white;
    font-weight: bold;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.confirm-order-btn:hover {
    background-color: #a8820a;
}

.cancel-checkout-btn {
    flex: 1;
    height: 2.75rem;
    background-color: #e5e7eb;
    color: #374151;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.cancel-checkout-btn:hover {
    background-color: #d1d5db;
}

/* Mobile Search Bar Styles */
.mobile-search-bar {
    display: none;
    padding: 10px 16px;
    background-color: white;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 10;
}

.mobile-search-icon {
    display: none;
}

@media (max-width: 767px) {
    .mobile-search-bar {
        display: none !important;
    }
    
    .mobile-search-container {
        max-width: 100%;
    }
    
    .mobile-search-container .search-bar-form {
        border-radius: 24px;
        padding: 6px;
    }
    
    .mobile-search-container .search-bar-input {
        font-size: 14px;
        padding: 10px 16px 10px 0;
    }
    
    .social-icons .search-container {
        display: none;
    }
    
    .mobile-search-icon {
        display: flex;
    }
}

.cursor-pointer {
    cursor: pointer;
}
