/* === Dal&Byeol Mall - Mobile First === */
:root {
    --m-primary: #FBDDDD;
    --m-secondary: #1A5C5A;
    --m-accent: #D8C4B6;
    --m-light: #F5EFE7;
    --m-danger: #D50024;
    --m-white: #ffffff;
    --m-text: #333333;
    --m-text-light: #888888;
    --m-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --m-radius: 12px;
}

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

body {
    font-family: 'Inconsolata', monospace;
    background: var(--m-light);
    color: var(--m-text);
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 70px;
    -webkit-tap-highlight-color: transparent;
}

/* === Header === */
.mall-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--m-primary);
    box-shadow: var(--m-shadow);
}

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

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    background: var(--m-secondary);
    color: var(--m-white);
    font-weight: 900;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.logo-text {
    color: var(--m-text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-btn {
    color: var(--m-text);
    font-size: 18px;
    text-decoration: none;
    position: relative;
    padding: 4px;
}

.cart-badge, .fab-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--m-danger);
    color: var(--m-white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* === Search Bar === */
.search-bar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--m-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.search-bar.open {
    max-height: 60px;
}
.search-bar-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 10px;
}
.search-bar-icon {
    color: var(--m-text-light);
    font-size: 14px;
}
.search-bar-inner input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    padding: 6px 0;
}
.search-close-btn {
    background: none;
    border: none;
    color: var(--m-text-light);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

/* === Content === */
.mall-content {
    margin-top: 56px;
    padding: 0 0 20px;
    min-height: calc(100vh - 126px);
}

/* === Page Header (back + title) === */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 12px;
}

.page-header .back-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--m-white);
    border-radius: 50%;
    color: var(--m-text);
    text-decoration: none;
    font-size: 16px;
    box-shadow: var(--m-shadow);
    flex-shrink: 0;
}

.page-header .page-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--m-danger);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* === Category Tabs === */
.category-tabs {
    display: flex;
    overflow-x: auto;
    background: var(--m-white);
    border-bottom: 2px solid var(--m-accent);
    padding: 0;
    position: sticky;
    top: 56px;
    z-index: 50;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar { display: none; }

.tab-item {
    flex-shrink: 0;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--m-text-light);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-item.active {
    color: #f27f91;
    border-bottom-color: #f27f91;
}

/* === Product List === */
.product-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    background: var(--m-white);
    border-radius: var(--m-radius);
    overflow: hidden;
    box-shadow: var(--m-shadow);
    display: flex;
    flex-direction: row;
}

.product-image-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--m-accent);
    color: var(--m-text-light);
    font-size: 32px;
    width: 100%;
    height: 100%;
}

.sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--m-danger);
    color: var(--m-white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.sold-out-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    color: var(--m-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
}

.product-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.product-size { font-size: 12px; color: var(--m-text-light); }

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price { font-size: 16px; font-weight: 700; color: #555; }
.sale-price { font-size: 16px; font-weight: 700; color: var(--m-danger); }
.original-price { font-size: 13px; color: var(--m-text-light); text-decoration: line-through; }
.discount-badge {
    color: var(--m-danger);
    font-size: 15px;
    font-weight: 800;
}
.discount-badge.lg {
    font-size: 20px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* === Quantity Control === */
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--m-accent);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--m-light);
    color: var(--m-text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active { background: var(--m-accent); }

.qty-value {
    width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.qty-lg .qty-btn { width: 36px; height: 36px; font-size: 18px; }
.qty-lg .qty-value { width: 40px; font-size: 16px; }

.btn-add-cart {
    background: #f27f91;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    width: auto;
}

.btn-add-cart:active { background: var(--m-primary); }

.btn-lg {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    justify-content: center;
    border-radius: 10px;
}

/* === Detail Page === */
.detail-page { padding: 12px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--m-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-image-wrap {
    position: relative;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: var(--m-white);
    box-shadow: var(--m-shadow);
}

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.detail-info {
    background: var(--m-white);
    border-radius: var(--m-radius);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--m-shadow);
}

.detail-name { font-size: 20px; font-weight: 700; }
.detail-size { font-size: 14px; color: var(--m-text-light); margin-top: 4px; }
.detail-price-row { margin: 12px 0; display: flex; align-items: center; gap: 10px; }
.detail-price-row .price { font-size: 22px; }
.detail-price-row .sale-price { font-size: 22px; }
.detail-desc { font-size: 14px; color: #555; line-height: 1.6; margin: 12px 0; }
.detail-stock { font-size: 13px; margin-bottom: 12px; }
.in-stock { color: var(--m-secondary); font-weight: 600; }
.out-of-stock { color: var(--m-danger); font-weight: 600; }

.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* ================================ */
/* === Cart Page (Redesigned)    === */
/* ================================ */
.cart-page { padding: 0 0 100px; }

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.cart-item-card {
    background: var(--m-white);
    border-radius: var(--m-radius);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--m-shadow);
    position: relative;
}

.cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--m-accent);
    color: var(--m-text-light);
    font-size: 24px;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
}

.cart-item-body .cart-item-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-body .cart-item-price {
    font-size: 13px;
    color: var(--m-text-light);
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-sub {
    font-size: 15px;
    font-weight: 700;
    color: var(--m-primary);
}

.cart-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--m-light);
    color: var(--m-text-light);
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-remove-btn:active { background: var(--m-danger); color: var(--m-white); }

/* Cart Summary Bar (fixed bottom) */
.cart-summary-bar {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    max-width: 800px;
    margin: 0 auto;
    background: var(--m-white);
    border-top: 1px solid var(--m-accent);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 95;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.summary-details {
    flex: 1;
}

.summary-label {
    font-size: 12px;
    color: var(--m-text-light);
}

.summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--m-primary);
}

.btn-checkout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--m-primary);
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-checkout:active { background: var(--m-secondary); }

