/* ============================================
   ONE Store Style - App Download Page
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Skip Navigation */
.skip-wrap {
    position: absolute;
}

.skip {
    position: absolute;
    top: -100px;
    left: 0;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
}

.skip:focus {
    top: 0;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.search-link {
    display: flex;
    align-items: center;
}

/* Main Content */
.detail-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* App Info Section */
.main-info-wrap {
    padding: 20px 16px;
    border-bottom: 8px solid #f5f5f5;
}

.main-info {
    display: flex;
    gap: 16px;
}

.info-header {
    flex: 1;
}

.title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

.thumbnail-wrap {
    flex-shrink: 0;
}

.thumbnail {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 80px;
    height: 80px;
}

.thumbnail.thumbnail-person {
    width: 80px;
    height: 100px;
    border-radius: 12px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Download Button */
.button-wrap {
    padding: 16px;
}

.download-button {
    display: block;
    background: #3d3d5c;
    color: #fff;
    text-align: center;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: #2d2d4c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 61, 92, 0.4);
}

.download-button em {
    font-style: normal;
}

.pay-info-wrap {
    padding: 0 16px 16px;
    text-align: right;
}

.pay-info-wrap ul {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pay-info-wrap li {
    font-size: 12px;
    color: #666;
    text-decoration: underline;
}

/* Key Info Section */
.key-info-wrap {
    padding: 16px;
    border-top: 1px solid #eee;
    border-bottom: 8px solid #f5f5f5;
}

.key-info-list {
    display: flex;
    justify-content: space-around;
}

.key-info-item {
    text-align: center;
    padding: 8px 16px;
}

.key-info-item.divider {
    border-right: 1px solid #eee;
    padding-right: 24px;
}

.key-info-item .icon img {
    width: 34px;
    height: 34px;
}

.key-info-item .text {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Age Rating Style */
.age-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.age-icon {
    display: block;
}

.age-icon svg {
    width: 40px;
    height: 40px;
}

.age-text {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-icon {
    font-size: 14px;
    color: #999;
}

.key-info-item .meta {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.key-info-item .caption {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Media Section */
.media-wrap {
    padding: 24px 16px;
    border-bottom: 8px solid #f5f5f5;
}

.screenshot-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.screenshot-item {
    flex-shrink: 0;
}

.screenshot-item img {
    height: auto;
    width: 140px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Sub Title */
.sub-title {
    padding: 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-title span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-title .arrow {
    font-size: 18px;
    color: #333;
}

.sub-title::after {
    content: '→';
    font-size: 18px;
    color: #333;
}

/* Sub Description */
.sub-description {
    padding: 12px 16px 16px;
}

.sub-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Keywords */
.keywords-wrap {
    padding: 0 16px 16px;
    border-bottom: 8px solid #f5f5f5;
}

.keywords-wrap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keywords-wrap li span {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #ddd;
}

/* Data Safety */
.data-safety-wrap {
    padding: 12px 16px 16px;
    border-bottom: 8px solid #f5f5f5;
}

.data-safety-wrap .description {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.data-safety-wrap .contents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.data-safety-wrap .contents li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.data-safety-wrap .contents .icon {
    font-size: 18px;
}

/* Score Section */
.score-wrap {
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.score-inner {
    display: flex;
    gap: 24px;
}

.score-left {
    text-align: center;
    min-width: 80px;
}

.score-left strong {
    display: block;
    font-size: 48px;
    font-weight: 300;
    color: #333;
    line-height: 1;
}

.score-left span {
    font-size: 12px;
    color: #888;
}

.score-right {
    flex: 1;
}

.score-right ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-right li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-right .score {
    width: 12px;
    font-size: 12px;
    color: #888;
}

.score-right .bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.score-right .bar em {
    display: block;
    height: 100%;
    background: #ff5722;
    border-radius: 4px;
}

/* Product Card Swiper */
.product-card-wrap {
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.product-card-inner {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
}

.product-card-list {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

.product-card {
    flex-shrink: 0;
    width: 92px;
    display: block;
}

.card-thumbnail {
    position: relative;
    display: block;
    width: 92px;
    height: 92px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adult-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-style: normal;
}

.card-title {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seller Info */
.seller-info-wrap {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.seller-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Purchase Notice */
.purchase-notice-wrap {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.notice-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.notice-description {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.more-link {
    color: #ff5722;
    margin-left: 4px;
}

/* Footer */
.footer {
    background: #f5f5f5;
    padding: 24px 16px;
    margin-top: 24px;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content {
    margin-bottom: 16px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #ddd;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex-shrink: 0;
}

.terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.terms-list a {
    font-size: 12px;
    color: #666;
}

.terms-list a.point {
    font-weight: 600;
    color: #333;
}

.help-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-list li {
    font-size: 12px;
    color: #888;
}

.help-list a {
    color: #ff5722;
}

.social-list {
    display: flex;
    gap: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.social-icon svg {
    width: 40px;
    height: 40px;
}

/* Business Info */
.footer-business {
    padding-top: 16px;
}

.business-toggle {
    margin-bottom: 16px;
}

.business-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    padding: 8px 0;
}

.business-toggle-btn .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.business-toggle.open .arrow {
    transform: rotate(180deg);
}

.business-info-list {
    display: none;
    padding: 16px 0;
    border-top: 1px solid #eee;
}

.business-toggle.open .business-info-list {
    display: block;
}

.business-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.business-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.company-logo {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.company-logo.kt {
    background: #e4002b;
    color: #fff;
}

.company-logo.lg {
    background: #a50034;
    color: #fff;
}

.company-logo.onestore {
    background: #ff5722;
    color: #fff;
}

.business-item ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.business-item li {
    font-size: 11px;
    color: #888;
}

.business-item a {
    color: #ff5722;
}

.footer-disclaimer {
    font-size: 11px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-disclaimer em {
    display: block;
    font-style: normal;
    margin-bottom: 4px;
}

.bottom-terms {
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

/* Top Button */
.top-button-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.top-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.top-button:hover {
    background: #f5f5f5;
}
