/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden; /* 가로 스크롤 방지 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 헤더 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-nav-wrapper {
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 메인 컨텐츠 */
main {
    min-height: calc(100vh - 160px);
    padding: 2rem 0;
}

/* 로그인/회원가입 폼 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 통합 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
    vertical-align: middle;
    border: 1px solid transparent;
    white-space: nowrap;
    user-select: none;
    line-height: 1.5;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    background-color: #219a52;
    border-color: #219a52;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
    border-color: #f39c12;
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
}

.btn-secondary {
    background-color: #95a5a6;
    border-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
}

/* 상세보기 버튼 (모든 곳에서 동일하게 사용) */
.btn-outline, .btn-detail {
    background: #2c3e50 !important;
    border: 1px solid #2c3e50 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.btn-outline:hover, .btn-detail:hover {
    background: #34495e !important;
    border-color: #34495e !important;
    color: white !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* 알림 메시지 */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* 링크 스타일 */
.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 1rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 대시보드 */
.dashboard {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.dashboard h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.stat-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

/* 테이블 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 카드 레이아웃 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

/* 푸터 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    /* 헤더 반응형 */
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    /* 모바일 검색 버튼 표시 */
    .mobile-search-btn {
        display: flex !important;
        order: 1;
    }
    
    /* 로고 섹션 중앙 */
    .logo-section {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    /* 모바일 메뉴 토글 버튼 표시 */
    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }
    
    /* 데스크톱 검색 박스 숨김 */
    .search-section {
        display: none;
    }
    
    /* 네비게이션 메뉴 */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        padding: 0;
        z-index: 9999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        width: 100%;
    }
    
    /* 메뉴 활성화 시 표시 */
    .main-nav.active {
        display: block;
    }
    
    .main-nav .nav-menu {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .main-nav .nav-item {
        border-bottom: 1px solid #34495e;
    }
    
    .main-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .main-nav .nav-item a {
        display: block;
        padding: 1rem 2rem;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s;
        font-size: 1rem;
    }
    
    .main-nav .nav-item a:hover {
        background-color: #34495e;
    }
    
    .auth-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .auth-form {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .dashboard {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
}

/* 유틸리티 클래스 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.ml-1 { margin-left: 1rem; }
.mr-1 { margin-right: 1rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-1 {
    gap: 1rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* 쇼핑몰 스타일 */
.shopping-container {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.shopping-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.shopping-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #dee2e6;
}

.search-box {
    position: relative;
}

.products-section {
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f9f9f9;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
}

.product-name a:hover {
    color: #3498db;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.product-price {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
}

.unit {
    color: #666;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.quantity-selector {
    flex: 1;
}

.quantity-input {
    height: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.add-to-cart {
    white-space: nowrap;
    padding: 0.5rem 1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.5rem;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
}

.page-item.active .page-link {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    background-color: #e74c3c;
    color: white;
}

.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 404 페이지 스타일 */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.error-content {
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.error-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 반응형 쇼핑몰 스타일 */
@media (max-width: 768px) {
    .shopping-header h1 {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* 그리드 레이아웃 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 15px;
    padding-right: 15px;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* 장바구니 개수 배지 스타일 */
.cart-count {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

.cart-count:empty {
    display: none;
}

/* 장바구니 페이지 스타일 */
.cart-page {
    min-height: 80vh;
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.empty-cart-icon {
    font-size: 5rem;
    color: #bdc3c7;
    margin-bottom: 2rem;
}

.empty-cart h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

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

.item-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1rem;
}

.item-image {
    width: 80px;
    height: 80px;
    background: #ecf0f1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #bdc3c7;
}

.item-details h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.item-details p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover:not(:disabled) {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.item-price {
    text-align: right;
}

.unit-price {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: block;
    margin-bottom: 0.25rem;
}

.total-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #27ae60;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #c0392b;
}

.cart-summary {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
}

.summary-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
    border-top: 2px solid #27ae60;
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.cart-actions .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

.btn-outline:hover {
    background: #e74c3c;
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-info {
        width: 100%;
    }
    
    .item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .quantity-controls {
        order: 1;
    }
    
    .item-price {
        order: 2;
        text-align: left;
    }
    
    .remove-btn {
        order: 3;
    }
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* 애니메이션 */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.badge-light {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* 반응형 그리드 */
@media (max-width: 768px) {
    .col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .col-lg-3, .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 도매상 메인 페이지 스타일 */
.contact-bar {
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-item {
    font-weight: bold;
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}

.contact-links a:hover {
    opacity: 0.8;
}

.point-badge {
    background-color: #f39c12;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 메인 헤더 */
.main-header {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 999;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex: 0 0 auto;
}

.logo-section .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #2c3e50;
}

.logo-section .logo i {
    font-size: 2rem;
    color: #27ae60;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2c3e50;
}

.logo-sub {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.search-section {
    flex: 0 0 auto;
    margin-left: auto;
}

.search-section .search-box {
    display: flex;
    width: 100%;
    max-width: 300px;
}

.search-section input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #27ae60;
    border-right: none;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.search-btn {
    background-color: #27ae60;
    color: white;
    border: 2px solid #27ae60;
    padding: 0.75rem 1rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #219a52;
}

/* 모바일 검색 버튼 */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
    z-index: 1001;
    position: relative;
}

.mobile-search-btn:hover {
    color: #27ae60;
}

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    z-index: 10001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 검색 모달 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.search-modal.active {
    display: block;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.search-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.search-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-modal-close:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.search-modal-body {
    padding: 2rem;
}

.search-modal-box {
    display: flex;
    width: 100%;
    border: 2px solid #27ae60;
    border-radius: 25px;
    overflow: hidden;
}

.search-modal-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: white;
}

.search-modal-box input::placeholder {
    color: #999;
}

.search-modal-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.search-modal-btn:hover {
    background: #219a52;
}

/* 네비게이션 */
.main-nav {
    background-color: #2c3e50;
    padding: 0;
}

/* 데스크톱 네비게이션 메뉴 */
@media (min-width: 769px) {
    .main-nav {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background-color: #2c3e50 !important;
        opacity: 1 !important;
        z-index: auto !important;
    }
    
    .main-nav .container {
        position: static !important;
        height: auto !important;
    }
    
    .main-nav .nav-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        min-width: auto !important;
        display: flex !important;
        flex-direction: row !important;
    }
    
    .main-nav .nav-item {
        flex: 1 !important;
        border-bottom: none !important;
    }
    
    .main-nav .nav-item a {
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
}

.nav-item a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.nav-item a:hover {
    background-color: #34495e;
}

.nav-item a i {
    margin-right: 0.5rem;
}

/* 메인 슬라이더 - 풀사이즈 */
.main-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 3rem 0;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 900;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
}

.nav-btn {
    background-color: rgba(255,255,255,0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #2c3e50;
    transition: all 0.3s;
}

.nav-btn:hover {
    background-color: rgba(255,255,255,0.9);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

/* 제품 섹션 스타일 */
.new-products,
.category-products,
.main-content {
    padding: 3rem 0;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.main-content {
    background: #f9f9f9;
    padding: 2rem 0;
}

.main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 신상품은 흰색 배경 */
.new-products {
    background: white;
}

/* 카테고리별 제품들은 번갈아가며 배경색 */
.category-products:nth-of-type(odd) {
    background: #f9f9f9;
}

.category-products:nth-of-type(even) {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 400;
}

.view-more {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.view-more:hover {
    color: #219a52;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #f9f9f9;
}

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.product-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
}

.product-buttons .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}

/* btn-outline 스타일은 위에서 통일하여 정의됨 */

.product-info .add-to-cart {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.product-info .add-to-cart:hover {
    background: #219a52;
    border-color: #219a52;
    transform: translateY(-1px) scale(1.05);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .view-more {
        position: static;
        transform: none;
        display: block;
        margin-top: 1rem;
        text-align: center;
    }
    
    .product-buttons .btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .new-products,
    .category-products {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* 서비스 안내 섹션 */
.service-info {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-contact {
    font-weight: bold;
    color: #e74c3c;
}

.service-contact i {
    margin-right: 0.5rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .main-slogan h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 1 1 50%;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-nav {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-item {
        flex: 1 1 100%;
    }
    
    .nav-item a {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .main-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 2rem 0;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
} 

.new-products .container,
.category-products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
} 

/* 상품 상세페이지 스타일 */
.product-detail-container {
    background: #fff;
    min-height: 100vh;
}

/* 브레드크럼 */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #007bff;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 상품 상세 컨텐츠 */
.product-detail-content {
    padding: 2rem 0;
}

/* 상품 이미지 섹션 */
.product-image-section {
    position: sticky;
    top: 2rem;
}

.main-image {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    border: 1px solid #f9f9f9;
}

.main-image .no-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.main-image .no-image-placeholder span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6c757d;
    text-align: center;
}

.image-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image:hover .image-zoom-hint {
    opacity: 1;
}

/* 썸네일 이미지 */
.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail:hover {
    border-color: #007bff;
}

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

/* 상품 정보 섹션 */
.product-info-section {
    padding-left: 2rem;
}

.product-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

/* 가격 섹션 */
.price-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 1.1rem;
    color: #666;
}

.price-value {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: 700;
}

/* 상품 기본 정보 테이블 */
.product-basic-info {
    margin-bottom: 1.5rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.info-label {
    width: 120px;
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
}

/* 추가 정보 */
.product-extra-info {
    margin-bottom: 1.5rem;
}

.minimum-order {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.alert-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9rem;
}

/* 주문 섹션 */
.order-section {
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
}

.quantity-selection {
    margin-bottom: 1rem;
}

.quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.product-name-small {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-btn.minus {
    border-right: 1px solid #ddd;
}

.qty-btn.plus {
    border-left: 1px solid #ddd;
}

#quantity {
    width: 60px;
    height: 35px;
    border: none;
    text-align: center;
    font-weight: 500;
    background: white;
}

.item-price {
    font-weight: 600;
    color: #333;
}

/* 총 상품금액 */
.total-section {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 4px;
}

.total-label {
    font-weight: 500;
    color: #333;
}

.total-amount {
    font-size: 1.3rem;
    color: #007bff;
    font-weight: 700;
}

.total-quantity {
    font-size: 1rem;
    color: #666;
    margin-left: 0.5rem;
}

/* 액션 버튼들 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 1rem;
}

.btn-wishlist {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: auto;
}

.btn-cart, .btn-buy {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.btn-buy {
    background: #333;
    color: white;
}

.btn-buy:hover {
    background: #000;
}

.btn-cart {
    background: #007bff;
    color: white;
}

.btn-cart:hover {
    background: #0056b3;
}

.btn-wishlist {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-wishlist:hover {
    background: #f8f9fa;
}



/* 상품 정보 탭 */
.product-tabs-section {
    margin-bottom: 2rem;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    font-size: 1rem;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.tab-btn:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.tab-btn.active:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .product-info-section {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quantity-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* 탭 컨텐츠 스타일 */
.tabs-content {
    margin-top: 2rem;
}

.tab-content {
    display: none;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

/* 상품 상세 정보 탭 */
.product-detail-content {
    max-width: 100%;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.detail-description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #666;
}

.detail-features {
    list-style: none;
    padding: 0;
}

.detail-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.detail-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 상품 구매 안내 탭 */
.guide-content {
    max-width: 100%;
}

.guide-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.guide-section:last-child {
    border-bottom: none;
}

.guide-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.guide-item {
    margin-bottom: 1.5rem;
}

.guide-item p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.guide-item strong {
    color: #333;
    font-weight: 600;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    display: inline-block;
    min-width: 100px;
    color: #333;
}

/* 리뷰 및 기타 탭 */
.review-content,
.qa-content,
.return-content {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* 탭 컨텐츠 반응형 */
@media (max-width: 768px) {
    .tab-content {
        padding: 1rem;
    }
    
    .detail-images {
        gap: 0.5rem;
    }
    
    .guide-section h3 {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
    
    .info-list li strong {
        min-width: 80px;
        font-size: 0.9rem;
    }
}

/* ====== 카테고리 페이지 전용 스타일 ====== */
/* 카테고리 타이틀 */
.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 3rem 0 2rem 0;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
}

/* 서브카테고리 필터 섹션 */
.subcategory-filter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.subcategory-filter h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 버튼형 체크박스 컨테이너 */
.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* 기본 체크박스 숨기기 */
.subcategory-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 버튼형 라벨 스타일 */
.subcategory-checkbox + label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-height: 45px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* 호버 효과 */
.subcategory-checkbox + label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #4CAF50;
    color: #4CAF50;
}

/* 선택된 상태 */
.subcategory-checkbox:checked + label {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

/* 선택된 상태 호버 */
.subcategory-checkbox:checked + label:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* 애니메이션 효과 */
.subcategory-checkbox + label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.subcategory-checkbox:checked + label::before {
    left: 100%;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
        margin: 2rem 0 1.5rem 0;
    }
    
    .subcategory-filter {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .filter-checkboxes {
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .subcategory-checkbox + label {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-height: 40px;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .category-title {
        font-size: 1.75rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .subcategory-filter {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .subcategory-filter h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .filter-checkboxes {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .subcategory-checkbox + label {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
        justify-content: center;
    }
}

/* 제품 개수 표시 */
.product-count-display {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

/* 장바구니 페이지 스타일 */
.cart-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.cart-page .page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cart-page .page-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cart-page .page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 빈 장바구니 */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
}

/* 장바구니 컨텐츠 */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

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

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

.item-image {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 2rem;
    color: #bdc3c7;
}

.item-details h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.item-manufacturer,
.item-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.item-manufacturer i,
.item-category i {
    margin-right: 0.5rem;
}

.item-description {
    color: #777;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f8f9fa;
    border-color: #2c3e50;
}

.qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.item-price {
    text-align: right;
}

.unit-price {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.total-price {
    display: block;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1rem;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #c0392b;
}

/* 주문 요약 */
.cart-summary {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    border-top: 2px solid #2c3e50;
    margin-top: 1rem;
    padding-top: 1rem;
}

.cart-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-actions .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

/* btn-outline 스타일은 위에서 통일하여 정의됨 */

/* 반응형 디자인 */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-info {
        width: 100%;
    }
    
    .item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .quantity-controls {
        order: 1;
    }
    
    .item-price {
        order: 2;
        text-align: left;
    }
    
    .remove-btn {
        order: 3;
    }
    
    .cart-page .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 1rem 0;
    }
    
    .cart-items,
    .summary-card {
        padding: 1rem;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .item-details h4 {
        font-size: 1rem;
    }
    
    .cart-actions {
        gap: 0.5rem;
    }
    
    .cart-actions .btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* 도매상 카테고리 페이지 스타일 */
.no-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.no-image-placeholder span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c757d;
    text-align: center;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

.current-price {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 제품 상세페이지 스타일 */
.product-contents {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
    max-width: 98%;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.product-contents img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* 리뷰 스타일 */
.review-content {
    max-width: 100%;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.review-header .review-stats {
    margin-bottom: 0;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.review-stats {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-name {
    font-weight: 500;
    color: #333;
}

.review-stars {
    color: #ffc107;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-content p {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Q&A 스타일 */
.qa-content {
    max-width: 100%;
}

.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.qa-header h3 {
    margin: 0;
    color: #2c3e50;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qa-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.qa-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.qa-type {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.qa-title {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.qa-date {
    color: #666;
    font-size: 0.9rem;
}

.qa-answer {
    padding: 1rem 1.5rem;
    background: white;
    text-align: left;
}

.qa-answer p {
    line-height: 1.6;
    color: #555;
    margin: 0;
    text-align: left;
}

/* 교환/반품 스타일 */
.return-content {
    max-width: 100%;
}

.return-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.return-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.return-section p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

.return-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.return-section li {
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

/* 레이어 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qa-modal,
.review-modal {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e9ecef;
    color: #333;
    transform: scale(1.1);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    padding-right: 3rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.modal-body {
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
}

.modal-body h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* 모달 반응형 디자인 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .modal-title {
        font-size: 1.2rem;
        padding-right: 2rem;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* 리뷰 반응형 */
    .rating-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Q&A 반응형 */
    .qa-header,
    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .qa-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .qa-type {
        align-self: flex-start;
    }
    
    /* 교환/반품 반응형 */
    .return-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .modal-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .modal-body {
        font-size: 0.95rem;
    }
    
    /* 리뷰 반응형 */
    .review-item {
        padding: 1rem;
    }
    
    .rating-number {
        font-size: 1.5rem;
    }
    
    /* Q&A 반응형 */
    .qa-header,
    .review-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .qa-question {
        padding: 0.75rem 1rem;
    }
    
    .qa-answer {
        padding: 0.75rem 1rem;
    }
    
    /* 교환/반품 반응형 */
    .return-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .return-section h4 {
    font-size: 1rem;
}

/* 주문 페이지 스타일 */
.order-page {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.order-header {
    text-align: center;
    margin-bottom: 2rem;
}

.order-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: bold;
}

.order-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.product-summary {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.product-info {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.product-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.25rem;
}

.product-quantity {
    color: #666;
    font-size: 0.9rem;
}

.order-total {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    min-width: 250px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.total-row.final {
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.shipping-form {
    max-width: 800px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.zipcode-input {
    display: flex;
    gap: 0.5rem;
}

.zipcode-input input {
    flex: 1;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    flex: 1;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.payment-option label:hover {
    border-color: #007bff;
}

.payment-option input[type="radio"]:checked + label {
    border-color: #007bff;
    background: #f8f9ff;
}

.payment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.payment-text {
    font-weight: 500;
    color: #333;
}

.bank-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bank-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.account-info {
    margin-bottom: 1.5rem;
}

.account-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.account-row .label {
    width: 80px;
    font-weight: 500;
    color: #666;
}

.account-row .value {
    flex: 1;
    color: #333;
}

.order-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.order-actions .btn {
    min-width: 120px;
    padding: 0.75rem 2rem;
}

/* 관심상품 버튼 스타일 */
.btn-wishlist {
    background: white;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    background: #e74c3c;
    color: white;
}

.btn-wishlist i {
    margin-right: 0.5rem;
    color: #e74c3c;
}

.btn-wishlist .fas {
    color: #e74c3c;
}

.btn-wishlist .far {
    color: #e74c3c;
}

.btn-wishlist:hover i {
    color: white;
}

.btn-wishlist:hover .fas {
    color: white;
}

.btn-wishlist:hover .far {
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .product-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .order-total {
        min-width: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .order-section {
        padding: 1rem;
    }
    
    .order-header h1 {
        font-size: 1.5rem;
    }
    
    .order-section h2 {
        font-size: 1.2rem;
    }
    
    .payment-option label {
        padding: 1rem;
    }
    
    .payment-icon {
        font-size: 1.5rem;
    }
}