/* PRODUCT LIST 페이지 스타일 */
/* Product List 페이지 전용 body 스타일 */
body.product-list-page {
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Product List 페이지 전용 header 스타일 */
body.product-list-page .header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    padding: 0;
    background: white;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.product-list-page .header-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.25;
    padding: 0 4px;
    word-break: keep-all;
}

body.product-list-page .back-btn {
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.product-list-page .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 12px;
    margin-bottom: 0;
}

body.product-list-page .header-title {
    flex: 1;
    text-align: center;
}

.prod-cart-icon {
    position: relative;
    color: #8B5CF6;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-cart-icon .material-icons {
    font-size: 24px;
}

.prod-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Product List 검색바 */
.prod-search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    border: 1px solid #e2e8f0;
    margin: 0 16px 12px;
}

body.product-list-page .header .prod-search-bar {
    margin-bottom: 12px;
}

.prod-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    padding: 8px 8px 8px 0;
}

.prod-search-bar input::placeholder {
    color: #94a3b8;
}

.prod-search-submit {
    flex-shrink: 0;
    width: 44px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #8B5CF6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.prod-search-submit:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.prod-search-submit .material-icons {
    font-size: 22px;
}

.prod-search-icon {
    cursor: pointer;
    color: #8B5CF6;
}

/* Product List 필터 및 정렬 */
.prod-filter-section {
    background: white;
    padding: 12px;
    margin-top: 105px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.prod-filter-buttons {
    display: flex;
    gap: 4px;
}

.prod-filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-size: 12px;
    font-family: inherit;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prod-filter-btn .material-icons {
    font-size: 16px;
}

.prod-filter-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.prod-filter-btn.active {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
}

.prod-filter-btn.active .material-icons {
    color: white;
}

.prod-sort-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: all 0.3s ease;
}

.prod-sort-select:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.prod-sort-select:focus {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

/* Product List 카테고리 탭 */
.prod-category-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid #f1f5f9;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.prod-category-tabs::-webkit-scrollbar {
    display: none;
}

.prod-category-tab {
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.prod-category-tab:hover {
    background: #e2e8f0;
}

.prod-category-tab.active {
    background: #8B5CF6;
    color: white;
}

/* Product List 필터 모달 */
.prod-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10050;
    display: none;
    align-items: flex-end;
}

.prod-filter-modal.show {
    display: flex;
}

.prod-filter-modal-content {
    background: white;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.prod-filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.prod-filter-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.prod-filter-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-filter-options {
    padding: 20px 16px;
}

.prod-filter-option-group {
    margin-bottom: 24px;
}

.prod-filter-option-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.prod-filter-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prod-filter-option-buttons--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.prod-filter-option-buttons--grid .prod-filter-option-btn {
    text-align: center;
    justify-content: center;
    padding: 12px 8px;
}

.prod-filter-option-btn {
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.prod-filter-option-btn:hover {
    background: #e2e8f0;
}

.prod-filter-option-btn.active {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
}

.prod-filter-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    position: sticky;
    bottom: 0;
    background: white;
}

.prod-filter-reset-btn {
    flex: 1;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.prod-filter-reset-btn:hover {
    background: #e2e8f0;
}

.prod-filter-apply-btn {
    flex: 2;
    padding: 12px;
    background: #8B5CF6;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.prod-filter-apply-btn:hover {
    background: #7C3AED;
}

/* Product List 상품 그리드 */
.prod-products-container {
    padding: 16px;
}

.prod-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.prod-product-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.prod-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prod-product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.prod-product-card-link:focus-visible {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

.prod-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f1f5f9;
    overflow: hidden;
}

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

.prod-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.prod-product-badge.new {
    background: #10b981;
}

.prod-product-badge.hot {
    background: #f59e0b;
}

.prod-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.prod-wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}

.prod-wishlist-btn.active {
    background: #ef4444;
}

.prod-wishlist-btn.active .material-icons {
    color: white;
}

.prod-wishlist-btn .material-icons {
    font-size: 18px;
    color: #64748b;
}

.prod-product-info {
    padding: 12px;
}

.prod-product-brand {
    font-size: 11px;
    color: #8B5CF6;
    font-weight: 500;
    margin-bottom: 4px;
}

.prod-product-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.prod-stars {
    display: flex;
    gap: 2px;
}

.prod-stars .material-icons {
    font-size: 12px;
    color: #fbbf24;
}

.prod-rating-text {
    font-size: 11px;
    color: #64748b;
}

.prod-product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.prod-current-price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.prod-original-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.prod-delivery-info {
    font-size: 11px;
    color: #64748b;
}

.prod-free-delivery {
    color: #10b981;
    font-weight: 500;
}

/* 카테고리 선택 모달 */
.category-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.category-modal.show {
    display: flex;
}

.category-modal-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.category-back-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.category-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.category-modal-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.category-primary-list {
    width: 100px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
}

.category-primary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.category-primary-item:hover {
    background: #f1f5f9;
}

.category-primary-item.active {
    background: white;
    border-left: 3px solid #8B5CF6;
}

.category-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.category-name {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
}

.category-primary-item.active .category-name {
    color: #8B5CF6;
    font-weight: 600;
}

.category-secondary-list {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding: 16px;
}

.category-secondary-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #8B5CF6;
}

.category-secondary-items {
    display: flex;
    flex-direction: column;
}

.category-secondary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    margin-bottom: 4px;
}

.category-secondary-item:hover {
    background: #f8fafc;
}

.category-secondary-item:active {
    background: #f1f5f9;
}

.category-secondary-item span:first-child {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.category-secondary-item .material-icons {
    font-size: 18px;
    color: #cbd5e0;
}

.category-secondary-item:hover .material-icons {
    color: #8B5CF6;
}

/* 검색 모달 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.search-modal.show {
    display: flex;
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 12px;
}

.search-back-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 12px;
}

.search-input-container input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.search-input-container input::placeholder {
    color: #94a3b8;
}

.search-clear-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.search-clear-btn .material-icons {
    font-size: 20px;
}

.search-submit-btn {
    background: none;
    border: none;
    color: #8B5CF6;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn .material-icons {
    font-size: 24px;
}

.search-modal-content {
    flex: 1;
    overflow-y: auto;
    background: white;
    padding: 16px;
}

.search-section {
    margin-bottom: 32px;
}

.search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.search-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.trending-icon {
    font-size: 16px;
}

.search-update-time {
    font-size: 12px;
    color: #94a3b8;
}

.search-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.search-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: #e2e8f0;
    border-radius: 11px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.search-toggle input:checked + .toggle-slider {
    background: #8B5CF6;
}

.search-toggle input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.recent-searches, .popular-searches {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-message {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.recent-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: background 0.2s;
}

.recent-search-item:hover {
    background: #f1f5f9;
}

.recent-keyword {
    flex: 1;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.remove-search-btn {
    background: none;
    border: none;
    color: #cbd5e0;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-search-btn .material-icons {
    font-size: 18px;
}

.popular-searches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 인기 상품 자동 롤링 */
.popular-products-container {
    overflow: hidden;
    margin: 0 -16px;
    padding: 0 16px;
}

.popular-products-track {
    display: flex;
    gap: 12px;
    transition: transform 0.05s linear;
}

.popular-product-card {
    flex: 0 0 128px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
}

.popular-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

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

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

.product-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.product-card-info {
    padding: 10px;
}

.product-card-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #8B5CF6;
}

/* 인기 카테고리 */
.popular-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.popular-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.popular-category-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.popular-category-item .rank {
    font-size: 14px;
    font-weight: 700;
    color: #8B5CF6;
    min-width: 20px;
}

.popular-category-item .keyword {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 내가 본 상품 */
.viewed-products-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f5f9;
}

.viewed-products-container::-webkit-scrollbar {
    height: 6px;
}

.viewed-products-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.viewed-products-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.viewed-product-card {
    flex: 0 0 120px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
}

.viewed-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.viewed-product-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

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

.viewed-product-info {
    padding: 10px;
}

.viewed-product-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.viewed-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #8B5CF6;
}

.clear-all-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.clear-all-btn:hover {
    color: #64748b;
}

.see-more {
    font-size: 14px;
    color: #8B5CF6;
    text-decoration: none;
}

.see-more:hover {
    text-decoration: underline;
}

.popular-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.popular-search-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.popular-search-item .rank {
    font-size: 14px;
    font-weight: 700;
    color: #8B5CF6;
    min-width: 20px;
}

.popular-search-item .keyword {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product List 토스트 */
.prod-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.prod-toast.show {
    opacity: 1;
}

/* Product List 반응형 */
@media (max-width: 480px) {
    .prod-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .prod-product-info {
        padding: 10px;
    }
    
    .prod-filter-section {
        /* flex-direction: column; */
        align-items: stretch;
    }
    
    .prod-filter-buttons {
        flex-wrap: wrap;
    }
}

/* CART 페이지 스타일 */
/* Cart 페이지 전용 body 스타일 */
body.cart-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
}

/* 장바구니는 퍼블리싱 헤더 사용 */
body.cart-page .header {
    display: none;
}

