/* ============================================
   DigiStore - Modern Product Page Styles
   ============================================ */

.product-hero { padding: 60px 0; background: #fff; }
.product-layout { display: grid; grid-template-columns: 1fr 450px; gap: 60px; align-items: start; max-width: 1100px; margin: 0 auto; }

/* Gallery / Left Side */
.product-gallery { border-radius: 20px; overflow: hidden; background: #f8f9fb; border: 1px solid var(--border); }
.gallery-main { width: 100%; aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main i { font-size: 80px; color: var(--primary); opacity: 0.5; }

.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs .thumb { width: 80px; height: 60px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: all 0.3s; flex-shrink: 0; background: #f8f9fb; }
.gallery-thumbs .thumb:hover, .gallery-thumbs .thumb.active { border-color: var(--primary); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-description-container { margin-top: 48px; }
.product-description-container h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.prose { color: var(--text2); font-size: 15px; line-height: 1.8; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* Right Side / Purchase Box */
.product-info { position: sticky; top: 100px; }
.product-badge { display: inline-block; padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; background: rgba(108,99,255,0.1); color: var(--primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-title { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; color: var(--text); letter-spacing: -1px; }
.product-short-desc { color: var(--text2); font-size: 16px; line-height: 1.6; margin-bottom: 32px; }

.price-box { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.current-price { font-size: 42px; font-weight: 900; color: var(--text); letter-spacing: -1px; }
.original-price { font-size: 20px; color: var(--text3); text-decoration: line-through; font-weight: 500; }
.discount-badge { padding: 4px 10px; border-radius: 8px; background: rgba(16,185,129,0.1); color: var(--success); font-size: 13px; font-weight: 700; }

.btn-buy { width: 100%; padding: 18px; background: var(--primary); color: #fff; border: none; border-radius: 14px; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.3s; font-family: var(--font); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-buy:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(108,99,255,0.25); }

/* File Info */
.file-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.file-info-item { display: flex; align-items: center; gap: 12px; }
.file-info-item .icon-wrapper { width: 40px; height: 40px; border-radius: 10px; background: #f8f9fb; display: flex; align-items: center; justify-content: center; color: var(--text2); }
.file-info-item .info-label { font-size: 12px; color: var(--text3); font-weight: 500; }
.file-info-item .info-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* Coupon */
.coupon-section { margin-bottom: 24px; }
.coupon-input { display: flex; gap: 8px; }
.coupon-input input { flex: 1; padding: 14px 16px; background: #f8f9fb; border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 14px; font-family: var(--font); transition: 0.2s; }
.coupon-input input:focus { outline: none; border-color: var(--primary); background: #fff; }
.coupon-input button { padding: 0 24px; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: 0.2s; }
.coupon-input button:hover { background: #f3f4f6; }

/* Share */
.share-section { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; font-size: 18px; }
.share-btn:hover { background: var(--bg2); color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* Responsive */
@media (max-width: 992px) {
    .product-layout { grid-template-columns: 1fr; gap: 32px; }
    .product-info { position: static; }
    .product-title { font-size: 28px; }
    .product-hero { padding: 24px 0 40px; }
}

@media (max-width: 576px) {
    .product-hero { padding: 16px 0 32px; }
    .product-layout { gap: 24px; }
    .product-gallery { border-radius: 16px; }
    .gallery-main { aspect-ratio: 16/10; }
    
    .product-title { font-size: 24px; margin-top: 8px; margin-bottom: 16px; padding: 0 4px; }
    
    .price-box { padding: 20px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
    .current-price { font-size: 32px; }
    .price-row { margin-bottom: 20px; }
    
    .coupon-input input { padding: 12px 14px; }
    .coupon-input button { padding: 0 16px; }
    
    .btn-buy { font-size: 16px; padding: 16px; border-radius: 12px; }
    
    .file-info-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; margin-top: 24px; }
    .file-info-item .icon-wrapper { width: 36px; height: 36px; }
    
    .product-description-container h2 { font-size: 18px; }
}