/* === Payment Modal === */
.payment-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.payment-modal-overlay.open {
    display: flex;
}
.payment-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}
.payment-modal h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #2d3436;
}
.payment-modal h3 i {
    margin-right: 6px;
    color: #f27f91;
}
.payment-name-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.payment-name-input:focus {
    border-color: #f27f91;
}
.btn-generate {
    width: 100%;
    padding: 14px;
    background: #f27f91;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
}
.btn-generate:active { opacity: 0.8; }
.btn-cancel-payment {
    width: 100%;
    padding: 12px;
    background: none;
    color: #888;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

/* === Payment Result Modal === */
.payment-result-modal { text-align: center; max-height: 80vh; overflow-y: auto; }
.result-header { margin-bottom: 12px; }
.result-header i { font-size: 48px; color: #27ae60; }
.result-header i { font-size: 48px; color: #27ae60; margin-bottom: 8px; }
.result-header h3 { margin: 0 0 16px; font-size: 20px; color: #2d3436; }
.result-code-box {
    background: #fef0f2; border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.result-code-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.result-code-value { font-size: 22px; font-weight: 700; color: #f27f91; letter-spacing: 1px; }
.result-order-detail { text-align: left; margin-bottom: 16px; }
.result-order-item {
    display: flex; justify-content: space-between; padding: 6px 0;
    font-size: 13px; color: #555; border-bottom: 1px solid #f0f0f0;
}
.result-order-item span { font-weight: 600; color: #2d3436; white-space: nowrap; margin-left: 8px; }
.result-order-total {
    display: flex; justify-content: space-between; padding: 10px 0 0;
    font-size: 15px; font-weight: 700; color: #2d3436;
}
.result-order-total span { color: #f27f91; }
.result-instruction { font-size: 14px; color: #2d3436; margin: 0 0 16px; line-height: 1.6; text-align: left; }
.btn-messenger {
    display: block; width: 100%; padding: 14px; background: #0084ff; color: #fff;
    border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
    cursor: pointer; text-align: center; text-decoration: none; margin-bottom: 8px;
}
.btn-messenger i { margin-right: 6px; }
.btn-messenger:active { opacity: 0.8; }

/* ================================ */
/* === Checkout Page (Redesigned)=== */
/* ================================ */
.checkout-page { padding: 0 0 20px; }

.section-card {
    background: var(--m-white);
    border-radius: var(--m-radius);
    margin: 0 16px 12px;
    box-shadow: var(--m-shadow);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.section-header i { margin-right: 8px; color: var(--m-secondary); }

.section-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--m-primary);
}

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

.section-card.open .section-body {
    max-height: 500px;
}

.section-title {
    padding: 14px 16px 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--m-primary);
}

.section-title i { margin-right: 6px; color: var(--m-secondary); }

.checkout-items {
    padding: 0 16px 12px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--m-light);
    font-size: 14px;
}

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

.checkout-item-name {
    flex: 1;
    color: var(--m-text);
}

.checkout-item-name small {
    color: var(--m-text-light);
    font-weight: 400;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--m-primary);
    margin-left: 12px;
}

.form-grid {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--m-text);
    margin-bottom: 4px;
}

.form-group .req { color: var(--m-danger); }
.form-group .opt { color: var(--m-text-light); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0d6cc;
    border-radius: 10px;
    font-size: 14px;
    background: var(--m-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--m-secondary);
    box-shadow: 0 0 0 3px rgba(26,92,90,0.12);
}

.checkout-bottom {
    margin: 16px;
    background: var(--m-white);
    border-radius: var(--m-radius);
    padding: 16px;
    box-shadow: var(--m-shadow);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--m-light);
}

.checkout-total-row span:last-child { color: var(--m-primary); }

.btn-place-order {
    width: 100%;
    padding: 14px;
    background: var(--m-primary);
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-place-order:active { background: var(--m-secondary); }
.btn-place-order:disabled { background: var(--m-text-light); cursor: not-allowed; }

/* ================================ */
/* === Order Complete (Redesigned)==*/
/* ================================ */
.complete-page {
    padding: 32px 16px;
    text-align: center;
}

.complete-anim {
    margin-bottom: 20px;
}

.check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--m-secondary), var(--m-primary));
    color: var(--m-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.complete-page h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--m-primary);
}

.complete-sub {
    font-size: 14px;
    color: var(--m-text-light);
    margin-bottom: 20px;
}

.order-num-card {
    display: inline-flex;
    flex-direction: column;
    background: var(--m-white);
    border-radius: 10px;
    padding: 12px 24px;
    box-shadow: var(--m-shadow);
    margin-bottom: 20px;
}

.order-num-card .label {
    font-size: 11px;
    color: var(--m-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-num-card .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--m-primary);
    letter-spacing: 1px;
}

.complete-detail-card {
    background: var(--m-white);
    border-radius: var(--m-radius);
    padding: 0;
    text-align: left;
    box-shadow: var(--m-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--m-light);
}

.detail-row:last-child { border-bottom: none; }

.detail-row.head {
    background: var(--m-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--m-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row.total {
    background: var(--m-primary);
    color: #333;
    font-weight: 700;
    font-size: 16px;
    border-bottom: none;
}

.detail-row small {
    color: var(--m-text-light);
    font-weight: 400;
}

.detail-row.total small { color: rgba(255,255,255,0.7); }

.complete-info {
    background: var(--m-white);
    border-radius: var(--m-radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--m-shadow);
    text-align: left;
}

.complete-info p {
    font-size: 13px;
    color: var(--m-text);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.complete-info i {
    color: var(--m-secondary);
    width: 20px;
    text-align: center;
}

.complete-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--m-primary);
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

.btn-primary:active { background: var(--m-secondary); }

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--m-white);
    color: var(--m-primary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid var(--m-primary);
}

.btn-secondary:active { background: var(--m-light); }

/* ================================ */
/* === My Orders (Redesigned)   === */
/* ================================ */
.orders-page { padding: 0 0 20px; }

.email-search-box {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--m-white);
    border: 1.5px solid #e0d6cc;
    border-radius: 10px;
    padding: 0 14px;
    gap: 10px;
    transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
    border-color: var(--m-secondary);
    box-shadow: 0 0 0 3px rgba(26,92,90,0.12);
}