/* Cart 헤더 */
.cart-header {
    background: white;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-back-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cart-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-header-icon-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-header-icon-link .material-icons {
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
}

/* Cart 전체 선택 */
.cart-select-all {
    background: white;
    padding: 16px;
    margin-top: 64px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-select-all-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cart-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-checkbox-checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: white;
}

.cart-checkbox .material-icons {
    display: none;
}

.cart-checkbox-checked .material-icons {
    display: flex;
}

.cart-select-all-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.cart-delete-selected {
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

/* Cart 장바구니 아이템 */
/* 하단 고정 요약+주문바·안전영역 아래까지 스크롤 가능하도록 여백 (bottom-nav는 장바구니에서 비표시) */
.cart-container {
    padding: 0 16px max(48px, calc(300px + env(safe-area-inset-bottom, 0px))) 16px;
}

.cart-seller-group {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-seller-header {
    padding: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

.cart-seller-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-seller-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.cart-seller-checkbox-checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: white;
}

.cart-seller-checkbox .material-icons {
    display: none;
}

.cart-seller-checkbox-checked .material-icons {
    display: flex;
}

.cart-seller-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.cart-seller-name:hover {
    color: #8B5CF6;
}

.cart-delivery-info {
    font-size: 12px;
    color: #64748b;
}

.cart-free-delivery {
    color: #10b981;
    font-weight: 500;
}

.cart-item {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
}

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

.cart-item-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 8px;
    font-size: 14px;
}

/* 네이티브 체크박스 + 커스텀 박스 이중 표시 방지 (라벨 클릭은 그대로 동작) */
label.cart-item-checkbox input.selec_chk,
label.cart-item-checkbox input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    opacity: 0;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.cart-item-checkbox-checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: white;
}

.cart-item-checkbox .cart-item-checkbox-icon {
    display: none;
}

.cart-item-checkbox-checked .cart-item-checkbox-icon {
    display: flex;
    font-size: 14px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-brand {
    font-size: 12px;
    color: #8B5CF6;
    font-weight: 500;
    margin-bottom: 2px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    margin-bottom: 6px;
    text-decoration: none;
    display: block;
}

.cart-item-name:hover {
    color: #8B5CF6;
}

.cart-item-options {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.cart-item-options ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item-options li {
    margin: 0 0 2px 0;
    padding: 0;
    line-height: 1.35;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cart-current-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cart-original-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.cart-discount-rate {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.cart-quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
}

.cart-quantity-btn:hover {
    background: #e2e8f0;
}

.cart-quantity-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    background: white;
}

.cart-item-delete {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}

.cart-item-delete:hover {
    color: #ef4444;
}

/* Cart 배송비 정보 */
.cart-delivery-summary {
    padding: 12px 16px;
    background: #f8fafc;
    font-size: 12px;
    color: #64748b;
}

.cart-delivery-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cart-delivery-row:last-child {
    margin-bottom: 0;
}

/* Cart 추천 상품 */
.cart-recommended-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.cart-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.cart-recommended-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cart-recommended-items::-webkit-scrollbar {
    display: none;
}

.cart-recommended-item {
    min-width: 120px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.cart-recommended-image {
    width: 120px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

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

.cart-recommended-name {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-recommended-price {
    font-size: 14px;
    font-weight: 600;
    color: #8B5CF6;
}

/* 장바구니: 택배 / 매장픽업 (판매자별) */
.cart-seller-fulfill {
    padding: 0 12px 12px;
    margin-top: -4px;
}

.sd-ff-seg {
    display: flex;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 8px;
}

.sd-ff-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.sd-ff-btn.sd-ff-active {
    background: #fff;
    color: #111;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.sd-ff-pickup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sd-ff-store-btn {
    border: 1px solid #8B5CF6;
    color: #8B5CF6;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.sd-ff-store-label {
    font-size: 12px;
    color: #334155;
    flex: 1;
    min-width: 0;
}

/* 픽업 매장 모달 */
.sd-pickup-modal[hidden] {
    display: none !important;
}

.sd-pickup-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sd-pickup-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.sd-pickup-modal-panel {
    position: relative;
    width: 100%;
    max-width: 414px;
    max-height: 70vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.sd-pickup-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.sd-pickup-close {
    border: none;
    background: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.sd-pickup-store-list {
    list-style: none;
    margin: 0;
    padding: 8px 12px 20px;
    overflow-y: auto;
}

.sd-pickup-store-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
}

.sd-pickup-store-item:active {
    background: #f8fafc;
}

.sd-pu-name {
    font-weight: 600;
    font-size: 14px;
    color: #111;
    margin-bottom: 4px;
}

.sd-pu-addr {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.sd-pickup-loading,
.sd-pickup-empty {
    text-align: center;
    padding: 24px 12px;
    color: #64748b;
    font-size: 13px;
}

/* 주문서: 배송/픽업 요약 */
.sd-order-fulfill-summary {
    margin: 12px 16px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.sd-order-fulfill-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.sd-order-fulfill-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-order-fulfill-list li {
    font-size: 12px;
    color: #334155;
    margin-bottom: 8px;
}

.sd-order-fulfill-list li:last-child {
    margin-bottom: 0;
}

.sd-of-mode {
    font-weight: 600;
    color: #8B5CF6;
}

.sd-of-detail {
    margin-top: 4px;
    color: #64748b;
    line-height: 1.35;
}

/* Cart 하단 고정 영역 */
.cart-bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

/* 장바구니: 하단 탭 미사용 시 주문바가 다른 고정 요소에 가리지 않도록 */
body.cart-page .cart-bottom-fixed {
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
}

/* 장바구니 옵션수정(#sit_sel_option) UI 정리 */
/* cartoption.php에서 삽입되는 옵션 선택 카드 */
#sit_sel_option {
    margin-top: 8px;
}

#sit_sel_option > h3 {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}

#sit_sel_option ul#sit_opt_added {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sit_sel_option .sit_opt_list,
#sit_sel_option .sit_spl_list {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px 12px 12px;
    padding-right: 44px; /* 삭제(X) 버튼 자리 */
    background: #fff;
    margin-bottom: 10px;
    position: relative;
}

#sit_sel_option .sit_opt_subj {
    display: block;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}

#sit_sel_option .opt_count {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
}

/* +/- 세그먼트 */
#sit_sel_option .sit_qty_plus,
#sit_sel_option .sit_qty_minus {
    width: 36px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 16px;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#sit_sel_option .sit_qty_plus:hover,
#sit_sel_option .sit_qty_minus:hover {
    background: #e2e8f0;
}

#sit_sel_option .num_input {
    width: 54px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

/* 라인 금액 */
#sit_sel_option .sit_opt_prc {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

/* btn_frmline 기본 스타일이 버튼 크기를 깨는 경우가 있어 오버라이드 */
#sit_sel_option .btn_frmline.sit_qty_plus,
#sit_sel_option .btn_frmline.sit_qty_minus {
    width: 36px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 삭제 버튼(X) */
#sit_sel_option .sit_opt_del {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    margin-left: 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

#sit_sel_option .sit_opt_del:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.cart-order-summary {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.cart-summary-label {
    font-size: 14px;
    color: #64748b;
}

.cart-summary-value {
    font-size: 14px;
    color: #333;
}

.cart-summary-total .cart-summary-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cart-summary-total .cart-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #8B5CF6;
}

.cart-order-button {
    padding: 16px;
}

.cart-order-btn {
    width: 100%;
    height: 52px;
    background: #8B5CF6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cart-order-btn:hover:not(:disabled) {
    background: #7C3AED;
}

.cart-order-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Cart 빈 장바구니 */
.cart-empty-cart {
    display: none;
    padding: 60px 40px;
    text-align: center;
    background: white;
    margin: 20px 16px;
    border-radius: 12px;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.cart-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.cart-empty-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.cart-shopping-btn {
    padding: 12px 24px;
    background: #8B5CF6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cart-shopping-btn:hover {
    background: #7C3AED;
}

/* Cart 토스트 메시지 */
.cart-toast {
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
}

.cart-toast-show {
    opacity: 1;
}

/* Cart 반응형 디자인 */
@media (max-width: 480px) {
    body.cart-page {
        padding-bottom: 80px;
    }
    
    .cart-container {
        padding: 0 12px 250px 12px;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
}

/* ORDER FORM 페이지 스타일 */
body.order-form-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    padding-bottom: 120px;
}

/* Order Form 헤더 */
.order-form-header {
    background: white;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-form-back-btn {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-form-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 진행 단계 */
.order-form-progress-bar {
    background: white;
    padding: 12px;
    margin-top: 64px;
    border-bottom: 1px solid #f1f5f9;
}

.order-form-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-form-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.order-form-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    z-index: 10;
}

.order-form-step-circle .material-icons {
    font-size: 14px;
}

.order-form-progress-step.order-form-progress-step-active .order-form-step-circle {
    background: #8B5CF6;
    color: white;
}

.order-form-progress-step.order-form-progress-step-completed .order-form-step-circle {
    background: #10b981;
    color: white;
}

.order-form-step-label {
    font-size: 11px;
    color: #64748b;
}

.order-form-progress-step.order-form-progress-step-active .order-form-step-label {
    color: #8B5CF6;
    font-weight: 500;
}

.order-form-step-line {
    position: absolute;
    top: 14px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.order-form-progress-step.order-form-progress-step-completed .order-form-step-line {
    background: #10b981;
}

.order-form-progress-step:last-child .order-form-step-line {
    display: none;
}

/* 주문 상품 목록 */
.order-form-order-items {
    background: white;
    padding: 16px;
    margin-bottom: 6px;
}

/* orderform.sub.php 기본 테이블(#sod_list)을 퍼블리싱 카드 형태로 */
body.order-form-page .order-form-order-items #sod_list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

body.order-form-page .order-form-order-items #sod_list thead {
    display: none;
}

body.order-form-page .order-form-order-items #sod_list tbody tr {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 8px;
    box-sizing: border-box;
}

body.order-form-page .order-form-order-items #sod_list tbody tr:last-child {
    margin-bottom: 0;
}

body.order-form-page .order-form-order-items #sod_list tbody td {
    border: 0;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

body.order-form-page .order-form-order-items #sod_list tbody td:nth-child(1) {
    flex: 1 0 100%;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

body.order-form-page .order-form-order-items #sod_list tbody td:nth-child(2) {
    flex: 0 0 auto;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

body.order-form-page .order-form-order-items #sod_list tbody td:nth-child(2)::after {
    content: '개';
}

body.order-form-page .order-form-order-items #sod_list tbody td:nth-child(4) {
    flex: 1 1 auto;
    margin-top: 8px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

body.order-form-page .order-form-order-items #sod_list tbody td:nth-child(4) .total_price::after {
    content: '원';
    font-weight: 700;
    color: inherit;
}

/* unit price/point/delivery fee 컬럼 숨김 */
body.order-form-page .order-form-order-items #sod_list tbody td:nth-child(3),
body.order-form-page .order-form-order-items #sod_list tbody td:nth-child(5),
body.order-form-page .order-form-order-items #sod_list tbody td:nth-child(6) {
    display: none;
}

