
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f7;
        }
        
        .container {
            max-width: 640px;
            margin: 0 auto;
            padding: 0;
            background-color: #fff;
        }
        
        header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 70%), #fff;
            position: sticky;
            top: 0;
            z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            max-width: 640px;
            margin: 0 auto;
        }
        
        .header-content {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            padding: 12px 16px;
            width: 100%;
            flex-wrap: nowrap;
            min-height: 56px;
    white-space: normal;
        }
        .header-left {
            display: flex !important;
            align-items: center !important;
            gap: 8px;
            margin-right: auto;
        }
        
        .logo {
            font-size: 20px;
            font-weight: bold;
            color: #212124;
            text-decoration: none;
            display: flex !important;
            align-items: center;
            flex: 0 0 auto;
            margin-left: 0;
        }
        
        .logo img {
            height: 32px;
            width: auto;
            display: block;
            flex-shrink: 0;
        }
        
        .header-icons {
            display: flex !important;
            gap: 16px;
            align-items: center;
            flex: 0 0 auto;
            margin-left: auto;
        }
        
        .icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 0;
        }
        .icon-btn svg { display: block; }
        
        .icon-btn svg {
            width: 24px;
            height: 24px;
        }
        
        .search-bar {
            padding: 8px 16px 12px;
            background-color: #fff;
        }
        
        .search-bar input {
            width: 100%;
            padding: 12px 16px 12px 44px;
            border: 1px solid rgba(0,0,0,0.06);
            border-radius: 24px;
            font-size: 15px;
            background-color: #fff;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23868b94" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>');
            background-repeat: no-repeat;
            background-position: 12px center;
            background-size: 20px 20px;
            box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 2px 8px rgba(0,0,0,0.06);
        }
        
        .search-bar input::placeholder {
            color: #b4b4b4;
        }
        
        main {
            min-height: calc(100vh - 200px);
            padding-bottom: 80px;
        }
        
        footer {
            display: none;
        }
        
        .messages {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 1000;
            min-width: 300px;
        }
        
        .alert {
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .alert-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .alert-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .alert-info {
            background-color: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }
    

    .search-bar {
        display: none !important;
    }
    

    


        
        .product-detail-container {
            max-width: 640px;
        margin: 0 auto;
        background-color: #fff;
        min-height: 100vh;
            position: relative;
        }
        
        .image-container {
            position: relative;
            width: 100%;
            aspect-ratio: 1;
            overflow: hidden;
        background-color: #f0f0f0;
        }
        
        .image-carousel {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
            touch-action: pan-y pinch-zoom;
            cursor: grab;
        }
        
        .image-carousel:active {
            cursor: grabbing;
        }
        
        .carousel-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
            user-select: none;
            pointer-events: none;
        }
        
        .carousel-image.active {
            opacity: 1;
            z-index: 1;
        }
    
    /* 스와이프 중 임시 표시 */
    .image-carousel.dragging .carousel-image {
        transition: none;
    }
        
        .image-counter {
            position: absolute;
            bottom: 48px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0,0,0,0.6);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            z-index: 5;
            pointer-events: none;
        }
        
        .status-badge {
            position: absolute;
            top: 12px;
            left: 12px;
        background-color: rgba(0,0,0,0.85);
        color: white;
            padding: 6px 12px;
        border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            z-index: 5;
            pointer-events: none;
        }
        
        .heart-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            z-index: 10;
            pointer-events: auto;
        }
        
        .product-info {
        padding: 16px;
        }
        
        .product-title {
        font-size: 22px;
            font-weight: 700;
        margin-bottom: 8px;
            line-height: 1.4;
        }
        
        .product-price {
        font-size: 24px;
            font-weight: 700;
        color: #000;
        margin-bottom: 8px;
        }
        
        .product-price-unit {
            font-size: 14px;
        color: #888;
        }
        
    .product-summary {
        font-size: 12px;
        color: #666;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #e0e0e0;
        }
        
        .product-details {
            font-size: 13px;
            line-height: 1.8;
        }
        
        .detail-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
        }
        
        .detail-label {
            color: #666;
        }
        
        .detail-value {
            color: #333;
            font-weight: 500;
        }
        
        .product-description {
        padding: 16px;
        /* border-top: 8px solid #f5f5f5; */
        /* margin-top: 16px; */
            font-size: 16px;
            line-height: 1.6;
            color: #333;
            white-space: pre-wrap;
            word-wrap: break-word;
        text-indent: 0 !important;  /* 들여쓰기 제거 */
    }
    
    /* 첫 줄 들여쓰기 완전 제거 */
    .product-description::first-line {
            text-indent: 0 !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        }
        
    /* 기본 정보 섹션 */
        .basic-info-section {
        padding: 16px;
        /* border-bottom: 8px solid #f5f5f5; */
        }
        
        .section-title {
            font-size: 16px;
            font-weight: 700;
            color: #333;
            margin: 0 0 12px 0;
        }
        
        .info-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        .info-row {
            display: flex;
            align-items: flex-start;
        }
        
        .info-label {
            font-size: 14px;
            color: #666;
            min-width: 80px;
            flex-shrink: 0;
        }
        
        .info-value {
            font-size: 14px;
            color: #333;
            flex: 1;
        }
        
        .more-info-link {
            display: inline-block;
            margin-top: 4px;
            font-size: 13px;
            color: #0066ff;
            text-decoration: underline;
            cursor: pointer;
        }
        
    .more-info-link:hover {
        color: #0052cc;
    }
    
    /* 거래 방식 섹션 */
        .trade-method-section {
        padding: 16px;
        /* border-bottom: 8px solid #f5f5f5; */
        }
        
    /* 안전거래 상품 섹션 */
        .safety-notice-container {
        margin: 16px;
        padding: 16px;
        background-color: #E6F3FF;
        border-radius: 8px;
        }
        
        .safety-title {
            font-size: 16px;
            font-weight: 700;
            color: #1549f2;
            margin: 0 0 12px 0;
        }
        
        .safety-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .safety-item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 14px;
            color: #333;
            line-height: 1.5;
        }
        
        .check-icon {
            flex-shrink: 0;
            margin-top: 2px;
            width: 20px;
            height: 20px;
        }
        
    .safety-item span {
        flex: 1;
    }
    
    /* 판매자 정보 섹션 */
        .seller-info-section {
            padding: 16px;
            background-color: #fff;
        }
        
        .seller-info-title {
            font-size: 16px;
            font-weight: 700;
            color: #333;
            margin: 0 0 12px 0;
            padding: 0;
        }
        
        .seller-card {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .seller-profile-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }
        
        .seller-profile {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .seller-avatar {
            flex-shrink: 0;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #F3F4F6;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
    
    .seller-avatar svg {
        width: 50px;
        height: 50px;
    }
        
        .seller-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .seller-name-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .seller-name {
            font-size: 16px;
            font-weight: 400;
            color: #333;
            line-height: 1.5;
        }
    
    .verification-icon {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }
        
        .seller-action {
            margin-top: 4px;
        }
        
        .seller-info-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 10px 16px;
            background-color: #fff;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            font-weight: 400;
        transition: background-color 0.2s, border-color 0.2s;
            cursor: pointer;
        }
        
    .seller-info-btn:hover {
        background-color: #F9FAFB;
        border-color: #D1D5DB;
    }
    
    .seller-info-btn:active {
        background-color: #F3F4F6;
    }
    
    .seller-info-btn-text {
        flex: 1;
        text-align: left;
    }
    
    .seller-info-btn svg {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        color: #666;
        margin-left: 8px;
    }
    
    /* 가격 안내 섹션 */
        .price-notice-container {
            margin: 16px 0;
    
        }
        
        .price-notice-btn {
            width: 100%;
            padding: 0;
            background-color: transparent;
            border: none;
        border-radius: 0;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            text-align: left;
        transition: none;
            line-height: 1.5;
        }
    
    .price-notice-btn:hover {
        background-color: transparent;
    }
        
        .price-notice-btn .free-shipping {
            display: inline;
            color: #0066FF;
            font-size: 14px;
            font-weight: 600;
            margin-right: 4px;
            line-height: 1.5;
        }
        
        .price-notice-btn-text {
            flex: 1;
            text-align: left;
            font-size: 14px;
            color: #333;
            line-height: 1.5;
        }
        
        .toggle-icon {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        transition: transform 0.3s ease;
            color: #666;
        }
    
    .toggle-icon-path {
        transition: transform 0.3s ease;
    }
    
        
        .price-table-wrapper {
            margin-top: 8px;
            padding: 16px;
            background-color: #fff;
        /* border: 1px solid #e0e0e0; */
            border-radius: 8px;
            display: none;
        }
        
        .price-table-wrapper.opened {
            display: block;
        }
    
    .price-table {
        width: 100%;
    }
        
        .price-table table {
            width: 100%;
            border-collapse: collapse;
        border-spacing: 0;
        margin: 0;
        border: none;
    }
    
    .price-table table tr {
        border: none;
        border-bottom: none;
        border-top: none;
    }
    
    .price-table tbody tr {
        border-bottom: none;
        border-top: none;
    }
    
    .price-table tbody tr:first-child {
        border-top: none;
    }
    
    .price-table tbody tr:last-child {
        border-bottom: none;
    }
    
    .price-table tfoot tr {
        border-top: none;
        border-bottom: none;
        }
        
        .price-table tbody th {
            font-size: 13px;
            color: #666;
            font-weight: 400;
            text-align: left;
            padding: 8px 0;
        vertical-align: middle;
        border: none;
        border-bottom: none;
        border-top: none;
        }
        
        .price-table tbody td {
            font-size: 13px;
            color: #333;
            text-align: right;
            padding: 8px 0;
        vertical-align: middle;
        border: none;
        border-bottom: none;
        border-top: none;
    }
    
    .price-table tfoot {
        border-top: none;
        margin-top: 0;
        }
        
    .price-table tfoot th {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        padding: 8px 0;
        text-align: left;
    }
    
        .price-table tfoot td {
            font-size: 13px;
            font-weight: 600;
            color: #333;
            padding: 8px 0;
        text-align: right;
        }
        
        .price-notice-text {
            font-size: 12px;
            color: #999;
            line-height: 1.6;
            margin: 12px 0 0 0;
        padding: 0;
        }
        
        .bottom-actions {
        position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: 640px;
            margin: 0 auto;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        padding: 12px 16px 16px;
            display: flex;
            gap: 8px;
        }
        
        .btn-inquiry {
            flex: 0 0 auto;
            width: 48px;
            height: 48px;
            padding: 0;
        border: 1px solid rgba(208, 208, 208, 0.2);
        background-color: #fff;
        border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-inquiry img {
            width: 24px;
            height: 24px;
        }
        
        .btn-purchase {
            flex: 1;
        padding: 12px 16px;
        background-color: #000;
            color: white;
            border: none;
        border-radius: 8px;
        font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
    }
    
    .btn-purchase:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }
    
    .btn-purchase.sold-out {
        background-color: #999;
        }
        
    /* 안전거래 안내 배너 */
        .safety-notice-banner {
            position: absolute;
        /* top: 0; */
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(37, 99, 235, 0.92);
            color: #fff;
            text-align: center;
            padding: 10px 16px;
            font-size: 13px;
            font-weight: 600;
            z-index: 15;
            border-radius: 0;
            line-height: 1.4;
        /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
        }
    