/* Buyer Page Styles */

.buyer-page {
    width: 100%;
    background-color: #fff;
}

/* Hero Section */
.buyer-hero {
    background: #1a3a5f;
    padding: 0;
    color: #fff;
    width: 100%;
    margin: 0;
    height: 600px;
    display: flex;
    align-items: stretch;
}

.buyer-hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.buyer-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0;
}

.buyer-hero-text {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.buyer-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
}

.buyer-hero-subtitle {
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.buyer-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #1a3a5f;
    color: #fff;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background-color: #d4a574;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #c49564;
}

.buyer-hero-image {
    flex: 1;
    max-width: 600px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    align-self: stretch;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    background: #e8e0d6;
    border-radius: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600" viewBox="0 0 600 600"><rect fill="%23e8e0d6" width="600" height="600"/><text x="50%25" y="50%25" text-anchor="middle" fill="%23999" font-size="18">Hero Image</text></svg>');
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
    display: block;
}

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

/* Features Bar */
.buyer-features {
    padding: 20px 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.buyer-features-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.buyer-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-bottom: 0px;
}

.feature-icon i {
    font-size: 35px;
    color: #1a3a5f;
}

.feature-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* Service Types Section */
.buyer-services {
    padding: 80px 0;
    background-color: #fff;
}

.buyer-services-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* PC에서는 Swiper 구조를 무시하고 원래 grid 레이아웃으로 */
@media (min-width: 769px) {
    .buyer-services-container.swiper {
        padding: 0 20px;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .buyer-services-container.swiper .swiper-wrapper {
        display: contents;
        width: 100%;
        transform: none;
        padding: 0;
    }
    
    .buyer-services-container.swiper .swiper-slide {
        width: 100%;
        height: auto;
        margin: 0;
    }
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.service-icon i {
    font-size: 36px;
    color: #1a3a5f;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.service-description {
    font-size: 15px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 30px;
}

.service-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: #fff;
	border:1px solid #000;
}

/* Artworks Section - 기존 artwork_list.css와 동일한 스타일 사용 */
.buyer-artworks {
    padding: 80px 0;
    background-color: #fff;
}

.buyer-artworks-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 작품 그리드 */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.artwork-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

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

.artwork-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.artwork-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
}

.artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.artwork-verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.artwork-info {
    padding: 0 5px;
}

.artwork-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    line-height: 1.4;
}

.artwork-artist {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.artwork-category {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

/* 뱃지 영역 */
.artwork-all-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0px;
}

.artwork-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.artwork-badge i {
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Material 뱃지 */
.artwork-badge-material {
    background-color: #f5f5f5;
    color: #1a3a5f;
    border: 1px solid #1a3a5f;
}

/* Usage 뱃지 */
.artwork-badge-usage {
    background-color: #f0e8f4;
    color: #6b3a8f;
    border: 1px solid #6b3a8f;
}

/* 생산방법 뱃지 (흰색 배경, 검은색 테두리) */
.artwork-badge-production {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.artwork-badge-production i {
    color: #000;
}

/* 배송출발지 뱃지 (빨간색 배경) */
.artwork-badge-shipping {
    background-color: #e74c3c;
    color: #fff;
    border: none;
}

.artwork-badge-shipping i {
    color: #fff;
}

/* MOQ 뱃지 */
.artwork-badge-moq {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #000;
}

.artwork-badge-moq i {
    color: #333;
}

/* 도매가 가능 뱃지 */
.artwork-badge-wholesale {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #0c5460;
}

.artwork-badge-wholesale i {
    color: #0c5460;
}

/* 가격 정보 */
.artwork-price-info {
    margin-top: 14px;
    margin-bottom: 8px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
    display: flex;
	flex-wrap:wrap;
    gap: 10px;
}

.price-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.price-currency {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: #f5f5f5;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.02em;
}

/* 해외판매경험 */
.artwork-overseas-sales {
    margin-top: 6px;
    margin-bottom: 8px;
}

.overseas-sales-badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.artwork-trade-info {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.trade-info-item {
    font-size: 12px;
    color: #666;
}

.artwork-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 더보기 버튼 */
.artwork-more-btn-wrapper {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    width: 100%;
    display: block;
}

.artwork-more-btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.artwork-more-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #f5f5f5;
    border-color: #333;
}

.pagination-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
	.buyer-hero {
		height:500px;
		background-image:url('/theme/pk/main_back3.png');
		background-size:cover;
		background-position:center;
	}
    .buyer-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        align-items: center;
    }
    
    .buyer-hero-text {
        max-width: 100%;
        padding: 40px 0;
    }
    
    .buyer-hero-image {
        display: none;
    }
    
    .buyer-features-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .buyer-feature-item {
        min-width: 0;
    }
    
    .buyer-services-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
	p br{
		display:block;
	}
    .buyer-hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }
    
    .buyer-hero-container {
        padding: 0 15px;
        height: auto;
    }
    
    .buyer-hero-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        height: auto;
        padding: 20px 0;
    }
    
    .buyer-hero-text {
        max-width: 100%;
        padding: 0;
        text-align: center;
        order: 1;
    }
    
    .buyer-hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .buyer-hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .buyer-hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .buyer-hero-image {
        display: none;
    }
    
    .hero-image-placeholder {
        display: none;
    }
    
    .buyer-features {
        padding: 20px 0;
    }
    
    /* Features 2행 2열 (모바일) */
    .buyer-features-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .buyer-feature-item {
        min-width: 0;
    }
    
    .buyer-services {
        padding: 60px 0;
    }
    
    /* Services 슬라이더 (Swiper) - 모바일만 */
    .buyer-services-container.swiper {
        max-width: 100%;
        padding: 0 0 0 15px;
        overflow: visible;
        margin-right: 0;
    }
    
    .buyer-services-container.swiper .swiper-wrapper {
        display: flex;
        padding-right: 15px;
        overflow: visible;
    }
    
    .service-card.swiper-slide {
        width: 80%;
        min-width: 80%;
        flex-shrink: 0;
        box-sizing: border-box;
        margin-right: 12px;
    }
    
    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
	
	.swiper-wrapper .service-card{
		padding:40px 25px;
	}
}
