/* ===================================
   HOW TO ORDER PAGE STYLES
   Clean, Professional, Step-by-Step Design
=================================== */

/* SEO용 헤딩 태그 숨김 (검색엔진에는 보이지만 사용자에게는 숨김) */
.seo-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.how-to-order-container {
    min-height: 100vh;
    background: #ffffff;
    margin-top: 12.5rem;
}

/* Breadcrumb Navigation - 카테고리 페이지와 동일 */
.breadcrumb-container {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #6c757d;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* 반응형 - 카테고리 페이지와 동일 */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 10px 0;
        margin-bottom: 5px;
    }
    
    .breadcrumb-item a {
        font-size: 0.8rem;
    }
    .breadcrumb-item.active {
        color: #6c757d;
        font-weight: 500;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-item a {
        font-size: 0.7rem;
    }
    .breadcrumb-item.active {
        color: #6c757d;
        font-weight: 500;
        font-size: 0.7rem;
    }    
}

/* 페이지 헤더 */
.page-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(51, 65, 85, 0.9) 100%), 
                url('/images/how-to-order-images.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-subtitle {
    color: white;
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 900px;
}

.email-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

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

/* 액션 버튼 */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 0px 0 20px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn.primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.action-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.action-btn.secondary {
    background: white;
    color: #475569;
    border: 1px solid #d1d5db;
}

.action-btn.secondary:hover {
    background: #f8fafc;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* 좌측 사이드 서브메뉴 (NEW ORDER 하위 단계) */
.submenu-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
}

.submenu-item {
    border-bottom: none;
}

.submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 20px 10px 40px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.submenu-link::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    transform: translateY(-50%);
}

.submenu-link:hover {
    background: #f1f5f9;
    color: #334155;
}

.submenu-link .submenu-arrow {
    color: #b0bac6;
    font-size: 1rem;
    line-height: 1;
}

.submenu-link.active {
    color: #3b82f6;
    font-weight: 700;
}

.submenu-link.active::before {
    background: #3b82f6;
}

.submenu-link.active .submenu-arrow {
    display: none;
}

/* 탭 메뉴 (화살표형 아이콘 + 라벨 스텝퍼) */
.step-tabs {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: stretch;
    margin: 30px 0 40px 0;
    flex-wrap: nowrap;
}

.tab-btn {
    display: inline-flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 16px 18px 16px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
    border: none;
    cursor: pointer;
    /* 화살표(셰브론) 모양: 좌측 안쪽 홈, 우측 뾰족 */
    clip-path: polygon(0% 0%, calc(100% - 16px) 0%, 100% 50%, calc(100% - 16px) 100%, 0% 100%, 16px 50%);
}

/* 첫번째 항목은 좌측 홈 없이 평평하게 */
.tab-btn:first-child {
    padding-left: 20px;
    clip-path: polygon(0% 0%, calc(100% - 16px) 0%, 100% 50%, calc(100% - 16px) 100%, 0% 100%);
}

.tab-btn .tab-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.tab-btn .tab-label {
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
}

.tab-btn.active .tab-label {
    color: #ffffff;
}

.tab-btn.active:hover {
    background: #2563eb;
    color: #ffffff;
}

/* 튜토리얼 영상 (각 스텝 최상단) */
.tutorial-video {
    padding: 24px 32px 0 32px;
}

.tutorial-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ef4444;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tutorial-player {
    width: 100%;
    max-height: 480px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: block;
}

@media (max-width: 768px) {
    .tutorial-video {
        padding: 20px 20px 0 20px;
    }
}

/* 주문 프로세스 */
.order-process {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.step-header {
    background: #f8fafc;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.step-content {
    display: flex;
    gap: 24px;
    padding: 32px;
}
.step-img img{
    width: 100%;
    max-width:700px
}
.step-icon {
    flex-shrink: 0;
    color: #3b82f6;
}

.step-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
}

.step-text p {
    margin: 0 0 16px 0;
}

.step-text ul {
    margin: 0;
    padding-left: 20px;
}

.step-text li {
    margin: 0 0 8px 0;
}

.step-text li:last-child {
    margin-bottom: 0;
}

/* 체크아웃 섹션들 */
.checkout-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.checkout-section p {
    margin: 0 0 12px 0;
}

.checkout-section ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.checkout-section li {
    margin: 0 0 6px 0;
}

