.front-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.front-main {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 20px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 20px;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 32px;
    text-align: center;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
}

.auth-body { padding: 28px; }

.auth-footer {
    text-align: center;
    padding: 0 28px 28px;
    font-size: 14px;
    color: var(--gray-500);
}

.auth-footer a { font-weight: 600; }

.product-detail-page { padding-top: 20px; padding-bottom: 20px; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.product-detail .product-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail .product-meta h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-detail .price-box {
    background: #fff5f5;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.product-detail .price-box .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.product-detail .price-box .price small {
    font-size: 14px;
    font-weight: 400;
}

.product-detail .meta-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.product-detail .meta-item .label {
    width: 100px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.product-detail .meta-item .value {
    color: var(--gray-800);
}

.order-create-page { padding-top: 20px; padding-bottom: 20px; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.cart-item .item-image {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

.cart-item .item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item .item-info { flex: 1; min-width: 0; }
.cart-item .item-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .item-price { font-size: 13px; color: var(--primary); font-weight: 700; }

.cart-item .item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item .item-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-300);
    border-radius: 3px;
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item .item-qty input {
    width: 36px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: 3px;
    padding: 2px;
    font-size: 12px;
}

.cart-item .item-remove {
    color: var(--gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
}

.cart-item .item-remove:hover { color: var(--danger); }

.order-summary {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
}

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.order-summary .summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--gray-200);
    padding-top: 12px;
    margin-top: 6px;
}

.order-list-page { padding-top: 20px; padding-bottom: 20px; }

.order-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
    border-left: 4px solid var(--gray-300);
}

.order-card.status-0 {
    border-left-color: #f59e0b;
}

.order-card.status-0 .order-header {
    background: #fffbeb;
}

.order-card.status-1 {
    border-left-color: #3b82f6;
}

.order-card.status-1 .order-header {
    background: #eff6ff;
}

.order-card.status-2 {
    border-left-color: #10b981;
}

.order-card.status-2 .order-header {
    background: #ecfdf5;
}

.order-card.status-3 {
    border-left-color: #6b7280;
}

.order-card.status-3 .order-header {
    background: #f9fafb;
}

.order-card.status-4 {
    border-left-color: #ef4444;
}

.order-card.status-4 .order-header {
    background: #f3f4f6;
}

.order-card.cancelled-bar {
    opacity: 0.6;
    border-left-color: #9ca3af;
}

.order-card.cancelled-bar .order-header {
    padding: 8px 18px;
    border-bottom: none;
}

.order-card.cancelled-bar .order-no-row span {
    color: var(--gray-500);
    font-weight: 500;
}

.order-card.folded .order-body,
.order-card.folded .order-receiver {
    display: none;
}

.order-card.expanded .order-body,
.order-card.expanded .order-receiver {
    display: block;
}

.fold-toggle {
    font-size: 10px;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 4px;
}

.order-card .order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.order-card .order-body { padding: 14px 18px; }

.order-card .order-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
}

.order-card .order-item .item-name {
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

.order-card .order-item .item-specs {
    color: var(--gray-500);
    font-size: 12px;
    white-space: nowrap;
}

.order-card .order-item .item-qty {
    color: var(--gray-600);
    margin-left: auto;
    white-space: nowrap;
}

.order-card .order-receiver {
    padding: 10px 18px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-600);
}

.order-card .order-receiver .receiver-row {
    display: flex;
    gap: 4px;
    padding: 2px 0;
}

.order-card .order-receiver .receiver-label {
    color: var(--gray-500);
    flex-shrink: 0;
}

.order-card .order-receiver .receiver-row span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-card .order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid var(--gray-200);
}

.order-card .order-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-card .order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.order-no-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-shipping-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 400;
}

.order-shipping-inline .tracking-no {
    color: var(--primary);
    font-weight: 600;
    font-family: monospace;
}

.order-shipping-inline .copy-btn {
    padding: 1px 8px;
    font-size: 11px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: var(--white);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
}

.order-shipping-inline .copy-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.order-shipping-inline .copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.account-page { padding-top: 20px; padding-bottom: 20px; }

.account-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.account-summary .summary-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.account-summary .summary-card .label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.account-summary .summary-card .value {
    font-size: 24px;
    font-weight: 800;
}

.aftercare-page { padding-top: 20px; padding-bottom: 20px; }

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .product-detail .product-img { aspect-ratio: 1; }
    .product-detail .product-meta h1 { font-size: 18px; }
    .product-detail .price-box .price { font-size: 26px; }

    .auth-box { max-width: 100%; }
    .auth-header { padding: 24px; }
    .auth-body { padding: 20px; }

    .account-summary { grid-template-columns: 1fr; gap: 10px; }
    .account-summary .summary-card .value { font-size: 20px; }
}

.paste-area { margin-bottom: 20px; background: #f8f9ff; border: 2px dashed #c5cae9; border-radius: 10px; padding: 16px; }
.paste-area .paste-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; color: #3949ab; }
.paste-area textarea { border-color: #c5cae9; background: #fff; }

.spec-select-area { margin-bottom: 16px; }
.spec-group { margin-bottom: 12px; }
.spec-group .spec-label { font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.spec-group .spec-values { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-btn { padding: 6px 16px; border: 2px solid var(--gray-300); border-radius: 6px; background: var(--white); cursor: pointer; font-size: 13px; transition: all 0.2s; }
.spec-btn:hover { border-color: var(--primary); color: var(--primary); }
.spec-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.spec-btn.disabled { opacity: 0.4; cursor: not-allowed; }