/* 상품 이미지/이름 영역 */
body.order-form-page .order-form-order-items #sod_list tbody .sod_img {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

body.order-form-page .order-form-order-items #sod_list tbody .sod_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.order-form-page .order-form-order-items #sod_list tbody .sod_name b {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

body.order-form-page .order-form-order-items #sod_list tbody .sod_opt {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.order-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-form-item-count {
    font-size: 14px;
    color: #8B5CF6;
    font-weight: 500;
}

.order-form-seller-group {
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.order-form-seller-group:last-child {
    margin-bottom: 0;
}

.order-form-seller-header {
    background: #f8fafc;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.order-form-seller-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    text-decoration: none;
}

.order-form-seller-name:hover {
    color: #8B5CF6;
}

.order-form-delivery-type {
    font-size: 12px;
    color: #10b981;
}

.order-form-order-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

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

.order-form-item-image {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.order-form-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-form-item-details {
    flex: 1;
}

.order-form-item-brand {
    font-size: 12px;
    color: #8B5CF6;
    font-weight: 500;
    margin-bottom: 2px;
}

.order-form-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
    text-decoration: none;
    display: block;
}

.order-form-item-name:hover {
    color: #8B5CF6;
}

.order-form-item-options {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.order-form-item-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-form-item-quantity {
    font-size: 12px;
    color: #64748b;
}

.order-form-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 배송지 정보 */
.order-form-delivery-section {
    background: white;
    padding: 16px;
    margin-bottom: 6px;
}

.order-form-address-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    position: relative;
}

.order-form-address-card.order-form-address-card-selected {
    border-color: #8B5CF6;
    background: #faf5ff;
}

.order-form-default-badge {
    position: absolute;
    top: -8px;
    left: 16px;
    background: #8B5CF6;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 10px;
}

.order-form-address-info {
    margin-bottom: 8px;
}

.order-form-recipient-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.order-form-recipient-phone {
    font-size: 12px;
    color: #64748b;
}

.order-form-address-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}

.order-form-address-actions {
    display: flex;
    gap: 8px;
}

.order-form-btn-small {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

.order-form-btn-small.order-form-btn-small-primary {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

/* 배송 요청사항 */
.order-form-delivery-request {
    margin-top: 12px;
}

.order-form-request-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.order-form-request-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    font-family: inherit;
}

.order-form-request-textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-top: 8px;
    display: none;
}

.order-form-request-textarea::placeholder {
    color: #94a3b8;
}

/* 주문자 정보 */
.order-form-orderer-section {
    background: white;
    padding: 16px;
    margin-bottom: 6px;
}

.order-form-orderer-info {
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    margin-top: 10px;
}

.order-form-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.order-form-info-row:last-child {
    margin-bottom: 0;
}

.order-form-info-label {
    font-size: 14px;
    color: #64748b;
}

.order-form-info-value {
    font-size: 14px;
    color: #333;
}

/* 결제 방법 */
.order-form-payment-section {
    background: white;
    padding: 16px;
    margin-bottom: 6px;
}

.order-form-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.order-form-payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.order-form-payment-method:hover {
    border-color: #8B5CF6;
    background: #faf5ff;
}

.order-form-payment-method.order-form-payment-method-selected {
    border-color: #8B5CF6;
    background: #faf5ff;
}

.order-form-payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-form-payment-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.order-form-payment-details {
    flex: 1;
}

.order-form-payment-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.order-form-payment-desc {
    font-size: 12px;
    color: #64748b;
}

.order-form-payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-form-payment-method.order-form-payment-method-selected .order-form-payment-radio {
    border-color: #8B5CF6;
    background: #8B5CF6;
}

.order-form-payment-method.order-form-payment-method-selected .order-form-payment-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* 할인/쿠폰 */
.order-form-discount-section {
    background: white;
    padding: 16px;
    margin-bottom: 6px;
}

.order-form-coupon-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    margin-top: 10px;
}

.order-form-coupon-info {
    flex: 1;
}

.order-form-coupon-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.order-form-coupon-desc {
    font-size: 12px;
    color: #64748b;
}

.order-form-coupon-arrow {
    color: #94a3b8;
    font-size: 20px;
}

/* 결제 금액 */
.order-form-payment-summary {
    background: white;
    padding: 16px;
    margin-bottom: 0px;
}

.order-form-summary-rows {
    margin-top: 12px;
}

.order-form-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-form-summary-row:last-child {
    border-bottom: none;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.order-form-summary-label {
    font-size: 14px;
    color: #64748b;
}

.order-form-summary-value {
    font-size: 14px;
    color: #333;
}

.order-form-summary-total .order-form-summary-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.order-form-summary-total .order-form-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #8B5CF6;
}

.order-form-discount-value {
    color: #dc2626;
}

.order-form-free-delivery {
    color: #10b981;
}

/* 하단 고정 버튼 */
.order-form-bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    padding: 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.order-form-agree-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
}

.order-form-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.order-form-checkbox .material-icons {
    font-size: 14px;
}

.order-form-checkbox.order-form-checkbox-checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: white;
}

.order-form-agree-text {
    font-size: 14px;
    color: #333;
}

.order-form-payment-btn {
    width: 100%;
    height: 52px;
    background: #8B5CF6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.order-form-payment-btn:hover:not(:disabled) {
    background: #7C3AED;
}

.order-form-payment-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* 토스트 */
.order-form-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
}

.order-form-toast.order-form-toast-show {
    opacity: 1;
}

/* Order Form 반응형 디자인 */
@media (max-width: 480px) {
    body.order-form-page {
        padding-bottom: 120px;
    }
    
    .order-form-order-items,
    .order-form-delivery-section,
    .order-form-orderer-section,
    .order-form-payment-section,
    .order-form-discount-section,
    .order-form-payment-summary {
        padding: 16px;
    }
    
    .order-form-item-image {
        width: 50px;
        height: 50px;
    }
}

/* 주문서: 그누보드 마크업(#sod_frm 등)을 퍼블리싱(order-form) 카드 UI에 맞춤 */
body.order-form-page #container {
    max-width: 414px;
    margin: 0 auto;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

body.order-form-page .shop-wrapper--order-form {
    padding-bottom: 0;
    min-height: 100vh;
}

body.order-form-page #forderform {
    display: block;
}

body.order-form-page .sd-order-fulfill-summary {
    background: #fff;
    margin: 0 0 8px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

body.order-form-page #sod_frm.sod_frm_pc,
body.order-form-page #sod_frm.sod_frm_mobile {
    display: block;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    padding: 0 0 160px;
    box-sizing: border-box;
}

body.order-form-page .sod_left,
body.order-form-page .sod_right {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.order-form-page #sod_frm_orderer,
body.order-form-page #sod_frm_taker,
body.order-form-page #sod_frm_pay {
    background: #fff;
    margin: 0 0 6px;
    padding: 16px;
    box-sizing: border-box;
}

body.order-form-page #sod_frm_orderer h2,
body.order-form-page #sod_frm_taker h2,
body.order-form-page #sod_frm_pay > h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

body.order-form-page .tbl_frm01.tbl_wrap {
    margin: 0;
    padding: 0;
}

body.order-form-page .tbl_frm01 table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

body.order-form-page .tbl_frm01 tbody tr {
    display: block;
    margin-bottom: 4px;
}

body.order-form-page .tbl_frm01 th {
    display: block;
    width: 100%;
    padding: 12px 0 6px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    border: 0;
    background: transparent;
}

body.order-form-page .tbl_frm01 td {
    display: block;
    width: 100%;
    padding: 0 0 12px;
    border: 0;
    background: transparent;
}

body.order-form-page .tbl_frm01 .frm_input,
body.order-form-page .tbl_frm01 input[type="text"],
body.order-form-page .tbl_frm01 input[type="password"],
body.order-form-page .tbl_frm01 input[type="number"],
body.order-form-page .tbl_frm01 textarea,
body.order-form-page .tbl_frm01 select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    background: #fff;
}

body.order-form-page .tbl_frm01 textarea {
    min-height: 88px;
    resize: vertical;
}

body.order-form-page .tbl_frm01 .frm_info {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 8px;
}

body.order-form-page .btn_address {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    color: #334155;
}

body.order-form-page .order_choice_place {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    line-height: 1.5;
}

body.order-form-page .order_choice_place input[type="radio"],
body.order-form-page .order_choice_place input[type="checkbox"] {
    width: auto;
    accent-color: #8B5CF6;
}

body.order-form-page .order_choice_place label {
    font-size: 14px;
    color: #333;
}

body.order-form-page #order_address.btn_frmline {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #8B5CF6;
    color: #8B5CF6;
    background: #fff;
    font-size: 13px;
    text-decoration: none;
}

body.order-form-page #sod_bsk_tot {
    background: #fff;
    margin: 0 0 8px;
    padding: 16px;
    border-radius: 0;
}

body.order-form-page #sod_bsk_tot ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.order-form-page #sod_bsk_tot li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #64748b;
}

body.order-form-page #sod_bsk_tot li:last-child {
    border-bottom: 0;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid #e2e8f0;
    font-weight: 600;
    color: #111;
}

body.order-form-page #sod_bsk_tot li strong {
    font-size: 15px;
    color: #111;
    font-weight: 700;
}

body.order-form-page #sod_frm_pay .pay_tbl table {
    width: 100%;
    border: 0;
}

body.order-form-page #sod_frm_pay .pay_tbl th,
body.order-form-page #sod_frm_pay .pay_tbl td {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: 0;
    text-align: left;
}

body.order-form-page #sod_frm_pay .pay_tbl th {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

body.order-form-page #sod_frm.sod_frm_pc #od_tot_price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 16px 0 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

body.order-form-page #sod_frm.sod_frm_pc #od_tot_price .print_price {
    font-size: 20px;
    font-weight: 700;
    color: #8B5CF6;
}

body.order-form-page #od_pay_sl h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #333;
}

body.order-form-page #sod_frm_pt_alert {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.45;
}

