/* ============================================================
   삼복샵 (SAMBOK SHOP) - 프리미엄 웰니스 & 라이프스타일 셀렉트샵
   디자인 시스템 & 메인 스타일시트
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Noto+Serif+KR:wght@300;400;500;600;700&family=Pretendard:wght@300;400;500;600;700&display=swap');

/* CSS Variables / 디자인 토큰 */
:root {
    --primary-dark: #07261C;
    --primary-color: #0E4333;
    --primary-light: #185A46;
    --primary-subtle: #EEF4F1;

    --gold-primary: #C5A059;
    --gold-light: #E0C17B;
    --gold-dark: #987838;
    --gold-subtle: #FAF6ED;
    --gold-gradient: linear-gradient(135deg, #DFC07B 0%, #C5A059 50%, #9D7B3A 100%);
    --gold-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);

    --bg-body: #FAF8F5;
    --bg-surface: #FFFFFF;
    --bg-muted: #F3EFEA;
    --bg-dark: #072017;
    --bg-darker: #04140E;

    --text-primary: #15221E;
    --text-secondary: #485652;
    --text-muted: #7E8D88;
    --text-light: #FFFFFF;
    --text-dark: #15221E;
    --bg-light: #F7F4EF;

    --border-color: #E6E0D6;
    --border-subtle: #EFEBE4;
    --border-gold: rgba(197, 160, 89, 0.4);

    --success-color: #1F7A4D;
    --danger-color: #B83A38;

    --shadow-sm: 0 2px 8px rgba(14, 67, 51, 0.04);
    --shadow-md: 0 6px 20px rgba(14, 67, 51, 0.08);
    --shadow-lg: 0 14px 35px rgba(14, 67, 51, 0.12);
    --shadow-gold: 0 4px 15px rgba(197, 160, 89, 0.25);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --font-en: 'Cinzel', serif;
}

/* 전역 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   상단 탑 노티스 바 (Top Bar)
   ============================================================ */
.top-notice-bar {
    background: var(--primary-dark);
    color: #E2DBD0;
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    letter-spacing: 0.3px;
}

.top-notice-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-notice-text {
    margin: 0 auto;
}

.top-notice-text strong {
    color: var(--gold-light);
    font-weight: 600;
}

.top-notice-links {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.top-notice-links a {
    color: #C2BBB0;
    transition: color 0.2s;
}

.top-notice-links a:hover {
    color: var(--gold-light);
}

/* ============================================================
   헤더 (Header)
   ============================================================ */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0 18px;
}