.search-input-wrap i { color: var(--m-text-light); font-size: 16px; }

.search-input-wrap input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    background: transparent;
    outline: none;
}

.btn-search {
    width: 100%;
    padding: 12px;
    background: var(--m-primary);
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-search:active { background: var(--m-secondary); }

.orders-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card {
    background: var(--m-white);
    border-radius: var(--m-radius);
    overflow: hidden;
    box-shadow: var(--m-shadow);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--m-light);
    border-bottom: 1px solid #e8e0d8;
}

.order-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-meta .order-no {
    font-weight: 700;
    font-size: 13px;
    color: var(--m-primary);
}

.order-meta .order-date {
    font-size: 12px;
    color: var(--m-text-light);
}

.order-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-pending { background: #FFF3CD; color: #856404; }
.status-confirmed { background: #D4EDDA; color: #155724; }
.status-shipped { background: #CCE5FF; color: #004085; }
.status-delivered { background: #D1ECF1; color: #0C5460; }
.status-cancelled { background: #F8D7DA; color: #721C24; }

.order-card-body {
    padding: 10px 14px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.order-item-row .item-name { color: var(--m-text); }
.order-item-row .item-detail { color: var(--m-text-light); font-weight: 500; }

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid var(--m-light);
}

.items-count { font-size: 12px; color: var(--m-text-light); }
.order-total { font-size: 16px; font-weight: 700; color: var(--m-primary); }

/* === Bottom Nav === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--m-white);
    border-top: 1px solid var(--m-accent);
    display: flex;
    z-index: 100;
    max-width: 800px;
    margin: 0 auto;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: var(--m-text-light);
    font-size: 10px;
    gap: 2px;
    transition: color 0.2s;
}

.bottom-nav-item i { font-size: 18px; }
.bottom-nav-item.active { color: #c96b6b; }

/* === FAB === */
.fab-cart {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 52px;
    height: 52px;
    background: var(--m-primary);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 90;
    transition: transform 0.2s;
}

.fab-cart:active { transform: scale(0.9); }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--m-text-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--m-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--m-shadow);
}

.empty-icon i { font-size: 32px; color: var(--m-accent); }

.empty-state h3 {
    font-size: 16px;
    color: var(--m-text);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 14px;
    color: var(--m-text-light);
    margin-bottom: 16px;
}

/* === Toast === */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--m-primary);
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === Slide Menu === */
.slide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    transition: opacity 0.3s;
}
.slide-overlay.open { display: block; }

.slide-menu {
    position: fixed;
    top: 0;
    left: -260px;
    bottom: 0;
    width: 260px;
    background: #fedfe4;
    z-index: 200;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.slide-menu.open { left: 0; }

.slide-menu-header {
    background: #f27f91;
    color: #fff;
    padding: 28px 20px 20px;
}
.slide-menu-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}
.slide-menu-sub {
    display: block;
    font-size: 12px;
    color: #fff;
    margin-top: 4px;
    letter-spacing: 1px;
}

.slide-menu-list {
    list-style: none;
    padding: 8px 0;
    flex: 1;
}
.slide-menu-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.slide-menu-list li a:hover,
.slide-menu-list li a:active {
    background: rgba(255,255,255,0.3);
}
.slide-menu-list li a i {
    width: 22px;
    text-align: center;
    font-size: 16px;
    color: #333;
}

.slide-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: auto;
}
.slide-menu-about-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 4px;
}
.slide-menu-about-text {
    font-size: 12px;
    color: #444;
    line-height: 1.4;
}