body.order-form-page #sod_frm_paysel {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.order-form-page #sod_frm_paysel > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.order-form-page #sod_frm_paysel label.lb_icon {
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

body.order-form-page #sod_frm_paysel input[type="radio"]:checked + label.lb_icon {
    border-color: #8B5CF6;
    background: #faf5ff;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

body.order-form-page .od_pay_buttons_el {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.order-form-page .sod_frm_point {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

body.order-form-page .sod_frm_point label {
    font-size: 13px;
    color: #64748b;
}

body.order-form-page #sod_frm_pt {
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
}

body.order-form-page #settle_bank {
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

body.order-form-page .cp_btn {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    cursor: pointer;
    color: #334155;
}

body.order-form-page #display_pay_button {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    z-index: 1000;
    margin: 0 !important;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    border-top: 1px solid #f1f5f9;
}

body.order-form-page #display_pay_button.btn_confirm {
    text-align: center;
}

body.order-form-page #display_pay_button .btn_submit {
    width: 100%;
    margin: 0;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: #8B5CF6;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

body.order-form-page #display_pay_button .btn01 {
    display: none;
}

body.order-form-page #display_pay_process {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    color: #334155;
}

body.order-form-page #display_pay_process[style*="block"],
body.order-form-page #display_pay_process[style*="flex"] {
    display: flex !important;
}

body.order-form-page #sod_frm .btn_frmline {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

/* ----- 모바일 주문서 (sod_frm_mobile: ul.sod_list, m_sod_bsk_tot, m_sod_frm_paysel) ----- */
body.order-form-page #sod_frm.sod_frm_mobile .order-form-order-items {
    background: #fff;
    padding: 16px;
    margin-bottom: 6px;
    box-sizing: border-box;
}

body.order-form-page #sod_frm.sod_frm_mobile ul.sod_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.order-form-page #sod_frm.sod_frm_mobile li.sod_li {
    margin: 0;
    padding: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

body.order-form-page #sod_frm.sod_frm_mobile .li_name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    margin-bottom: 8px;
}

body.order-form-page #sod_frm.sod_frm_mobile .li_name strong {
    font-weight: 600;
}

body.order-form-page #sod_frm.sod_frm_mobile .li_op_wr {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}

body.order-form-page #sod_frm.sod_frm_mobile .total_img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
}

body.order-form-page #sod_frm.sod_frm_mobile .total_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.order-form-page #sod_frm.sod_frm_mobile .sod_opt {
    flex: 1;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    min-width: 0;
}

body.order-form-page #sod_frm.sod_frm_mobile .li_mod .cp_btn {
    margin-top: 8px;
}

body.order-form-page #sod_frm.sod_frm_mobile .li_prqty {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

body.order-form-page #sod_frm.sod_frm_mobile .li_prqty_sp span {
    color: #94a3b8;
    margin-right: 4px;
}

body.order-form-page #sod_frm.sod_frm_mobile .li_prqty_sp {
    white-space: nowrap;
}

body.order-form-page #sod_frm.sod_frm_mobile .total_span.total_price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #64748b;
}

body.order-form-page #sod_frm.sod_frm_mobile .total_span.total_price strong {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

body.order-form-page #sod_frm.sod_frm_mobile .total_span.total_price strong::after {
    content: '원';
    font-size: 15px;
    font-weight: 700;
    margin-left: 2px;
}

body.order-form-page #sod_frm.sod_frm_mobile .order-form-payment-summary {
    background: #fff;
    margin: 0 0 6px;
    padding: 16px;
    box-sizing: border-box;
}

body.order-form-page #sod_frm.sod_frm_mobile .order-form-payment-summary > .order-form-section-title {
    margin-bottom: 12px;
}

body.order-form-page #sod_frm.sod_frm_mobile .sod_ta_wr {
    margin: 0;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_bsk_tot {
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_bsk_tot dt {
    margin: 0;
    font-weight: 500;
    color: #64748b;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_bsk_tot dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: #111;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_bsk_tot dt.sod_bsk_cnt,
body.order-form-page #sod_frm.sod_frm_mobile #m_sod_bsk_tot dd.sod_bsk_cnt {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 6px;
    font-weight: 600;
    color: #111;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_bsk_tot dd.sod_bsk_cnt {
    font-weight: 700;
    color: #8B5CF6;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_bsk_tot #ct_tot_price {
    font-size: 18px;
    font-weight: 700;
    color: #8B5CF6;
}

body.order-form-page #sod_frm.sod_frm_mobile .odf_list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.order-form-page #sod_frm.sod_frm_mobile .odf_list li {
    margin-bottom: 2px;
}

body.order-form-page #sod_frm.sod_frm_mobile .odf_list label,
body.order-form-page #sod_frm.sod_frm_mobile .odf_list li > strong:first-child {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 10px 0 4px;
}

body.order-form-page #sod_frm.sod_frm_mobile .odf_list .frm_input,
body.order-form-page #sod_frm.sod_frm_mobile .odf_list input[type="text"],
body.order-form-page #sod_frm.sod_frm_mobile .odf_list input[type="password"],
body.order-form-page #sod_frm.sod_frm_mobile .odf_list input[type="email"],
body.order-form-page #sod_frm.sod_frm_mobile .odf_list textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    background: #fff;
}

body.order-form-page #sod_frm.sod_frm_mobile .odf_list textarea {
    min-height: 70px;
    resize: vertical;
}

body.order-form-page #sod_frm.sod_frm_mobile .add_num {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

body.order-form-page #sod_frm.sod_frm_mobile .btn_addsch {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    color: #334155;
}

/* 우편번호 + 주소검색 버튼 한줄 표현(주문서) */
body.order-form-page #sod_frm.sod_frm_mobile .zip_search_row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}

body.order-form-page #sod_frm.sod_frm_mobile .zip_search_row .frm_input {
    flex: 1;
    min-width: 0;
}

body.order-form-page #sod_frm.sod_frm_mobile .zip_search_row .btn_addsch {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* 내주변(nearby.php) */
body.nearby-page #container {
    background: #f7fafc;
}

body.nearby-page .nearby-wrap {
    max-width: 768px;
    margin: 0 auto;
    padding: 16px 16px 84px;
}

body.nearby-page .nearby-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.nearby-page .nearby-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

body.nearby-page .nearby-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}

body.nearby-page .nearby-filter-row {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.nearby-page .nearby-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
}

body.nearby-page .nearby-btn.nearby-btn-outline {
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #334155;
}

body.nearby-page .nearby-radius-btn.is-active {
    border-color: #8B5CF6;
    color: #8B5CF6;
    font-weight: 700;
}

