/* ===================================
   샵오브코리아 제품 상세 페이지 CSS (단순화)
   파일명: goods_view.css
   작성일: 2025-01-18
   설명: 현재 view.php 구조에 필요한 최소한의 스타일만 포함
   =================================== */

/* ===================================
   1. 기본 레이아웃
   =================================== */
   .product-single {
    margin-bottom: 40px;
}

.sok-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.sok-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.sok-col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .sok-col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.sok-mb-4 {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .sok-mb-md-0 {
        margin-bottom: 0;
    }
}

/* ===================================
   2. 이미지 갤러리 스타일
   =================================== */

/* 메인 이미지 영역 */
.product-details-img {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.sok-main-image-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.sok-main-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 비율 */
}

.sok-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sok-main-image:hover {
    transform: scale(1.02);
}

/* 확대 버튼 */
.sok-image-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
}

.sok-zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #333;
}

.sok-zoom-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 썸네일 갤러리 */
.sok-thumb-gallery {
    margin-top: 15px;
}

.sok-thumb-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
}

.sok-thumb-item {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.sok-thumb-item:hover {
    border-color: #ddd;
    transform: translateY(-2px);
}

.sok-thumb-item.active {
    border-color: #b82647;
    box-shadow: 0 0 0 1px rgba(184, 38, 71, 0.2);
}

.sok-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sok-thumb-item:hover img {
    transform: scale(1.05);
}

/* ===================================
   3. 라이트박스 스타일
   =================================== */
.sok-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.sok-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.sok-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sok-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sok-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sok-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 12px;
    border-radius: 15px;
    white-space: nowrap;
}

.sok-lightbox-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sok-lightbox-prev,
.sok-lightbox-next,
.sok-lightbox-close {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    color: #333;
}

.sok-lightbox-prev:hover,
.sok-lightbox-next:hover,
.sok-lightbox-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.sok-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.sok-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.sok-lightbox-close {
    top: 20px;
    right: 20px;
}

.sok-lightbox-open {
    overflow: hidden;
}

/* ===================================
   4. 제품 정보 영역
   =================================== */
.product-single-meta {
    padding: 0;
}

.product-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
    word-break: keep-all;
}
.sok-product-icons {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
    margin-bottom: 15px;
    min-height: 30px;
    flex-wrap: nowrap;
}

.sok-product-review {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 20px;
}

.sok-product-review .caption {
    font-size: 14px;
    color: #666;
    align-items: center;
    gap: 8px;
}

.sok-product-price {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 20px;
}

/* ===================================
   새로 추가: 상품 가격 영역 (완전한 버전)
   =================================== */
   .sok-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.sok-price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.sok-price-current {
    font-size: 24px;
    font-weight: 700;
    color: #b82647;
}

.sok-discount-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sok-discount-amount {
    color: #b82647;
    font-weight: 600;
}

.sok-discount-percent {
    color: #333;
    font-weight: 500;
}
/* 적립금 */
.sok-product-mileage {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
}
.sok-mileage-label {
    font-weight: 600;
    color: #333;
}
.sok-mileage-label::before {
    content: "⊕ ";
    color: #28a745;
}
.sok-mileage-value {
    color: #28a745;
    font-weight: 700;
}
/* ===================================
   재고 메시지 스타일
   =================================== */
   .sok-stock-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.sok-stock-icon {
    flex-shrink: 0;
    color: #f39c12;
    font-size: 18px;
    margin-top: 2px;
}

.sok-stock-content {
    flex: 1;
}

.sok-stock-count {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.sok-stock-count .items {
    color: #f39c12;
    font-weight: 700;
}

.sok-stock-notice {
    margin: 0;
    font-size: 13px;
    color: #666;
    padding-left: 12px;
    border-left: 2px solid #ddd;
}

/* ===================================
   옵션 선택 스타일
   =================================== */
.sok-product-options {
    margin-bottom: 25px;
}

.sok-option-group {
    margin-bottom: 20px;
}

.sok-option-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.sok-selected-variant {
    margin-left: 10px;
    font-weight: 700;
    color: #b82647;
}

.sok-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sok-option-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sok-option-item.available {
    cursor: pointer;
}

.sok-option-item.soldout {
    cursor: not-allowed;
    opacity: 0.4;
}

.sok-option-text {
    display: block;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    min-width: 60px;
    transition: all 0.3s ease;
    user-select: none;
}

.sok-option-item.available:hover .sok-option-text {
    border-color: #b82647;
    background: #f8f9fa;
}

.sok-option-item.available.active .sok-option-text {
    background: #b82647;
    border-color: #b82647;
    color: #fff;
}

.sok-option-item.soldout .sok-option-text {
    background: #f8f9fa;
    color: #999;
    position: relative;
}

.sok-option-item.soldout .sok-option-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #999;
    transform: translateY(-50%);
}

