﻿* {
    box-sizing: border-box;
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    background: #f4f5f7;
    color: #111827;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.customer-page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 16px 110px 16px;
}

/* 상단 */
.app-header {
    margin-bottom: 12px;
}

.app-header-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.store-title-wrap {
    display: flex;
    flex-direction: column;
}

.store-title {
    font-size: 28px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.7px;
}

.store-sub {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.search-area {
    background: #ffffff;
    border-radius: 999px;
    min-height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}

.search-icon {
    font-size: 24px;
    color: #9ca3af;
}

.top-search-input {
    flex: 1;
    height: 44px;
    border: none;
    outline: none;
    font-size: 18px;
    background: transparent;
    color: #111827;
}

    .top-search-input::placeholder {
        color: #9ca3af;
    }

/* 아이콘 카테고리 */
.icon-category-section {
    margin-bottom: 16px;
}

.icon-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.icon-category-item {
    text-align: center;
}

.icon-circle {
    width: 62px;
    height: 62px;
    margin: 0 auto 8px auto;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.icon-label {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
}

/* 메인 배너 */
.main-banner-section {
    margin-bottom: 16px;
}

.main-banner-slider {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 22px;
    background: #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.main-banner-slide {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
}

    .main-banner-slide.active {
        display: block;
    }

.main-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-banner-indicator {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.main-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transition: all 0.2s ease;
}

    .main-banner-dot.active {
        width: 20px;
        border-radius: 999px;
        background: #ffffff;
    }

/* 띠 배너 */
.promo-strip-section {
    margin-bottom: 18px;
}

.promo-strip {
    background: #0b3b75;
    border-radius: 22px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: #ffffff;
}

.promo-strip-left {
    display: flex;
    flex-direction: column;
}

.promo-strip-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.promo-strip-text {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.4;
}

.promo-strip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 42px;
    border-radius: 12px;
    background: #ffffff;
    color: #0b3b75;
    font-weight: 900;
    font-size: 14px;
}

/* 섹션 공통 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

    .section-header h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 900;
    }

/* 카테고리 버튼 */
.category-section {
    margin-bottom: 18px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-btn {
    border: none;
    background: #ffffff;
    height: 42px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #374151;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    cursor: pointer;
}

    .category-btn.active {
        background: #ff7a12;
        color: #ffffff;
    }

/* 메뉴 */
.menu-section {
    margin-bottom: 22px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
}

.menu-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.menu-thumb-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.menu-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-content {
    padding: 16px;
}

.menu-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .menu-title-row h4 {
        margin: 0;
        font-size: 22px;
        font-weight: 900;
        color: #111827;
    }

.menu-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff3e8;
    color: #ff6a00;
    font-size: 12px;
    font-weight: 800;
}

.menu-desc {
    margin: 0 0 14px 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.menu-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.menu-price {
    font-size: 20px;
    color: #111827;
    font-weight: 900;
}

.cart-btn {
    min-width: 78px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #081633;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

/* 장바구니 */
.cart-preview-section {
    margin-bottom: 24px;
}

.cart-preview-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.cart-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

    .cart-preview-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 900;
    }

    .cart-preview-header span {
        color: #6b7280;
        font-size: 13px;
        font-weight: 700;
    }

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .cart-item:last-of-type {
        border-bottom: none;
    }

.cart-item-name {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 5px;
}

.cart-item-option {
    font-size: 13px;
    color: #6b7280;
}

.cart-item-right {
    text-align: right;
}

.cart-item-qty {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
}

.summary-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

    .summary-row.total {
        margin-top: 6px;
        font-size: 16px;
        font-weight: 900;
    }

.order-button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.btn {
    height: 48px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.btn-light {
    background: #f3f4f6;
    color: #111827;
}

.btn-primary {
    background: #ff6a00;
    color: #ffffff;
}

/* 하단 메뉴 */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 860px;
    margin: 0 auto;
    height: 74px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

    .bottom-nav-item.active {
        color: #111827;
    }

.bottom-nav-icon {
    font-size: 22px;
}

.bottom-nav-text {
    font-size: 12px;
}

/* 반응형 */
@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .customer-page {
        max-width: 1200px;
    }

    .bottom-nav {
        max-width: 1200px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .customer-page {
        padding: 14px 14px 100px 14px;
    }

    .store-title {
        font-size: 22px;
    }

    .section-header h3 {
        font-size: 20px;
    }

    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-category-grid {
        gap: 8px;
    }

    .icon-circle {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .icon-label {
        font-size: 12px;
    }

    .main-banner-slider {
        height: 160px;
    }

    .promo-strip {
        padding: 16px;
    }

    .promo-strip-text {
        font-size: 16px;
    }

    .menu-thumb-image-wrap {
        height: 200px;
    }

    .menu-title-row h4 {
        font-size: 19px;
    }

    .top-search-input {
        font-size: 16px;
    }
}

.cart-btn-link {
    min-width: 78px;
    height: 40px;
    border-radius: 12px;
    background: #081633;
    color: #ffffff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 16px;
}