body.nearby-page .nearby-map {
    display: none;
    margin-top: 14px;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

body.nearby-page .nearby-empty {
    display: none;
    margin-top: 18px;
    padding: 28px 14px;
    text-align: center;
    color: #64748b;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

body.nearby-page .nearby-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.nearby-page .nearby-card {
    display: flex;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

body.nearby-page a.nearby-card {
    color: inherit;
    text-decoration: none;
}

body.nearby-page .nearby-thumb {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex: 0 0 auto;
}

body.nearby-page .nearby-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.nearby-page .nearby-card-body {
    min-width: 0;
    flex: 1;
}

body.nearby-page .nearby-shop-name {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

body.nearby-page .nearby-shop-address {
    margin-top: 6px;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

body.nearby-page .nearby-shop-meta {
    margin-top: 8px;
    color: #334155;
    font-size: 13px;
}

/* nearby 페이지에서 하단 네비 고정/정렬 깨짐 방지 */
body.nearby-page .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
}

body.nearby-page .bottom-nav-item {
    flex: 1;
    min-width: 0;
}

/* shop_home.php */
body.shop-home-page {
    --sd-header-height: 52px;
}
/* 테마 공통 헤더/하단 네비는 숨기고, 샵 상세 전용 상단바를 사용 */
body.shop-home-page .header { display: none !important; }
body.shop-home-page .bottom-nav { display: none !important; }
body.shop-home-page #container {
    max-width: 520px;
    margin: 0 auto;
    background: #f8fafc;
    overflow-x: visible;
}

/* 상단 샵 전용 헤더 (뒤로 + 제목 + 홈) */
body.shop-home-page .shop-home-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 0 0;
    height: var(--sd-header-height, 52px);
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}
body.shop-home-page .shop-home-topbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #111827;
}
body.shop-home-page .shop-home-topbtn .material-icons {
    font-size: 24px;
}
body.shop-home-page .shop-home-top-title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    padding-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.shop-home-page .shop-home-wrap { max-width: 520px; margin: 0 auto; background: #fff; min-height: 100vh; }
body.shop-home-page .shop-home-hero { width: 100%; min-height: 220px; height: auto; background: #f1f5f9; overflow: hidden; }
body.shop-home-page .shop-home-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.shop-home-page .shop-home-hero-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-weight: 700; letter-spacing: 2px; }
body.shop-home-page .shop-home-info { padding: 16px 16px 10px; border-bottom: 1px solid #eef2f7; }
body.shop-home-page .shop-home-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #111827; }
body.shop-home-page .shop-home-meta,
body.shop-home-page .shop-home-hours,
body.shop-home-page .shop-home-address { font-size: 14px; color: #374151; margin-top: 6px; }
body.shop-home-page .shop-home-actions { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:12px 16px; border-bottom:1px solid #eef2f7; }
body.shop-home-page .shop-home-action-btn { height:38px; border:1px solid #d1d5db; border-radius:10px; background:#fff; color:#111827; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; font-size:13px; }
body.shop-home-page .shop-home-action-btn.is-liked { border-color:#7c3aed; color:#7c3aed; font-weight:700; }

/* 탭 바를 헤더 바로 아래에 고정하고, 긴 페이지 스크롤에서도 항상 보이도록 처리 */
body.shop-home-page .shop-home-tabs {
    position: sticky;
    top: var(--sd-header-height, 52px);
    z-index: 900;
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
body.shop-home-page .shop-home-tab { flex: 1; height: 48px; border: 0; background: #fff; font-size: 15px; font-weight: 700; color: #6b7280; border-bottom: 2px solid transparent; }
body.shop-home-page .shop-home-tab.is-active { color: #111827; border-bottom-color: #111827; }
/* 각 패널은 긴 페이지의 섹션처럼 모두 보이게 하고, 탭은 스크롤 위치에 따라 활성화 */
body.shop-home-page .shop-home-panel { padding: 16px; }
body.shop-home-page .shop-home-section-title { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #111827; }
body.shop-home-page .shop-home-intro { margin: 0; line-height: 1.7; color: #374151; word-break: keep-all; }
body.shop-home-page .shop-home-empty { padding: 22px 10px; border: 1px dashed #d1d5db; border-radius: 10px; text-align: center; color: #6b7280; font-size: 14px; line-height: 1.6; }
body.shop-home-page .shop-home-review-list { display: flex; flex-direction: column; gap: 10px; }
body.shop-home-page .shop-home-review-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; background: #fff; }
body.shop-home-page .shop-home-review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; color: #6b7280; }
body.shop-home-page .shop-home-review-head strong { color: #111827; font-size: 14px; }
body.shop-home-page .shop-home-review-item p { margin: 0; color: #374151; line-height: 1.6; word-break: keep-all; }
body.shop-home-page .shop-home-review-write { display:inline-flex; margin-bottom:10px; border:1px solid #111827; color:#111827; border-radius:10px; padding:6px 10px; text-decoration:none; font-size:13px; }
body.shop-home-page .shop-home-chip-row { display:flex; flex-wrap:wrap; gap:8px; }
body.shop-home-page .shop-home-chip { display:inline-flex; align-items:center; height:30px; padding:0 12px; border-radius:999px; background:#f3f4f6; color:#374151; font-size:13px; }

body.order-form-page #sod_frm.sod_frm_mobile .dlv_slt div {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

body.order-form-page #sod_frm.sod_frm_mobile .dlv_slt input[type="radio"],
body.order-form-page #sod_frm.sod_frm_mobile .dlv_slt input[type="checkbox"] {
    accent-color: #8B5CF6;
    margin-right: 6px;
}

/* 배송지선택: 라디오 + 라벨을 같은 줄로 */
body.order-form-page #sod_frm.sod_frm_mobile .dlv_slt div label {
    display: inline-block;
    vertical-align: middle;
}

body.order-form-page #sod_frm.sod_frm_mobile .dlv_slt div input[type="radio"] {
    display: inline-block;
    vertical-align: middle;
}

/* 기본배송지 체크박스 + 라벨을 같은 줄로 */
body.order-form-page #sod_frm.sod_frm_mobile label.ad_default {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

body.order-form-page #sod_frm.sod_frm_mobile input#ad_default {
    vertical-align: middle;
}

body.order-form-page #sod_frm.sod_frm_mobile input#ad_default {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

body.order-form-page #sod_frm.sod_frm_mobile #order_address {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #8B5CF6;
    color: #8B5CF6;
    background: #fff;
    font-size: 13px;
    text-decoration: none;
}

body.order-form-page #sod_frm.sod_frm_mobile #sod_frm_pay .odf_tbl table {
    width: 100%;
    border: 0;
}

body.order-form-page #sod_frm.sod_frm_mobile #sod_frm_pay .odf_tbl tr {
    display: block;
    margin-bottom: 6px;
}

body.order-form-page #sod_frm.sod_frm_mobile #sod_frm_pay .odf_tbl th,
body.order-form-page #sod_frm.sod_frm_mobile #sod_frm_pay .odf_tbl td {
    display: block;
    width: 100%;
    padding: 4px 0;
    border: 0;
    text-align: left;
}

body.order-form-page #sod_frm.sod_frm_mobile #sod_frm_pay .odf_tbl th {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

body.order-form-page #sod_frm.sod_frm_mobile #sod_frm_pay .cp_btn1 {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    color: #334155;
}

body.order-form-page #sod_frm.sod_frm_mobile #sod_frm_pay #od_tot_price {
    font-size: 18px;
    font-weight: 700;
    color: #8B5CF6;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel {
    margin-top: 8px;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel li {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel li input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel li label.lb_icon,
body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel li label.inicis_lpay,
body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel li label.inicis_kakaopay,
body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel li label.samsung_pay {
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

body.order-form-page #sod_frm.sod_frm_mobile #m_sod_frm_paysel li input[type="radio"]:checked + label {
    border-color: #8B5CF6;
    background: #faf5ff;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

body.order-form-page #sod_frm.sod_frm_mobile .sod_frm_point {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

body.order-form-page #sod_frm.sod_frm_mobile #sod_frm_pt_info {
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.order-form-page #sod_frm.sod_frm_mobile #show_progress {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    color: #334155;
}

body.order-form-page #sod_frm.sod_frm_mobile #show_progress[style*="block"] {
    display: flex !important;
}

body.order-form-page #display_pay_button .btn_cancel {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    text-decoration: underline;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    padding: 0;
}

body.order-form-page #display_pay_button #show_req_btn,
body.order-form-page #display_pay_button #show_pay_btn {
    display: block;
    width: 100%;
}

/* PAYMENT 페이지 스타일 */
body.payment-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    padding-bottom: 120px;
}

/* Payment 헤더 */
.payment-header {
    background: white;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-back-btn {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 진행 단계 */
.payment-progress-bar {
    background: white;
    padding: 16px;
    margin-top: 57px;
    border-bottom: 1px solid #f1f5f9;
}

.payment-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.payment-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    z-index: 10;
}

.payment-step-circle .material-icons {
    font-size: 16px;
    color: white;
}

.payment-progress-step.payment-progress-step-active .payment-step-circle {
    background: #8B5CF6;
    color: white;
}

.payment-progress-step.payment-progress-step-completed .payment-step-circle {
    background: #10b981;
    color: white;
}

.payment-step-label {
    font-size: 11px;
    color: #64748b;
}

.payment-progress-step.payment-progress-step-active .payment-step-label {
    color: #8B5CF6;
    font-weight: 500;
}

.payment-step-line {
    position: absolute;
    top: 14px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.payment-progress-step.payment-progress-step-completed .payment-step-line {
    background: #10b981;
}

.payment-progress-step:last-child .payment-step-line {
    display: none;
}

/* 결제 정보 요약 */
.payment-info {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.payment-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.payment-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.payment-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-weight: 600;
}

.payment-summary-label {
    font-size: 14px;
    color: #64748b;
}

.payment-summary-value {
    font-size: 14px;
    color: #333;
}

.payment-summary-total .payment-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #8B5CF6;
}

.payment-discount-value {
    color: #dc2626;
}

/* 결제 방법 표시 */
.payment-selected-method {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #faf5ff;
    border: 1px solid #8B5CF6;
    border-radius: 8px;
    margin-top: 12px;
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    background: #8B5CF6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.payment-method-icon .material-icons {
    font-size: 24px;
    color: white;
}

.payment-method-details {
    flex: 1;
}

.payment-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.payment-method-desc {
    font-size: 12px;
    color: #64748b;
}

/* 결제 폼 */
.payment-form {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
}

.payment-form.payment-form-active {
    display: block;
}

.payment-form-group {
    margin-bottom: 16px;
}

.payment-form-group:last-child {
    margin-bottom: 0;
}

.payment-form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.payment-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    font-family: inherit;
}

.payment-form-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.payment-form-input.payment-form-input-error {
    border-color: #dc2626;
}

.payment-form-row {
    display: flex;
    gap: 8px;
}

.payment-form-col {
    flex: 1;
}

.payment-form-help {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* 카드 선택 */
.payment-card-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.payment-card-option {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    background: white;
    transition: all 0.2s;
}

.payment-card-option:hover {
    border-color: #8B5CF6;
    background: #faf5ff;
}

.payment-card-option.payment-card-option-selected {
    border-color: #8B5CF6;
    background: #8B5CF6;
    color: white;
}

/* 보안 안내 */
.payment-security-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

.payment-security-title {
    font-size: 14px;
    font-weight: 500;
    color: #0369a1;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-security-title .material-icons {
    font-size: 16px;
    color: #0369a1;
}

.payment-security-desc {
    font-size: 12px;
    color: #075985;
    line-height: 1.4;
}

/* 결제 진행 상태 */
.payment-progress-status {
    background: white;
    padding: 40px 20px;
    margin-bottom: 8px;
    text-align: center;
    display: none;
}

.payment-progress-status.payment-progress-status-active {
    display: block;
}

.payment-progress-icon {
    width: 80px;
    height: 80px;
    background: #f0f9ff;
    border: 3px solid #8B5CF6;
    border-top-color: transparent;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: payment-spin 1s linear infinite;
}

@keyframes payment-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-progress-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.payment-progress-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.payment-progress-steps-list {
    margin-top: 20px;
    text-align: left;
}

.payment-progress-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #64748b;
}

.payment-progress-step-item .material-icons {
    font-size: 18px;
}

.payment-progress-step-item.payment-progress-step-item-completed {
    color: #10b981;
}

.payment-progress-step-item.payment-progress-step-item-completed .material-icons {
    color: #10b981;
}

.payment-progress-step-item.payment-progress-step-item-current {
    color: #8B5CF6;
    font-weight: 500;
}

.payment-progress-step-item.payment-progress-step-item-current .material-icons {
    color: #8B5CF6;
}

/* 간편결제 */
.payment-easy-payment {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
    display: none;
}

.payment-easy-payment.payment-easy-payment-active {
    display: block;
}

.payment-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 16px;
}

.payment-qr-code {
    width: 160px;
    height: 160px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
}

.payment-qr-code .material-icons {
    font-size: 64px;
    color: #8B5CF6;
}

.payment-qr-instructions {
    text-align: center;
}

.payment-qr-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.payment-qr-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* 하단 고정 버튼 */
.payment-bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    padding: 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.payment-amount {
    text-align: center;
    margin-bottom: 12px;
}

.payment-amount-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 4px;
}

.payment-amount-value {
    font-size: 24px;
    font-weight: 700;
    color: #8B5CF6;
}

.payment-btn {
    width: 100%;
    height: 52px;
    background: #8B5CF6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.payment-btn:hover:not(:disabled) {
    background: #7C3AED;
}

.payment-btn .material-icons {
    color: white;
}

.payment-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* 토스트 */
.payment-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
}

.payment-toast.payment-toast-show {
    opacity: 1;
}

/* 에러 메시지 */
.payment-error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* Payment 반응형 디자인 */
@media (max-width: 480px) {
    body.payment-page {
        padding-bottom: 120px;
    }
    
    .payment-info,
    .payment-selected-method,
    .payment-form,
    .payment-easy-payment,
    .payment-progress-status {
        padding: 16px;
    }
}

/* ORDER COMPLETE 페이지 스타일 */
body.order-complete-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    padding-bottom: 120px;
}

/* Order Complete 헤더 */
.order-complete-header {
    background: white;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-complete-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: center;
}

.order-complete-home-btn {
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 진행 단계 완료 */
.order-complete-progress-bar {
    background: white;
    padding: 16px;
    margin-top: 64px;
    border-bottom: 1px solid #f1f5f9;
}

.order-complete-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-complete-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.order-complete-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    z-index: 10;
}

.order-complete-step-circle .material-icons {
    font-size: 16px;
    color: white;
}

.order-complete-step-label {
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
}

.order-complete-step-line {
    position: absolute;
    top: 14px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #10b981;
    z-index: 1;
}

.order-complete-progress-step:last-child .order-complete-step-line {
    display: none;
}

/* 완료 메시지 */
.order-complete-success-section {
    background: white;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 8px;
    animation: order-complete-fadeIn 0.5s ease-out;
}

.order-complete-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.order-complete-success-icon .material-icons {
    font-size: 48px;
    color: white;
}

.order-complete-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.order-complete-success-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.order-complete-order-number-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.order-complete-order-number-label {
    font-size: 14px;
    color: #0369a1;
    margin-bottom: 6px;
}

.order-complete-order-number-value {
    font-size: 18px;
    font-weight: 700;
    color: #0c4a6e;
    letter-spacing: 0.5px;
}

/* 공유 기능 */
.order-complete-share-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.order-complete-share-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.order-complete-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.order-complete-share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    border: none;
}