/* ===================================
   서브옵션 (인쇄/포장 등) 스타일 - 개선 버전
   =================================== */
.sokCartSubOpt-group {
    margin-bottom: 12px;
}

.sokCartSubOpt-wrapper {
    position: relative;
}

.sokCartSubOpt-btn {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 4px solid #b82647;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sokCartSubOpt-btn:hover {
    background: #fdf2f5;
    border-color: #e9ecef;
    border-left-color: #b82647;
}

.sokCartSubOpt-btn:hover .sokCartSubOpt-icon-wrap {
    background: #b82647;
    color: #fff;
}

.sokCartSubOpt-btn.sokCartSubOpt-active {
    background: #fdf2f5;
    border-color: #b82647;
}

.sokCartSubOpt-btn.sokCartSubOpt-active .sokCartSubOpt-icon-wrap {
    background: #b82647;
    color: #fff;
}

.sokCartSubOpt-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sokCartSubOpt-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fdf2f5;
    border-radius: 6px;
    color: #b82647;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.sokCartSubOpt-icon {
    width: 18px;
    height: 18px;
}

.sokCartSubOpt-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sokCartSubOpt-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.sokCartSubOpt-meta {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
}

.sokCartSubOpt-arrow {
    transition: transform 0.3s ease;
    color: #999;
    flex-shrink: 0;
}

.sokCartSubOpt-arrow.sokCartSubOpt-rotated {
    transform: rotate(180deg);
}

/* Selected state */
.sokCartSubOpt-btn.sokCartSubOpt-selected {
    background: #fdf2f5;
    border-left-color: #b82647;
}

.sokCartSubOpt-btn.sokCartSubOpt-selected .sokCartSubOpt-icon-wrap {
    background: #b82647;
    color: #fff;
}

.sokCartSubOpt-btn.sokCartSubOpt-selected .sokCartSubOpt-meta {
    display: none;
}

