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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
    color: #2c2c2c;
    line-height: 1.5;
    overflow-x: hidden;
}

.top-header {
    background-color: #c0392b;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.main-header {
    background-color: #fff;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px 12px 16px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    left: 26px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: #2c2c2c;
    transition: all 0.3s ease;
}

.logo img {
    width: 40px;
    height: 40px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    right: 16px;
}

.search-btn, .cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #2c2c2c;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.cart-icon {
    width: 20px;
    height: 20px;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #D49B6A;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-header {
    padding: 16px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #e9ecef;
}

.menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c2c2c;
    padding: 8px;
}

.menu-nav {
    padding: 20px 16px;
}

.main-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 20px;
    background-color: #fff;
}

.page-title {
    padding: 0 0 40px;
    text-align: center;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    font-weight: 400;
}

.menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    text-decoration: none;
    color: #4a4a4a;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.menu-item:hover {
    color: #D49B6A;
}

.menu-icon {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.menu-title {
}

.menu-nav > .menu-item {
    font-weight: 600;
    color: #2c2c2c;
}

.menu-toggle-button {
    cursor: pointer;
    user-select: none;
}

.toggle-icon {
    border: solid #2c2c2c;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.menu-toggle-button.active .toggle-icon {
    transform: rotate(-135deg);
}

.submenu-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding-left: 20px;
}

.submenu-container.active {
    max-height: 100vh;
}

.submenu-item {
    font-weight: 400;
    color: #4a4a4a;
    border-bottom: 1px solid #f8f8f8;
}

.submenu-container .submenu-item:last-child {
    border-bottom: none;
}


.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.toast-content {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    width: calc(100vw - 40px);
    max-width: 400px;
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.toast-text {
    flex-grow: 1;
    min-width: 0;
}

.toast-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #2c2c2c;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

.homepage-products {
    margin-top: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}


.search-panel {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 16px;
}

.search-panel.active {
    max-height: 80vh;
    padding: 16px;
    overflow-y: auto;
}

.search-panel-content {
    max-width: 480px;
    margin: 0 auto;
}

#globalSearchInput {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    margin-bottom: 16px;
}

#globalSearchInput:focus {
    outline: none;
    border-color: #D49B6A;
}

.search-panel-results {
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-info span {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
}

.search-notice {
    text-align: center;
    padding: 40px;
    color: #999;
}