.order-complete-share-btn:hover {
    border-color: #8B5CF6;
    background: #faf5ff;
}

/* 주문 정보 */
.order-complete-order-info {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
    animation: order-complete-fadeIn 0.5s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.order-complete-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-complete-order-date-time {
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.order-complete-date-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.order-complete-date-row:last-child {
    margin-bottom: 0;
}

.order-complete-date-label {
    font-size: 12px;
    color: #64748b;
}

.order-complete-date-value {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

/* 주문 상품 */
.order-complete-order-items {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
    animation: order-complete-fadeIn 0.5s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.order-complete-items-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-complete-items-count {
    font-size: 14px;
    color: #8B5CF6;
    font-weight: 500;
}

.order-complete-view-all-items {
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    text-decoration: underline;
}

.order-complete-seller-group {
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.order-complete-seller-group:last-child {
    margin-bottom: 0;
}

.order-complete-seller-header {
    background: #f8fafc;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.order-complete-seller-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    text-decoration: none;
}

.order-complete-seller-name:hover {
    color: #8B5CF6;
}

.order-complete-delivery-info {
    font-size: 12px;
    color: #10b981;
}

.order-complete-order-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

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

.order-complete-item-image {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.order-complete-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-complete-item-details {
    flex: 1;
}

.order-complete-item-brand {
    font-size: 12px;
    color: #8B5CF6;
    font-weight: 500;
    margin-bottom: 2px;
}

.order-complete-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
    text-decoration: none;
    display: block;
}

.order-complete-item-name:hover {
    color: #8B5CF6;
}

.order-complete-item-options {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.order-complete-item-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-complete-item-quantity {
    font-size: 12px;
    color: #64748b;
}

.order-complete-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 배송지 정보 */
.order-complete-delivery-section {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
    animation: order-complete-fadeIn 0.5s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.order-complete-address-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.order-complete-recipient-info {
    margin-bottom: 12px;
}

.order-complete-recipient-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.order-complete-recipient-phone {
    font-size: 14px;
    color: #64748b;
}

.order-complete-address-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.order-complete-delivery-request {
    font-size: 12px;
    color: #64748b;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #f1f5f9;
}

/* 결제 정보 */
.order-complete-payment-section {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
    animation: order-complete-fadeIn 0.5s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.order-complete-payment-method-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.order-complete-payment-method-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.order-complete-payment-icon {
    width: 32px;
    height: 32px;
    background: #8B5CF6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.order-complete-payment-details {
    flex: 1;
}

.order-complete-payment-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.order-complete-payment-desc {
    font-size: 12px;
    color: #64748b;
}

.order-complete-payment-amount-summary {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.order-complete-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-complete-amount-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-weight: 600;
}

.order-complete-amount-label {
    font-size: 14px;
    color: #64748b;
}

.order-complete-amount-value {
    font-size: 14px;
    color: #333;
}

.order-complete-amount-total .order-complete-amount-value {
    font-size: 18px;
    font-weight: 700;
    color: #8B5CF6;
}

.order-complete-discount-value {
    color: #dc2626;
}

/* 다음 단계 안내 */
.order-complete-next-steps {
    background: white;
    padding: 20px;
    margin-bottom: 120px;
    animation: order-complete-fadeIn 0.5s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.order-complete-steps-list {
    margin-top: 16px;
}

.order-complete-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #8B5CF6;
}

.order-complete-step-item:last-child {
    margin-bottom: 0;
}

.order-complete-step-number {
    width: 24px;
    height: 24px;
    background: #8B5CF6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.order-complete-step-content {
    flex: 1;
}

.order-complete-step-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.order-complete-step-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* 하단 고정 버튼 */
.order-complete-bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    padding: 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.order-complete-action-buttons {
    display: flex;
    gap: 8px;
}

.order-complete-btn-secondary {
    flex: 1;
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.order-complete-btn-secondary:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.order-complete-btn-primary {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #8B5CF6;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-complete-btn-primary:hover {
    background: #7C3AED;
}

/* 토스트 */
.order-complete-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
}

.order-complete-toast.order-complete-toast-show {
    opacity: 1;
}

/* 애니메이션 */
@keyframes order-complete-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order Complete 반응형 디자인 */
@media (max-width: 480px) {
    body.order-complete-page {
        padding-bottom: 120px;
    }
    
    .order-complete-order-info,
    .order-complete-order-items,
    .order-complete-delivery-section,
    .order-complete-payment-section,
    .order-complete-next-steps {
        padding: 16px;
    }
    
    .order-complete-item-image {
        width: 50px;
        height: 50px;
    }
}

/* PRODUCT DETAIL 페이지 스타일 */
body.product-detail-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* Product Detail 헤더 */
.prod-detail-header {
    background: white;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prod-detail-back-btn {
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-detail-search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prod-detail-header-actions .material-icons {
    color: #64748b;
    font-size: 24px;
}

.prod-detail-search-btn .material-icons {
    cursor: pointer;
}

.prod-detail-home-link,
.prod-detail-cart-link {
    position: relative;
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-detail-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* 상품 이미지 갤러리 */
.prod-detail-product-gallery {
    margin-top: 55px;
    background: white;
    position: relative;
}

.prod-detail-gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.prod-detail-gallery-slides {
    display: flex;
    transition: transform 0.3s ease;
}

.prod-detail-gallery-slide {
    min-width: 100%;
}

.prod-detail-gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.prod-detail-gallery-indicators {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 상품 기본 정보 */
.prod-detail-product-info {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.prod-detail-product-brand {
    font-size: 14px;
    color: #8B5CF6;
    font-weight: 500;
    margin-bottom: 8px;
}

.prod-detail-product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
}

.prod-detail-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.prod-detail-stars {
    display: flex;
    gap: 2px;
}

.prod-detail-stars .material-icons {
    font-size: 18px;
    color: #fbbf24;
}

.prod-detail-rating-score {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.prod-detail-rating-count {
    font-size: 14px;
    color: #64748b;
}

.prod-detail-product-price {
    margin-bottom: 20px;
}

.prod-detail-discount-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.prod-detail-discount-rate {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.prod-detail-original-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.prod-detail-current-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.prod-detail-price-unit {
    font-size: 16px;
    color: #333;
}

.prod-detail-delivery-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.prod-detail-delivery-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.prod-detail-delivery-row:last-child {
    margin-bottom: 0;
}

.prod-detail-delivery-label {
    font-size: 14px;
    color: #64748b;
}

.prod-detail-delivery-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.prod-detail-free-delivery {
    color: #10b981;
    font-weight: 600;
}

/* 판매자 정보 */
.prod-detail-seller-info {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.prod-detail-seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.prod-detail-seller-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prod-detail-seller-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.prod-detail-seller-home-link {
    color: #8B5CF6;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-detail-seller-home-link .material-icons {
    font-size: 20px;
}

.prod-detail-follow-btn {
    padding: 8px 16px;
    border: 1px solid #8B5CF6;
    border-radius: 20px;
    background: white;
    color: #8B5CF6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prod-detail-follow-btn:hover {
    background: #8B5CF6;
    color: white;
}

.prod-detail-follow-btn-following {
    background: #8B5CF6;
    color: white;
}

.prod-detail-follow-own {
    padding: 8px 16px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.prod-detail-seller-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.prod-detail-stat-item {
    text-align: center;
}

.prod-detail-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.prod-detail-stat-label {
    font-size: 12px;
    color: #64748b;
}

/* 탭 네비게이션 */
.prod-detail-tab-navigation {
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 64px;
    z-index: 90;
}

.prod-detail-tab-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.prod-detail-tab-nav-item {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.prod-detail-tab-nav-item.active {
    color: #8B5CF6;
    border-bottom-color: #8B5CF6;
    font-weight: 600;
}

/* 탭 컨텐츠 */
.prod-detail-tab-content {
    display: none;
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

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

.prod-detail-product-description {
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
}

.prod-detail-product-description p {
    margin-bottom: 12px;
}

.prod-detail-product-specs {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.prod-detail-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.prod-detail-spec-row:last-child {
    border-bottom: none;
}

.prod-detail-spec-label {
    font-size: 14px;
    color: #64748b;
}

.prod-detail-spec-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 리뷰 섹션 */
.prod-detail-review-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.prod-detail-review-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.prod-detail-score-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.prod-detail-score-stars {
    display: flex;
    gap: 2px;
}

.prod-detail-score-stars .material-icons {
    font-size: 20px;
    color: #fbbf24;
}

.prod-detail-score-count {
    font-size: 14px;
    color: #64748b;
}

.prod-detail-review-item {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.prod-detail-review-item:last-child {
    border-bottom: none;
}

.prod-detail-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.prod-detail-reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prod-detail-reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.prod-detail-review-rating {
    display: flex;
    gap: 2px;
}

.prod-detail-review-rating .material-icons {
    font-size: 16px;
    color: #fbbf24;
}

.prod-detail-review-date {
    font-size: 12px;
    color: #94a3b8;
}

.prod-detail-review-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.prod-detail-review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.prod-detail-review-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.prod-detail-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Q&A 섹션 */
.prod-detail-qa-item {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.prod-detail-qa-item:last-child {
    border-bottom: none;
}

.prod-detail-question,
.prod-detail-answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.prod-detail-answer {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.prod-detail-qa-label {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8B5CF6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.prod-detail-qa-label-answer {
    background: #10b981;
}

.prod-detail-qa-content {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.prod-detail-qa-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

/* 하단 고정 액션 바 */
.prod-detail-bottom-action {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prod-detail-action-buttons {
    display: flex;
    gap: 8px;
}

.prod-detail-action-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prod-detail-action-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.prod-detail-action-btn.active {
    border-color: #ef4444;
    color: #ef4444;
}

.prod-detail-action-btn .material-icons {
    font-size: 24px;
}

.prod-detail-purchase-buttons {
    display: flex;
    gap: 8px;
    flex: 1;
}

.prod-detail-cart-btn {
    flex: 1;
    height: 44px;
    border: 1px solid #8B5CF6;
    border-radius: 8px;
    background: white;
    color: #8B5CF6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prod-detail-cart-btn:hover {
    background: #faf5ff;
}

.prod-detail-buy-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prod-detail-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.prod-detail-bottom-card--guest .prod-detail-bottom-action-inner {
    align-items: center;
    gap: 10px;
}

.prod-detail-guest-msg {
    margin: 0 0 10px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
}

a.prod-detail-login-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* 모달 */
.prod-detail-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}

.prod-detail-quantity-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 201;
    max-height: 80vh;
    overflow-y: auto;
}

.prod-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.prod-detail-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.prod-detail-modal-close {
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prod-detail-modal-close .material-icons {
    font-size: 24px;
    line-height: 1;
}

.prod-detail-quantity-section {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.prod-detail-quantity-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.prod-detail-quantity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.prod-detail-quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prod-detail-quantity-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.prod-detail-quantity-input {
    flex: 1;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.prod-detail-total-price {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-detail-total-label {
    font-size: 14px;
    color: #64748b;
}

.prod-detail-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #8B5CF6;
}

.prod-detail-modal-buttons {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.prod-detail-modal-cart-btn {
    flex: 1;
    height: 52px;
    border: 1px solid #8B5CF6;
    border-radius: 8px;
    background: white;
    color: #8B5CF6;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prod-detail-modal-cart-btn:hover {
    background: #faf5ff;
}

.prod-detail-modal-buy-btn {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prod-detail-modal-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Product Detail 반응형 디자인 */
@media (max-width: 480px) {
    body.product-detail-page {
        padding-bottom: 100px;
    }
    
    .prod-detail-product-info,
    .prod-detail-seller-info,
    .prod-detail-tab-content {
        padding: 16px;
    }
    
    .prod-detail-seller-stats {
        gap: 12px;
    }
    
    .prod-detail-stat-value {
        font-size: 14px;
    }
}

/* 주문완료/주문상세내역(orderinquiryview.php) */
body.order-inquiry-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    padding-bottom: 120px;
}

body.order-inquiry-page #container {
    max-width: 414px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

body.order-inquiry-page #sod_fin {
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

body.order-inquiry-page #sod_fin_no {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

body.order-inquiry-page #sod_fin_no strong {
    color: #111;
    font-weight: 700;
}

body.order-inquiry-page .sod_fin_list h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 12px;
    padding: 0 16px;
}

body.order-inquiry-page #sod_list_inq.sod_list {
    list-style: none;
    margin: 0;
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

body.order-inquiry-page li.sod_li {
    margin: 0;
    padding: 16px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

body.order-inquiry-page li.sod_li .li_op_wr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.order-inquiry-page li.sod_li .li_name {
    flex: 1;
    min-width: 0;
}

body.order-inquiry-page li.sod_li .li_name a {
    color: #333;
    text-decoration: none;
}

body.order-inquiry-page li.sod_li .li_name strong {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    display: block;
    line-height: 1.3;
}

body.order-inquiry-page li.sod_li .total_img {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 10px;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

body.order-inquiry-page li.sod_li .total_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.order-inquiry-page li.sod_li .sod_opt {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

body.order-inquiry-page li.sod_li .li_prqty {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

body.order-inquiry-page li.sod_li .li_prqty_sp {
    white-space: nowrap;
}

body.order-inquiry-page li.sod_li .total_price.total_span {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

body.order-inquiry-page li.sod_li .total_price.total_span strong {
    color: #111;
    font-weight: 700;
}

body.order-inquiry-page #sod_fin_view {
    padding: 0 16px 16px;
    box-sizing: border-box;
}

body.order-inquiry-page #sod_fin_view > h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}

body.order-inquiry-page #sod_fin_pay,
body.order-inquiry-page #sod_fin_orderer,
body.order-inquiry-page #sod_fin_receiver,
body.order-inquiry-page #sod_fin_dvr,
body.order-inquiry-page #sod_fin_tot,
body.order-inquiry-page #sod_fin_cancel,
body.order-inquiry-page #sod_sts_wrap {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 12px;
    box-sizing: border-box;
}

body.order-inquiry-page #sod_fin_pay h3,
body.order-inquiry-page #sod_fin_orderer h3,
body.order-inquiry-page #sod_fin_receiver h3,
body.order-inquiry-page #sod_fin_dvr h3,
body.order-inquiry-page #sod_fin_tot h3,
body.order-inquiry-page #sod_fin_cancel h3,
body.order-inquiry-page #sod_sts_wrap h2 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

body.order-inquiry-page .odf_tbl table,
body.order-inquiry-page .tbl_head01 table,
body.order-inquiry-page .tbl_head03 table {
    width: 100%;
    border-collapse: collapse;
}

body.order-inquiry-page .odf_tbl th,
body.order-inquiry-page .odf_tbl td,
body.order-inquiry-page #sod_fin_pay th,
body.order-inquiry-page #sod_fin_pay td {
    display: block;
    width: 100%;
    padding: 6px 0;
    border: 0;
    text-align: left;
    box-sizing: border-box;
    font-size: 13px;
}

body.order-inquiry-page .odf_tbl th,
body.order-inquiry-page #sod_fin_pay th {
    color: #64748b;
    font-weight: 500;
}

body.order-inquiry-page .btn_frmline {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    color: #64748b;
}

body.order-inquiry-page .btn_confirm .btn_submit,
body.order-inquiry-page .btn_confirm {
    max-width: 100%;
}

/* 배송지 목록 팝업(orderaddress.php) */
body.order-address-modal-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #111;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.order-address-modal-page #sod_addr.new_win {
    max-width: 414px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

body.order-address-modal-page #win_title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
    padding: 0;
}

body.order-address-modal-page .win_btn {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 4px;
}

body.order-address-modal-page .btn_submit {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #8B5CF6;
    background: #8B5CF6;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

body.order-address-modal-page .btn_close {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}

body.order-address-modal-page .tbl_head03.tbl_wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    background: #fff;
}

body.order-address-modal-page .tbl_head03.tbl_wrap table {
    width: 100%;
    border-collapse: collapse;
}

body.order-address-modal-page .tbl_head03.tbl_wrap th {
    background: #f8fafc;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

body.order-address-modal-page .tbl_head03.tbl_wrap td {
    font-size: 13px;
    color: #111;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

body.order-address-modal-page .tbl_head03.tbl_wrap tbody tr:last-child td {
    border-bottom: none;
}

/* 체크박스(기본 UI) */
body.order-address-modal-page .chk_box input.selec_chk {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
}

body.order-address-modal-page .chk_box label span {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

body.order-address-modal-page .chk_box input.selec_chk:checked + label span {
    background: #8B5CF6;
    border-color: #8B5CF6;
}

body.order-address-modal-page .chk_box input.selec_chk:checked + label span::after {
    content: '';
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: -1px;
}

body.order-address-modal-page .frm_input,
body.order-address-modal-page input[type="text"],
body.order-address-modal-page textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

/* 모바일 팝업(list_01) */
body.order-address-modal-page #sod_addr.new_win .list_01 ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.order-address-modal-page #sod_addr.new_win .list_01 li {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
}

body.order-address-modal-page .addr_title {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.order-address-modal-page .addr_btn {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}

body.order-address-modal-page .btn_sel.sel_address {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #8B5CF6;
    background: #8B5CF6;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

body.order-address-modal-page .del_address,
body.order-address-modal-page .del_address:visited {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

body.order-address-modal-page .add_lb,
body.order-address-modal-page .default_lb {
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

/* 주문/배송지용 풀스크린 레이어(2~3번 이미지 스타일) */
body.order-address-modal-page .order-address-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    padding: 0;
    margin: 0;
    max-width: none;
}

/* 기존 #sod_addr.new_win 기본 padding/max-width 제거(충돌 방지) */
body.order-address-modal-page #sod_addr.new_win.order-address-modal {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

body.order-address-modal-page .order-address-sheet {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 414px;
    height: calc(100% - 64px);
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.order-address-modal-page .order-address-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

body.order-address-modal-page .order-address-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

body.order-address-modal-page .order-address-sheet-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

body.order-address-modal-page .order-address-sheet-content {
    flex: 1;
    overflow: auto;
    padding: 12px 14px 14px;
}

body.order-address-modal-page .order-address-radio-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.order-address-modal-page .order-address-radio-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0;
}

body.order-address-modal-page .order-address-radio-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
}

body.order-address-modal-page .order-address-radio-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px 14px 44px;
    position: relative;
    cursor: pointer;
}

body.order-address-modal-page .order-address-radio-label::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    position: absolute;
    left: 14px;
    top: 16px;
    background: #fff;
    box-sizing: border-box;
}

body.order-address-modal-page .order-address-radio-input:checked ~ .order-address-radio-label::before {
    border-color: #8B5CF6;
    box-shadow: inset 0 0 0 5px #8B5CF6;
}

body.order-address-modal-page .order-address-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.order-address-modal-page .order-address-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

body.order-address-modal-page .order-address-default-badge {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #8B5CF6;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

body.order-address-modal-page .order-address-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

body.order-address-modal-page .order-address-card-address {
    font-size: 13px;
    color: #475569;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.order-address-modal-page .order-address-card-tel {
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 6px;
    align-items: center;
}

body.order-address-modal-page .order-address-card-tel-sep {
    color: #94a3b8;
}

body.order-address-modal-page .order-address-pagination {
    margin-top: 10px;
}

body.order-address-modal-page .order-address-sheet-actions {
    padding: 12px 14px 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.order-address-modal-page .order-address-action-secondary {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #8B5CF6;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

body.order-address-modal-page .order-address-action-primary {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

body.order-address-modal-page .order-address-edit-layer {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    overflow: auto;
}

body.order-address-modal-page .order-address-edit-header {
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

body.order-address-modal-page .order-address-edit-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

body.order-address-modal-page .order-address-edit-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #111827;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

body.order-address-modal-page .order-address-edit-body {
    padding: 14px 16px 18px;
}

body.order-address-modal-page .order-address-form-field {
    margin-bottom: 12px;
}

body.order-address-modal-page .order-address-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

body.order-address-modal-page .order-address-form-field-title {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

body.order-address-modal-page .order-address-request-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.order-address-modal-page .order-address-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
}

body.order-address-modal-page .order-address-agree label.chk_box {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

body.order-address-modal-page .order-address-agree .selec_chk {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
}

body.order-address-modal-page .order-address-agree label.chk_box > span:first-of-type {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

body.order-address-modal-page .order-address-agree .selec_chk:checked + span:first-of-type {
    border-color: #8B5CF6;
    background: #8B5CF6;
}

body.order-address-modal-page .order-address-agree .selec_chk:checked + span:first-of-type::after {
    content: '';
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: -1px;
}

body.order-address-modal-page .order-address-agree-label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

body.order-address-modal-page .order-address-edit-footer {
    padding: 0 16px 18px;
}

/* 주소검색(우편번호) 입력 행 - 배송지 등록/수정 레이어 */
body.order-address-modal-page .order-address-zip-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    align-items: center;
    width: 100%;
}

body.order-address-modal-page .order-address-zip-row .frm_input {
    flex: 1;
    height: 44px;
    width: auto !important;
    display: block;
    margin: 0;
}

body.order-address-modal-page .btn_address {
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    color: #334155;
    white-space: nowrap;
}

/* 우편번호 찾기 버튼(3번 이미지 스타일) */
body.order-address-modal-page .order-address-zip-search-btn.btn_address {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    font-weight: 700;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.order-address-modal-page .order-address-zip-search-btn.btn_address:hover {
    filter: brightness(0.98);
}

/* 주문서(모바일) 배송지목록 하단 모달(iframe) */
body.order-form-page .order-address-bottom-sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    background: transparent;
}

body.order-form-page .order-address-bottom-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

body.order-form-page .order-address-bottom-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    /* flex 안의 iframe이 제대로 높이를 잡도록 고정 높이 지정 */
    height: 90vh;
    max-height: 90vh;
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
}

body.order-form-page .order-address-bottom-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

body.order-form-page .order-address-bottom-sheet-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

body.order-form-page .order-address-bottom-sheet-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

body.order-form-page .order-address-bottom-sheet-iframe {
    border: 0;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    background: #fff;
}

/* 매장홈(shop_home): 갤러리 슬라이드 · 위치 레이어 지도 */
body.shop-home-page .shop-home-hero-slider {
    position: relative;
    width: 100%;
    height: 220px;
    max-height: 52vh;
}
body.shop-home-page .shop-home-hero-slides {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    height: 100%;
    touch-action: pan-x pinch-zoom;
    overscroll-behavior-x: contain;
}
body.shop-home-page .shop-home-hero-slides::-webkit-scrollbar {
    display: none;
}
body.shop-home-page .shop-home-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100%;
}
body.shop-home-page .shop-home-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
body.shop-home-page .shop-home-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
body.shop-home-page .shop-home-hero-nav .material-icons {
    font-size: 28px;
    line-height: 1;
}
body.shop-home-page .shop-home-hero-nav:active {
    background: #fff;
}
body.shop-home-page .shop-home-hero-nav-prev {
    left: 8px;
}
body.shop-home-page .shop-home-hero-nav-next {
    right: 8px;
}
/* 리스트(.sd-hs-card-dots)와 동일: gap 6px · 6px 원 — 레이아웃 폭만 좁게, 터치는 ::before로 확장 */
body.shop-home-page .shop-home-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 2;
    pointer-events: auto;
}
body.shop-home-page .shop-home-hero-dot {
    position: relative;
    width: 6px;
    height: 6px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
body.shop-home-page .shop-home-hero-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
}
body.shop-home-page .shop-home-hero-dot.is-on {
    background: #fff;
    transform: scale(1.15);
}

body.shop-home-page .shop-home-loc-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
body.shop-home-page .shop-home-loc-modal[hidden] {
    display: none !important;
}
body.shop-home-page .shop-home-loc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
body.shop-home-page .shop-home-loc-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px 18px 24px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}
body.shop-home-page .shop-home-loc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
body.shop-home-page .shop-home-loc-head strong {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}
body.shop-home-page .shop-home-loc-close {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
body.shop-home-page .shop-home-loc-addr {
    margin: 0 0 12px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}
body.shop-home-page .shop-home-loc-map {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 12px;
}
body.shop-home-page .shop-home-loc-ext {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}
body.shop-home-page .shop-home-loc-ext:hover {
    text-decoration: underline;
}

/* seller_store_setup.php */
body.seller-store-setup-page .header,
body.seller-store-setup-page .bottom-nav { display: none !important; }
body.seller-store-setup-page .shop-wrapper { padding: 0 !important; margin: 0 !important; }
body.seller-store-setup-page .sd-setup-wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; background: linear-gradient(180deg, #f8fafc, #f1f5f9); font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body.seller-store-setup-page .sd-setup-wrap * { box-sizing: border-box; }
body.seller-store-setup-page .sd-setup-top { position: sticky; top: 0; z-index: 20; height: 54px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid #e6ebf2; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
body.seller-store-setup-page .sd-setup-top h1 { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; letter-spacing: -.01em; }
body.seller-store-setup-page .sd-setup-btn { width: 34px; height: 34px; border: none; background: transparent; font-size: 22px; line-height: 1; color: #0f172a; padding: 0; cursor: pointer; border-radius: 10px; }
body.seller-store-setup-page .sd-setup-btn:active { background: #f1f5f9; }
body.seller-store-setup-page .sd-setup-form { padding: 14px; }
body.seller-store-setup-page .sd-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 15px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
body.seller-store-setup-page .sd-section-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #111827; }
body.seller-store-setup-page .sd-field { margin-top: 12px; }
body.seller-store-setup-page .sd-field:first-child {/* margin-top: 0; */}
body.seller-store-setup-page .sd-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
body.seller-store-setup-page .sd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
body.seller-store-setup-page .sd-row .sd-field { display: flex; flex-direction: column; justify-content: flex-start; }
body.seller-store-setup-page .sd-row .sd-field label { min-height: 20px; display: flex; align-items: center; }
body.seller-store-setup-page .sd-action { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(241, 245, 249, 0), #f1f5f9 35%); padding: 10px 0 14px; }
body.seller-store-setup-page .sd-save { width: 100%; height: 48px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 20px rgba(124, 58, 237, .25); }
body.seller-store-setup-page .sd-save:active { transform: translateY(1px); }
body.seller-store-setup-page .sd-setup-wrap .frm_input { width: 100%; height: 42px; border: 1px solid #d6deea; border-radius: 10px; background: #fff; padding: 0 12px; font-size: 14px; color: #0f172a; }
body.seller-store-setup-page .sd-setup-wrap textarea.frm_input { height: auto; padding: 10px 12px; line-height: 1.45; }
body.seller-store-setup-page .sd-setup-wrap .frm_input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
body.seller-store-setup-page .sd-addr-row { display: flex; gap: 8px; }
body.seller-store-setup-page .sd-addr-row .frm_input { flex: 1; }
body.seller-store-setup-page .sd-find-btn { min-width: 88px; height: 42px; border: 1px solid #7c3aed; background: #7c3aed; color: #fff; border-radius: 10px; font-size: 13px; font-weight: 600; }
body.seller-store-setup-page .sd-help { font-size: 12px; color: #64748b; margin-top: 6px; }
body.seller-store-setup-page .sd-profile-row { display: flex; align-items: center; gap: 10px; }
body.seller-store-setup-page .sd-profile-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid #dbe1ea; background: #fff; }
body.seller-store-setup-page .sd-textarea-lg { min-height: 88px; }
body.seller-store-setup-page .sd-textarea-sm { min-height: 64px; }
body.seller-store-setup-page .sd-mt-6 { margin-top: 6px; }
body.seller-store-setup-page .sd-mt-16 { margin-top: 16px; }
@media (max-width: 360px) {
  body.seller-store-setup-page .sd-row { grid-template-columns: 1fr; }
  body.seller-store-setup-page .sd-setup-form { padding: 12px; }
}