.sokCartSubOpt-menu {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.sokCartSubOpt-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.sokCartSubOpt-item:hover {
    background: #fdf2f5;
    color: #b82647;
}

.sokCartSubOpt-item-none {
    color: #999;
    font-style: italic;
}

.sokCartSubOpt-image {
    margin-top: 15px;
    text-align: center;
}

.sokCartSubOpt-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 인쇄 서비스 입력 폼 */
.sokCartPrint-form {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sokCartPrint-notice {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.sokCartPrint-notice p {
    margin: 0;
}

.sokCartPrint-link {
    color: #666;
    text-decoration: underline;
}

.sokCartPrint-link:hover {
    color: #b82647;
}

.sokCartPrint-input-group {
    position: relative;
    margin-left: 20px;
}

.sokCartPrint-textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px 12px 5px 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.sokCartPrint-textarea:focus {
    outline: none;
    border-color: #b82647;
}

.sokCartPrint-input-group label {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
}

.sokCartPrint-input-group.sokCartPrint-focused label,
.sokCartPrint-input-group.sokCartPrint-hasValue label {
    top: 4px;
    font-size: 11px;
    color: #b82647;
}

/* ===================================
   서브옵션 (인쇄/포장 등) 스타일
   =================================== */
   .sok-suboption-group {
    margin-bottom: 20px;
}

.sok-suboption-btn {
    width: 100%;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sok-suboption-btn:hover {
    background: #fff;
    border-color: #b82647;
}

.sok-suboption-btn.active {
    background: #fff;
    border-color: #b82647;
    color: #b82647;
}

.sok-suboption-menu {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.sok-suboption-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.sok-suboption-item:hover {
    background: #f8f9fa;
    color: #b82647;
}

.sok-suboption-image {
    margin-top: 15px;
    text-align: center;
}

.sok-suboption-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 인쇄 서비스 입력 폼 */
.sok-print-form {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sok-print-notice {
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    line-height: 1.4;
    color: #333;
    font-size: 14px;
}

.sok-print-notice a {
    color: #666;
    text-decoration: underline;
}

.sok-print-notice a:hover {
    color: #b82647;
}

.sok-print-input-group {
    position: relative;
    margin-bottom: 15px;
    margin-left: 20px;
}

.sok-print-textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px 12px 5px 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.sok-print-textarea:focus {
    outline: none;
    border-color: #b82647;
}

.sok-print-textarea + label {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
}

.sok-print-textarea:focus + label,
.sok-print-textarea:not(:placeholder-shown) + label {
    top: 4px;
    font-size: 11px;
    color: #b82647;
}

.sokCartSubOpt-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sokCartSubOpt-img:hover {
    transform: scale(1.02);
}

/* ===================================
   액션 버튼 (장바구니/구매)
   =================================== */
   .sok-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.sok-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sok-btn span {
    position: relative;
    z-index: 1;
}

.sok-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sok-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 장바구니 버튼 */
.sok-btn-cart {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #eee;
}

.sok-btn-cart:hover {
    background: #e9ecef;
    border-color: #ddd;
    color: #333;
}

/* 구매 버튼 */
.sok-btn-buy {
    background: #b82647;
    color: #fff;
    border: 2px solid #b82647;
}

.sok-btn-buy:hover {
    background: #a02040;
    border-color: #a02040;
    color: #fff;
}

/* 버튼 로딩 상태 (향후 사용) */
.sok-btn.sok-loading {
    pointer-events: none;
    opacity: 0.7;
}

.sok-btn.sok-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: sokSpin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes sokSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================================
   공유 (상품 상세페이지 전용)
   =================================== */
   .sok-goodsview-extlink {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sok-goodsview-extlink .sok-extlink {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
}

.sok-goodsview-extlink::before {
    content: '공유하기';
    font-size: 13px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

/* 카카오톡 공유 버튼 */
.sok-extbtn--kk { color: #3c1e1e; }
.sok-extbtn--kk:hover {
    background: #fee500;
    border-color: #fee500;
    color: #3c1e1e;
}
/* ===================================
   상품 요약 및 정보 영역
   =================================== */

/* 상품 요약 설명 */
.sok-goods_summary_ex {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #b82647;
    border-right: 4px solid #b82647;
}

.sok-goods_summary_ex p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    word-break: keep-all;
}

/* 상품 정보 목록 */
.sok-product-info {
    margin: 25px 0;
    padding: 20px 0;
}

.sok-product-info p {
    display: flex;
    align-items: flex-start;
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

.sok-product-info p:last-child {
    margin-bottom: 0;
}

.sok-product-info .text,
.sok-product-info span {
    margin-left: 8px;
    color: #666;
    font-weight: 400;
}

.sok-product-info a {
    color: #b82647;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sok-product-info a:hover {
    color: #a02040;
    text-decoration: underline;
}

/* 조회수 메시지 */
.userViewMsg.featureText {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0 0;
    padding: 12px 20px;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    font-size: 14px;
    color: #0c5460;
    text-align: center;
}

.userViewMsg .icon {
    font-size: 16px;
    color: #17a2b8;
}

.userViewMsg .uersView2 {
    font-weight: 600;
    color: #17a2b8;
}

/* mb-3 유틸리티 클래스 */
.mb-3 {
    margin-bottom: 1rem;
}
/* ===================================
   이벤트 카운트다운 영역 (상품 상세페이지 전용)
   =================================== */
   .sok-event-countdown-container {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
}

.sok-event-label {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 기존 JS가 생성하는 div 스타일링 */
.sok-event-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sok-event-countdown > div {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 70px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sok-event-countdown > div:hover {
    transform: translateY(-2px);
}

/* 10일 이상 남은 이벤트 - 카운트다운 숨기고 라벨 강조 */
.sok-event-countdown-container.no-countdown {
    padding: 22px 30px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 50%, #ff416c 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sok-event-countdown-container.no-countdown .sok-event-label {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: labelPulse 2s ease-in-out infinite;
}

@keyframes labelPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.sok-event-countdown-container.no-countdown .sok-event-label a {
    color: #fff;
    text-decoration: none;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.sok-event-countdown-container.no-countdown .sok-event-label a:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}


/* ===================================
   두 번째 Row 레이아웃 (확실한 해결)
   =================================== */

/* 기존 sok-row와 완전히 동일하게 만들기 */
.sok-row-second {
    display: flex;
    flex-wrap: wrap;
    margin: 0; /* 기존 sok-row와 동일 */
    position: relative;
    margin-top: 30px; /* 위 여백만 별도 */
}

/* 배경을 위한 가상 요소 */
.sok-row-second::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    z-index: -1;
}

/* 내부 여백을 위해 첫 번째와 마지막 자식에만 패딩 */
.sok-row-second > .sok-col-12:first-child {
    padding-top: 25px;
}

.sok-row-second > .sok-col-12:last-child {
    padding-bottom: 25px;
}

/* 기존 좌우 패딩은 유지 */
.sok-row-second .sok-col-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* 좌측 영역 스타일 */
.sok-goods_summary_ex-container {
    position: relative;
}

.sok-row-second .sok-goods_summary_ex {
    border-right: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(184, 38, 71, 0.1);
}

.sok-row-second .sok-goods_summary_ex p {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
}

/* 조회수 메시지 */
.sok-row-second .userViewMsg.featureText {
    background: #fea8bc;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(184, 38, 71, 0.2);
    transition: transform 0.3s ease;
}

.sok-row-second .userViewMsg.featureText:hover {
    transform: translateY(-2px);
    background: #a02040;
}

.sok-row-second .userViewMsg .icon {
    color: white;
}

.sok-row-second .userViewMsg .uersView2 {
    color: white;
    font-weight: 700;
}

/* 우측 영역 스타일 */
.sok-row-second .sok-product-info {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}
/* ===================================
   상품 탭 네비게이션 시스템 (고정형)
   =================================== */
   .sok-tab-nav-wrapper {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sok-tab-nav {
    display: flex;
    background: #fff;
}

.sok-tab-nav-btn {
    flex: 1;
    padding: 16px 12px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.sok-tab-nav-btn:hover {
    color: #333;
    background: #f8f9fa;
}

.sok-tab-nav-btn.active {
    color: #b82647;
    background: #fff;
    border-bottom-color: #b82647;
    font-weight: 600;
}

.sok-product-section {
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
    scroll-margin-top: 50px;
}

.sok-product-section:last-child {
    border-bottom: none;
}

.sok-section-header {
    margin-bottom: 25px;
    text-align: center;
}

.sok-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    display: inline-block;
}

.sok-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #b82647;
    border-radius: 2px;
}

.sok-section-content {
    position: relative;
}
/* ===================================
   리뷰 섹션 스타일
   =================================== */

/* 리뷰 컨테이너 */
.sok-reviews-container {
    max-width: 100%;
    margin: 0 auto;
}

/* 평균 별점 영역 - 컴팩트 버전 */
.sok-reviews-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.sok-avg-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sok-rating-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.sok-score-number {
    font-size: 24px;
    font-weight: 700;
    color: #b82647;
    line-height: 1;
}

.sok-score-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sok-rating-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sok-rating-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.sok-rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.sok-review-count {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

/* 구분선 추가 */
.sok-rating-score::after {
    content: '|';
    color: #ddd;
    margin: 0 8px;
    font-weight: 300;
}

/* 리뷰 목록 영역 */
.sok-reviews-section {
    background: #fff;
}

.sok-reviews-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sok-reviews-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sok-reviews-list {
    min-height: 200px;
}

/* 리뷰 없음 메시지 */
.sok-no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* 더보기 버튼 영역 */
.sok-reviews-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.sok-load-more-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sok-load-more-btn:hover {
    background: #e9ecef;
    border-color: #ddd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sok-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sok-load-more-btn.sok-loading .sok-btn-text {
    opacity: 0;
}

.sok-load-more-btn.sok-loading .sok-btn-loading {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 로딩 애니메이션 */
.sok-btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: sokLoadingSpin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes sokLoadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 리뷰 토스트 메시지 */
.sok-review-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sok-review-toast.sok-toast-success {
    background: #28a745;
}

.sok-review-toast.sok-toast-error {
    background: #dc3545;
}

.sok-review-toast.sok-toast-show {
    transform: translateX(0);
}
/* ===================================
   하단 고정 툴바 스타일
   =================================== */

   .sok-sticky-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none; /* 초기에는 숨김 */
}

.sok-sticky-toolbar.sok-show {
    display: block;
    transform: translateY(0);
}

.sok-sticky-toolbar-content {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 상품 정보 영역 */
.sok-sticky-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sok-sticky-product-image {
    flex-shrink: 0;
}

.sok-sticky-product-image img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.sok-sticky-product-details {
    flex: 1;
    min-width: 0;
}

.sok-sticky-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sok-sticky-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #b82647;
}

/* 액션 버튼 영역 */
.sok-sticky-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* 기존 버튼 스타일 재사용하되 크기 조정 */
.sok-btn.sok-sticky-btn {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    min-width: 90px;
}

/* ===================================
   통합 Media Queries (파일 끝에 배치)
   =================================== */
/* 태블릿 이상 (768px~) 추가 */
@media (min-width: 768px) {
    .sok-suboption-btn {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .sok-suboption-item {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .sok-print-input-group {
        margin-left: 25px;
    }
    
    .sok-print-textarea {
        min-height: 100px;
        padding: 18px 15px 8px 15px;
    }
    .sok-goods_summary_ex {
        padding: 25px;
    }
    
    .sok-goods_summary_ex p {
        font-size: 16px;
    }
    
    .sok-product-info {
        padding: 25px 0;
    }
    
    .userViewMsg.featureText {
        font-size: 15px;
        padding: 15px 25px;
    }
    .sok-event-countdown-container {
        padding: 25px;
    }
    
    .sok-event-label {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .sok-event-countdown {
        gap: 15px;
    }
    .sok-tab-nav-btn {
        padding: 14px 10px;
        font-size: 13px;
    }
    
    .sok-section-title {
        font-size: 22px;
    }
    
    .sok-product-section {
        padding: 35px 0;
        scroll-margin-top: 40px;
    }   
    .sok-reviews-summary {
        padding: 30px;
    }
    
    .sok-avg-rating {
        gap: 25px;
    }
    
    .sok-score-number {
        font-size: 36px;
    }
    
    .sok-reviews-title {
        font-size: 22px;
    }
    .sok-reviews-summary {
        padding: 18px 25px;
    }
    
    .sok-avg-rating {
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: nowrap;
    }
    
    .sok-rating-details {
        gap: 15px;
        flex-wrap: nowrap;
    }
    
    .sok-score-number {
        font-size: 26px;
    }
    
    .sok-reviews-title {
        font-size: 22px;
    }
    .sok-sticky-toolbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(233, 236, 239, 0.8);
    }
    
    .sok-sticky-toolbar-content {
        padding: 15px 20px;
    }
    
    .sok-sticky-product-image img {
        width: 50px;
        height: 50px;
    }
    
    .sok-btn.sok-sticky-btn {
        height: 48px;
        min-width: 110px;
    }
}


/* 모바일 (767px 이하) */
@media (max-width: 767px) {
    .sok-goods_summary_ex {
        margin: 15px 0;
        padding: 15px;
    }
    
    .sok-goods_summary_ex p {
        font-size: 14px;
    }
    
    .sok-product-info {
        margin: 20px 0;
        padding: 15px 0;
    }
    
    .sok-product-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sok-product-info .text,
    .sok-product-info span {
        margin-left: 0;
        margin-top: 4px;
    }
    
    .userViewMsg.featureText {
        flex-direction: column;
        gap: 4px;
        padding: 12px 15px;
        font-size: 13px;
    }
    .sok-event-countdown-container {
        margin: 20px 0;
        padding: 15px;
    }
    
    .sok-event-label {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .sok-event-countdown {
        gap: 8px;
    }
    
    .sok-event-countdown > div {
        padding: 10px 12px;
        min-width: 60px;
        font-size: 16px;
    }

    .sok-row-second {
        flex-direction: column;
        margin: 20px 0;
    }
    
    .sok-row-second .sok-col-12 {
        padding: 20px 15px;
    }
    .sokCartSubOpt-image {
        touch-action: pan-y pinch-zoom;
        overflow: visible;
    }
    .sok-tab-nav-btn {
        padding: 12px 8px;
        font-size: 12px;
        font-weight: 600;
    }
    
    .sok-tab-nav-btn.active {
        font-weight: 700;
    }
    
    .sok-section-title {
        font-size: 20px;
    }
    
    .sok-product-section {
        padding: 25px 0;
        scroll-margin-top: 30px;
    }
    
    .sok-section-header {
        margin-bottom: 20px;
    }
    .sok-reviews-summary {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    
    .sok-avg-rating {
        gap: 10px;
        justify-content: center;
    }
    
    .sok-rating-details {
        gap: 8px;
    }
    
    .sok-rating-score::after {
        margin: 0 6px;
    }
    
    .sok-reviews-title {
        font-size: 18px;
    }
    
    .sok-load-more-btn {
        width: 100%;
        max-width: 280px;
    }

}


/* 작은 모바일 (480px 이하) 추가 */
@media (max-width: 480px) {
    .sokCartSubOpt-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    .sokCartSubOpt-icon-wrap {
        width: 28px;
        height: 28px;
    }
    .sokCartSubOpt-icon {
        width: 15px;
        height: 15px;
    }
    .sokCartSubOpt-meta {
        font-size: 11px;
    }
    .sokCartSubOpt-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    .sok-suboption-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .sok-suboption-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .sok-print-form {
        padding: 15px;
    }
    
    .sok-print-notice {
        font-size: 13px;
    }
    
    .sok-print-input-group {
        margin-left: 15px;
        margin-bottom: 12px;
    }
    
    .sok-print-textarea {
        min-height: 70px;
        padding: 12px 10px 5px 10px;
        font-size: 13px;
    }
    .sok-quantity-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .sok-quantity-controls {
        align-self: flex-start;
    }
    
    .sok-price-display {
        margin-left: 0;
    }
    .sok-action-buttons {
        gap: 8px;
        margin-top: 20px;
    }
    
    .sok-btn {
        height: 45px;
        font-size: 14px;
    }
    .sok-goods_summary_ex {
        padding: 12px;
        margin: 12px 0;
    }
    
    .sok-product-info {
        padding: 12px 0;
    }
    
    .sok-product-info p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .userViewMsg.featureText {
        padding: 10px 12px;
        font-size: 15px;
    }
    .sok-row-second {
        margin: 15px 0;
    }
    
    .sok-row-second .sok-col-12 {
        padding: 0 10px;
    }
    .sok-tab-nav-btn {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .sok-section-title {
        font-size: 18px;
    }
    
    .sok-product-section {
        padding: 20px 0;
    }
    
    .sok-section-title::after {
        width: 30px;
        height: 2px;
    }
    .sok-reviews-summary {
        padding: 10px 12px;
    }
    
    .sok-avg-rating {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .sok-rating-score {
        gap: 3px;
    }
    
    .sok-score-number {
        font-size: 22px;
    }
    
    .sok-rating-details {
        gap: 6px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* 작은 모바일에서는 구분선 제거 */
    .sok-rating-score::after {
        display: none;
    }
}


/* 고객상담 아이콘 (상세보기 페이지) */
.sok-goodsview-cs-icons {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sok-goodsview-cs-icons::before {
    content: '상담하기';
    font-size: 13px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.sok-goodsview-cs-icons a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.sok-goodsview-cs-icons a:hover {
    transform: scale(1.1);
}

.sok-goodsview-cs-icons img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* 관련상품 그리드 */
.sok-subitems-container { width: 100%; margin: 25px 0; }
.sok-subitem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (min-width: 768px) and (max-width: 1023px) {
    .sok-subitem-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1024px) {
    .sok-subitem-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.sok-subitem-grid .item.col-item {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 품절 상품 UI */
.sok-soldout-notice {
    margin: 15px 0;
}
.sok-soldout-banner {
    background: #fff3f3;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sok-soldout-icon {
    font-size: 20px;
    color: #ff6b6b;
}
.sok-soldout-text {
    font-size: 15px;
    font-weight: 600;
    color: #d32f2f;
}
.sok-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ===================================
   짧은 주소 (상품 상세페이지)
   =================================== */
.sok-goodsview-shorturl {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 0;
}

.sok-shorturl-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.sok-shorturl-url {
    font-size: 13px;
    color: #999;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    letter-spacing: -0.3px;
    user-select: all;
    -webkit-user-select: all;
}

.sok-shorturl-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.sok-shorturl-copy:hover {
    border-color: #b82647;
    color: #b82647;
    background: #fdf2f4;
}

.sok-shorturl-copy:active {
    transform: scale(0.95);
}