/* 로고 스타일링 */
.logo a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-symbol {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(14, 67, 51, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-symbol::after {
    content: '';
    position: absolute;
    inset: 1px;
    border: 1px dashed rgba(223, 190, 118, 0.4);
    border-radius: 6px;
    pointer-events: none;
}

.logo-text-group h1 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
    line-height: 1.15;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text-group h1 .en-sub {
    font-family: var(--font-en);
    font-size: 13px;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-text-group p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* 헤더 액션 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-buttons, .user-menu {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-text:hover {
    color: var(--primary-color);
    background: var(--primary-subtle);
}

.user-menu span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
}

.cart-icon:hover {
    background: var(--primary-color);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #FFFFFF;
}

/* ============================================================
   네비게이션 (Navigation)
   ============================================================ */
.nav {
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.nav li a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav li a:hover,
.nav li a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: var(--gold-subtle);
}

.nav li a.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--primary-color);
}

/* ============================================================
   메인 히어로 배너 (Hero Banner)
   ============================================================ */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(7, 38, 28, 0.94) 0%, rgba(14, 67, 51, 0.88) 100%),
                url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
    color: #FFFFFF;
    padding: 90px 0 100px;
    text-align: center;
    overflow: hidden;
    border-bottom: 2px solid var(--gold-primary);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(197, 160, 89, 0.18);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius-full);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-content h2 {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 18px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h2 span {
    color: var(--gold-light);
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 18px;
    color: #D2DDD8;
    max-width: 680px;
    margin: 0 auto 36px;
    font-weight: 300;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-hero-primary {
    background: var(--gold-gradient);
    color: #07261C;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(197, 160, 89, 0.4);
    filter: brightness(1.05);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #FFFFFF;
}

/* ============================================================
   삼복(三福) 3대 철학 & 특징 섹션 (Features)
   ============================================================ */
.features {
    background: #FFFFFF;
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

.feature-item:hover .feature-icon-box {
    background: var(--primary-color);
    color: var(--gold-light);
}

.feature-item h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ============================================================
   섹션 공통 타이틀 (Section Header)
   ============================================================ */
.section-header-wrap {
    text-align: center;
    margin-bottom: 45px;
}

.section-sub-title {
    font-family: var(--font-en);
    font-size: 13px;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: var(--gold-primary);
}

.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 14px;
}

/* ============================================================
   인기 카테고리 (Product Categories)
   ============================================================ */
.product-categories {
    padding: 70px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px 18px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

.category-card:hover::before {
    background: var(--gold-gradient);
}

.category-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.category-card:hover .category-image {
    transform: scale(1.08);
    border-color: var(--gold-primary);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-card h3 i {
    color: var(--gold-primary);
    font-size: 15px;
}

.category-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================================
   상품 그리드 & 프리미엄 상품 카드 (Product Cards)
   ============================================================ */
.featured-products {
    padding: 70px 0 90px;
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 260px;
    background: var(--bg-muted);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-badges-top {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-signature {
    background: var(--gold-gradient);
    color: #07261C;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.badge-free-deli {
    background: var(--primary-color);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.product-category-tag {
    font-size: 12px;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gold-primary);
}

.product-rating .rating-num {
    font-weight: 700;
    color: var(--text-primary);
}

.product-rating .rating-count {
    color: var(--text-muted);
    font-size: 11px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    transition: color 0.2s;
}

.product-card:hover .product-name {
    color: var(--primary-color);
}

.product-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-box {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--border-subtle);
}

.product-price-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.product-discount {
    color: var(--danger-color);
    font-size: 14px;
    font-weight: 700;
}

.product-orig-price {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: line-through;
}

.product-price-main {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-price-main .price-unit {
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 500;
    margin-left: 2px;
}

.product-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.product-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-badge i {
    font-size: 10px;
    color: var(--gold-dark);
}

.product-card-footer {
    display: flex;
    padding: 12px 20px 16px;
    gap: 8px;
    background: #FFFFFF;
}

.btn-card-cart {
    flex: 1;
    background: var(--primary-subtle);
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
    padding: 9px 0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card-cart:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.btn-card-detail {
    flex: 1;
    background: var(--bg-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 9px 0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.btn-card-detail:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ============================================================
   상품 목록 페이지 툴바 & 정렬 (Products Page)
   ============================================================ */
.products-header-wrap {
    background: var(--primary-dark);
    color: #FFFFFF;
    padding: 45px 0 50px;
    border-bottom: 2px solid var(--gold-primary);
    text-align: center;
}

.products-header-wrap h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.products-header-wrap p {
    font-size: 15px;
    color: #C6D4CF;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.products-count {
    font-size: 15px;
    color: var(--text-secondary);
}

.products-count strong {
    color: var(--primary-color);
}

.sort-select-box select {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: #FFFFFF;
    outline: none;
    cursor: pointer;
}

/* ============================================================
   푸터 (Footer) - (주) 삼복그룹
   ============================================================ */
.footer {
    background: var(--bg-dark);
    color: #C2CBC8;
    border-top: 3px solid var(--gold-primary);
    padding: 60px 0 35px;
    font-size: 14px;
    line-height: 1.7;
}

.footer a {
    color: #D6DFDC;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--gold-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3 i {
    color: var(--gold-light);
}

.footer-section .phone-number {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section .phone-number i {
    font-size: 22px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 13px;
    color: #8C9E98;
}

.company-info strong {
    color: #E2ECE8;
    font-size: 15px;
}

.company-info p {
    margin-bottom: 4px;
}

.footer-copyright {
    text-align: right;
    font-size: 12px;
    color: #6C7D77;
}

/* ============================================================
   반응형 미디어 쿼리 (Responsive Mobile Optimization)
   ============================================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-copyright {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Top Notice Bar */
    .top-notice-bar {
        padding: 6px 0;
        overflow: hidden;
    }
    .top-notice-bar .container {
        justify-content: center;
    }
    .top-notice-links {
        display: none !important;
    }
    .top-notice-text {
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        padding: 0 4px;
    }

    /* Header */
    .header {
        width: 100%;
        max-width: 100vw;
        overflow-x: clip;
        box-sizing: border-box;
    }
    .header-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 8px;
        text-align: left;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 6px;
    }
    .logo {
        flex-shrink: 0;
        min-width: 0;
    }
    .logo a {
        gap: 6px;
    }
    .logo-symbol {
        width: 34px;
        height: 34px;
        font-size: 17px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .logo-text-group {
        min-width: 0;
    }
    .logo-text-group h1 {
        font-size: 17px;
        white-space: nowrap;
        margin: 0;
    }
    .logo-text-group h1 .en-sub {
        display: none !important;
    }
    .logo-text-group p {
        display: none !important;
    }
    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        min-width: 0;
    }
    .auth-buttons {
        gap: 4px;
        display: flex;
        align-items: center;
    }
    .auth-buttons a[href="register.html"] {
        display: none !important;
    }
    .auth-buttons .btn-text {
        padding: 4px 8px;
        font-size: 11.5px;
        white-space: nowrap;
    }
    .user-menu {
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }
    .user-menu #userName {
        font-size: 11px;
        padding: 2px 6px;
        max-width: 65px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        border-radius: 4px;
    }
    .user-menu a[href="mypage.html"] {
        padding: 4px 6px;
        font-size: 11.5px;
        white-space: nowrap;
        color: var(--text-secondary);
        background: var(--bg-muted);
        border-radius: 4px;
    }
    .user-menu a[onclick*="logout"] {
        display: none !important;
    }
    .cart-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
        flex-shrink: 0;
        margin-left: 2px;
    }
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    /* Navigation - Horizontal App-style Carousel Bar */
    .nav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 6px 0 8px;
        border-top: 1px solid var(--border-subtle);
        box-sizing: border-box;
    }
    .nav::-webkit-scrollbar {
        display: none;
    }
    .nav ul {
        display: inline-flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        padding: 0;
        width: max-content;
        box-sizing: border-box;
    }
    .nav li a {
        white-space: nowrap;
        padding: 5px 11px;
        font-size: 12px;
        font-weight: 500;
        border-radius: 20px;
        background: var(--bg-muted);
        color: var(--text-secondary);
        display: inline-block;
    }
    .nav li a:hover,
    .nav li a.active {
        background: var(--primary-color);
        color: #FFFFFF;
    }
    .nav li a.active::after {
        display: none !important;
    }

    /* Hero Banner */
    .hero-banner {
        padding: 44px 16px 48px;
    }
    .hero-badge {
        font-size: 11px;
        padding: 4px 12px;
        letter-spacing: 0.8px;
        margin-bottom: 14px;
    }
    .hero-content h2 {
        font-size: clamp(20px, 5.2vw, 26px);
        line-height: 1.35;
        margin-bottom: 12px;
        word-break: keep-all;
    }
    .hero-content p {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 22px;
        word-break: keep-all;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 290px;
        margin: 0 auto;
        gap: 8px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 13.5px;
        min-height: 44px;
    }

    /* Section Headers */
    .section-header-wrap {
        margin-bottom: 24px;
    }
    .section-title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .section-sub-title {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .section-desc {
        font-size: 13px;
        word-break: keep-all;
    }

    /* Brand Features */
    .brand-features {
        padding: 40px 0;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .feature-card {
        padding: 18px 14px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 14px;
    }
    .feature-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .feature-icon-wrap i {
        font-size: 20px;
    }
    .feature-card h3 {
        font-size: 15px;
        margin-bottom: 3px;
    }
    .feature-card p {
        font-size: 12.5px;
        margin-bottom: 0;
    }

    /* Categories - 2 Columns */
    .product-categories {
        padding: 40px 0;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card {
        padding: 14px 10px;
    }
    .category-image {
        width: 72px;
        height: 72px;
        margin-bottom: 8px;
    }
    .category-card h3 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    .category-card p {
        font-size: 11px;
        line-height: 1.3;
    }

    /* Product Grid - 2 Columns (Standard Mobile E-commerce) */
    .featured-products {
        padding: 40px 0 60px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card {
        border-radius: var(--radius-sm);
    }
    .product-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .product-badges-top {
        top: 6px;
        left: 6px;
        gap: 4px;
    }
    .badge-signature,
    .badge-free-deli {
        font-size: 9.5px;
        padding: 2px 6px;
    }
    .product-info {
        padding: 10px;
    }
    .product-category-row {
        margin-bottom: 4px;
    }
    .product-category-tag {
        font-size: 10.5px;
    }
    .rating-num {
        font-size: 11px;
    }
    .rating-count {
        font-size: 10px;
    }
    .product-name {
        font-size: 12.5px;
        line-height: 1.35;
        height: 34px;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 6px;
        word-break: keep-all;
    }
    .product-description {
        display: none;
    }
    .product-price-box {
        margin-bottom: 8px;
    }
    .product-price {
        font-size: 15px;
    }
    .product-price span {
        font-size: 12px;
    }
    .product-discount {
        font-size: 11px;
    }
    .product-orig-price {
        font-size: 11px;
    }
    .btn-card-cart {
        padding: 8px 6px;
        font-size: 11.5px;
        gap: 4px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 24px;
    }
    .footer-content {
        gap: 24px;
    }
    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .footer-section p {
        font-size: 12.5px;
        word-break: keep-all;
    }
    .phone-number {
        font-size: 20px;
    }
    .company-info p {
        font-size: 12px;
        word-break: keep-all;
    }
}

@media (max-width: 380px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .product-info {
        padding: 8px;
    }
    .product-name {
        font-size: 12px;
    }
    .product-price {
        font-size: 14px;
    }
}