.hamburger-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* === Sub Pages (my purchase, shipping, notices) === */
.sub-page { padding: 16px; }

.weekly-notice {
    background: #fff8e1;
    border-left: 4px solid #ffb300;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.weekly-notice p { margin: 0; }

.order-search-box {
    margin-bottom: 20px;
}
.order-search-box .search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--m-white);
    border-radius: var(--m-radius);
    padding: 0 14px;
    box-shadow: var(--m-shadow);
    margin-bottom: 10px;
}
.order-search-box .search-input-wrap i {
    color: var(--m-text-light);
    margin-right: 10px;
}
.order-search-box .search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 14px;
    background: transparent;
}
.order-search-box .btn-search {
    width: 100%;
    padding: 12px;
    background: var(--m-primary);
    color: #333;
    border: none;
    border-radius: var(--m-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Order Result Card */
.order-result-card {
    background: var(--m-white);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    overflow: hidden;
}
.order-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.order-result-no {
    font-weight: 700;
    font-size: 15px;
    display: block;
}
.order-result-date {
    font-size: 12px;
    color: var(--m-text-light);
}
.order-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
/* Shipping Progress Tracker */
.shipping-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 12px;
}
.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.tracker-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    z-index: 1;
}
.tracker-step.active .tracker-dot {
    background: #2e7d32;
    color: white;
}
.tracker-step.current .tracker-dot {
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.25);
}
.tracker-label {
    font-size: 10px;
    color: #aaa;
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}
.tracker-step.active .tracker-label {
    color: #2e7d32;
    font-weight: 700;
}
.tracker-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    min-width: 20px;
    margin-bottom: 20px;
}
.tracker-line.active {
    background: #2e7d32;
}

.order-result-items {
    padding: 12px 16px;
}
.order-result-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.order-result-item:last-child { border-bottom: none; }
.order-result-item small { color: var(--m-text-light); }

.order-result-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--m-light);
    font-weight: 700;
    font-size: 15px;
}
.order-result-total { color: var(--m-primary); }

.order-result-info {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}
.order-result-info p {
    font-size: 13px;
    color: var(--m-text-light);
    margin-bottom: 4px;
}
.order-result-info p i {
    width: 18px;
    text-align: center;
    margin-right: 8px;
}

/* Shipping Timeline */
.shipping-timeline {
    display: flex;
    justify-content: space-between;
    padding: 20px 16px;
    position: relative;
}
.shipping-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s;
}
.timeline-step.done .timeline-dot {
    background: var(--m-secondary);
    color: var(--m-white);
}
.timeline-step.current .timeline-dot {
    background: var(--m-primary);
    color: var(--m-white);
    box-shadow: 0 0 0 4px rgba(11,46,19,0.2);
}
.timeline-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--m-text-light);
    text-align: center;
}
.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label {
    color: var(--m-primary);
}

.shipping-cancelled {
    text-align: center;
    padding: 16px;
    color: #721c24;
    background: #f8d7da;
    font-weight: 600;
    font-size: 14px;
}

/* Notice List */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.notice-card {
    background: var(--m-white);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--m-text);
    transition: transform 0.2s;
}
.notice-card:active { transform: scale(0.98); }

.notice-image-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.notice-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-body {
    padding: 14px 16px;
}
.notice-date {
    font-size: 12px;
    color: var(--m-text-light);
}
.notice-title {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0 8px;
    line-height: 1.3;
}
.notice-excerpt {
    font-size: 13px;
    color: var(--m-text-light);
    line-height: 1.5;
}
.notice-readmore {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--m-secondary);
    letter-spacing: 0.5px;
}

/* Notice Detail */
.notice-detail-card {
    background: var(--m-white);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    overflow: hidden;
}
.notice-detail-image {
    width: 100%;
    display: block;
}
.notice-detail-body {
    padding: 16px;
}
.notice-detail-title {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0 14px;
    line-height: 1.3;
}
.notice-detail-content {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