/* 보험 옵션 */
.insurance-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.insurance-option {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.insurance-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.insurance-option ul {
    margin: 0;
    padding-left: 16px;
}

.insurance-option li {
    margin: 0 0 6px 0;
    font-size: 0.8rem;
}

.insurance-note {
    font-weight: 500;
    color: #3b82f6;
    margin: 0;
}

/* 배송 옵션 */
.shipping-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.shipping-option {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.shipping-option h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.shipping-option p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.shipping-note {
    font-weight: 500;
    color: #3b82f6;
    margin: 0;
}

/* 결제 옵션 */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.payment-option {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.payment-option h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.payment-option p {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
}

.payment-option ul {
    margin: 8px 0;
    padding-left: 20px;
}

.payment-option li {
    margin: 0 0 4px 0;
    font-size: 0.8rem;
}

.warning {
    color: #b91c1c;
    font-weight: 600;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}

.payment-note {
    font-weight: 500;
    color: #3b82f6;
    margin: 0;
}

/* 노트 박스 */
.note-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.note-title {
    font-weight: 600;
    color: #92400e;
    margin: 0 0 12px 0;
    font-size: 0.875rem;
}

.note-box p {
    margin: 0 0 12px 0;
    color: #92400e;
    font-size: 0.8rem;
}

.note-box ul {
    margin: 0;
    padding-left: 20px;
}

.note-box li {
    margin: 0 0 6px 0;
    color: #92400e;
    font-size: 0.8rem;
}

/* 상태 경로 */
.status-path {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #475569;
    margin: 16px 0;
    display: inline-block;
}

/* 주문 타입 */
.order-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}

.order-type {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.order-type h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.order-type ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.order-type li {
    margin: 0 0 8px 0;
}

/* FAQ 박스 */
.faq-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.faq-question {
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-size: 0.875rem;
}

.faq-box p:last-child {
    margin: 0;
    font-size: 0.8rem;
}

/* Rx 옵션 */
.rx-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
}

.rx-option {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.rx-option h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.rx-option p {
    margin: 0;
    font-size: 0.8rem;
}

/* 주문 상태 타입 - 기존 스타일과 일치 */
.order-status-types {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.status-type {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.status-type h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.status-type p {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #475569;
}

.status-type p:last-child {
    margin-bottom: 0;
}

/* 취소된 주문 - 기존 스타일과 일치 */
.cancelled-orders {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.cancelled-type {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cancelled-type h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.cancelled-type p {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #475569;
}

.cancelled-type p:last-child {
    margin-bottom: 0;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .step-content {
        gap: 20px;
        padding: 28px;
    }
    
    .insurance-options,
    .shipping-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .how-to-header {
        padding: 40px 0 30px;
    }
    
    .how-to-title {
        font-size: 2rem;
    }
    
    .how-to-subtitle {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        margin: 30px 0 40px 0;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .step-tabs {
        gap: 8px;
        margin: 20px 0 30px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        flex: 0 1 auto;
        padding: 12px 24px 12px 30px;
        font-size: 0.813rem;
        clip-path: polygon(0% 0%, calc(100% - 14px) 0%, 100% 50%, calc(100% - 14px) 100%, 0% 100%, 14px 50%);
    }

    .tab-btn:first-child {
        padding-left: 20px;
        clip-path: polygon(0% 0%, calc(100% - 14px) 0%, 100% 50%, calc(100% - 14px) 100%, 0% 100%);
    }

    .tab-btn .tab-icon {
        width: 52px;
        height: 52px;
    }

    .step-content {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    
    .step-icon {
        align-self: center;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .insurance-option,
    .shipping-option,
    .payment-option {
        padding: 16px;
    }
    
    .order-type {
        padding: 20px;
    }
    
    .status-type,
    .cancelled-type {
        padding: 16px;
    }
    
    .how-to-order-container {
        margin-top: 207px;
    }
    .menu-item.detail{
        width:50% !important;
    }
    .menu-list.detail{
        overflow: hidden;
    }
    .action-buttons{
        margin:0px;
    }
    .breadcrumb-nav {
        padding: 0 20px;
    }    
}

@media (max-width: 480px) {
    .how-to-order-container {
        margin-top: 187px;
    }
    .container {
        padding: 0 16px;
    }
    
    .how-to-header {
        padding: 30px 0 20px;
    }
    
    .how-to-title {
        font-size: 1.75rem;
    }
    
    .step-header {
        padding: 20px 24px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .checkout-section {
        padding: 16px;
    }
    
    .insurance-option,
    .shipping-option,
    .payment-option {
        padding: 12px;
    }
    
    .order-type {
        padding: 16px;
    }
    
    .status-type,
    .cancelled-type {
        padding: 12px;
    }
    
    .note-box {
        padding: 16px;
    }
    .action-buttons{
        gap:10px;
    }
    .action-btn{
        max-width: 115px;;
    }
    
    .step-tabs {
        gap: 6px;
        margin: 15px 0 25px 0;
    }
    
    .tab-btn {
        padding: 10px 18px 10px 24px;
        font-size: 0.7rem;
        min-width: auto;
        flex: 0 1 auto;
        max-width: 150px;
        clip-path: polygon(0% 0%, calc(100% - 11px) 0%, 100% 50%, calc(100% - 11px) 100%, 0% 100%, 11px 50%);
    }

    .tab-btn:first-child {
        padding-left: 16px;
        clip-path: polygon(0% 0%, calc(100% - 11px) 0%, 100% 50%, calc(100% - 11px) 100%, 0% 100%);
    }

    .tab-btn .tab-icon {
        width: 44px;
        height: 44px;
    }

    .tab-btn .tab-label {
        font-size: 0.7rem;
        white-space: normal;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}
