/* Index page specific styles */

/* Hero Banner */
.index-hero {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.hero-text {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-decoration: none;
}

.hero-text:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

/* Section Heading with left border */
.section-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0;
}

.section-heading::before {
    content: '';
    display: block;
    width: 3px;
    height: 1.3em;
    background-color: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-heading .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

/* Order Card (new design) */
.order-card-new {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Top section: status badge + basic order info */
.order-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
}

.order-status-badge {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Status badge variants */
.badge-pending    { background: #888;     color: #fff; }
.badge-processing { background: #888;     color: #fff; }
.badge-shipped    { background: #2e9e4f;  color: #fff; }
.badge-delivered  { background: #555;     color: #fff; }
.badge-redelivered{ background: #555;     color: #fff; }
.badge-cancelled  { background: #c0392b;  color: #fff; }

.order-info-text {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.7;
}

.order-amount {
    color: #333;
    font-weight: 600;
}

/* お届け予定日 / 完了日 */
.delivery-date-section {
    padding: 0.6rem 1rem 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.delivery-date-label {
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 0.15rem;
}

.delivery-date-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

/* Middle section: thumbnail + details */
.order-card-middle {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #f0f0f0;
    align-items: flex-start;
}

.card-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #f5f5f5;
    overflow: hidden;
}

.thumb-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-details-text {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.8;
}

.detail-row {
    display: flex;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #333;
}

.detail-label {
    color: #888;
    flex-shrink: 0;
    min-width: 2.5em;
}

.detail-label::after {
    content: ': ';
}

/* Bottom section: action buttons */
.order-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #f0f0f0;
}

.btn-reorder {
    flex: 2;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    transition: background-color 0.2s;
}

.btn-reorder:hover {
    background: #005a8a;
    color: #fff;
    text-decoration: none;
}

.btn-detail {
    flex: 1;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.65rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s;
}

.btn-detail:hover {
    background: #f5f5f5;
    text-decoration: none;
}

/* 旧ボタンクラス（他ページで使用中） */
.btn-primary-new {
    flex: 1;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.btn-primary-new:hover {
    background-color: #005a8a;
    color: #ffffff;
}

.btn-outline-new {
    flex: 1;
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline-new:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* New order input area */
.new-order-area {
    background: #ffffff;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.new-order-area:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Empty state card */
.empty-state-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem 1rem;
    text-align: center;
}
