@charset "utf-8";

/* 1. 브랜드 컬러 변수 정의 */
:root {
    --sharon-blue: #004098;        /* 메인 브랜드 블루 (헤더, 가격, 포인트) */
    --sharon-blue-hover: #002d6b;
    --sharon-green: #008148;       /* 포인트 그린 (구입/결제 버튼) */
    --sharon-green-hover: #006639;
    --apple-gray: #f5f5f7;         /* 배경색 */
    --card-bg: #fbfbfd;            /* 카드 배경 */
    --text-main: #1d1d1f;          /* 기본 텍스트 */
    --text-gray: #86868b;          /* 보조 텍스트 */
}

/* 2. 기본 레이아웃 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* 3. 헤더 (블루 테마) */
.sharon-header {
    background: rgba(0, 64, 152, 0.95); /* 로얄 블루 */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #ffffff !important;
}

/* 애플스토어 카드 스타일 보정 */
.product-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff; /* 카드는 순백색 */
    border-radius: 20px; /* 애플 특유의 부드러운 곡률 */
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.15, 0, 0.5, 1); /* 더 부드러운 애니메이션 */
    border: none; /* 선 대신 그림자로 구분 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 기본은 아주 연한 그림자 */
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* 마우스 올렸을 때 애플 특유의 반응 */
.product-card:hover {
    transform: scale(1.03); /* 아주 살짝 커짐 */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12); /* 그림자가 깊어지며 공중에 뜬 느낌 */
}

/* 카드 내 상품 이미지 박스 */
.product-image-wrap {
    background-color: #f5f5f7; /* 이미지 배경은 연한 회색으로 제품 강조 */
    border-radius: 12px;
    margin-bottom: 25px;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.product-card img {
    max-height: 200px;
    width: auto;
    object-contain: contain;
}

/* 카드 내 텍스트 정렬 */
.product-card .category {
    font-size: 12px;
    font-weight: 600;
    color: var(--sharon-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.product-card .product-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 12px;
}

/* 5. 버튼 스타일 (그린 포인트) */
.btn-sharon {
    background: var(--sharon-green);
    color: #ffffff;
    border-radius: 980px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-sharon:hover {
    background: var(--sharon-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 129, 72, 0.2);
}

.btn-sharon.disabled {
    background: #d2d2d7;
    cursor: not-allowed;
    pointer-events: none;
}

/* 6. 상세페이지 전용 스타일 (product.php) */
.image-sticky-box {
    position: sticky;
    top: 100px;
    background: var(--apple-gray);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.apple-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f0f0f2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* 7. 수량 조절 박스 (Compact 스타일) */
.qty-control-box {
    display: inline-flex;
    align-items: center;
    background-color: var(--apple-gray);
    border-radius: 20px;
    padding: 2px 6px;
    width: fit-content;
    border: 1px solid #e5e5e7;
}

.qty-control-box button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--sharon-blue);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.qty-control-box button:hover {
    color: #000;
}

.qty-control-box span {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

/* 8. 입력 필드 (주문서용) */
.input-apple {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid #d2d2d7;
    background-color: #ffffff;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-apple:focus {
    border-color: var(--sharon-blue);
    box-shadow: 0 0 0 4px rgba(0, 64, 152, 0.1);
}

.input-readonly {
    background-color: var(--apple-gray);
    cursor: not-allowed;
}

/* 9. 푸터 (딥 블루) */
.sharon-footer {
    background-color: #00265c;
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 0;
}

.sharon-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.sharon-footer a:hover {
    color: #ffffff;
}

/* 10. 기타 유틸리티 */
.text-price {
    color: var(--sharon-blue);
    font-weight: 800;
}

.terms-box {
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    padding: 20px;
    background-color: var(--apple-gray);
}

.terms-text-scroll {
    height: 80px;
    overflow-y: auto;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}