/**
 * RYVION Studios - Product View Page
 * EXACT styling matching reference image
 */

/* ===== PRODUCT HERO ===== */
.product-hero {
    padding: 100px 0 60px 0;
    position: relative;
    background: #0a0e27;
    margin-top: 60px;
}

.product-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: top center;
    z-index: 0;
}

.product-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.7);
    z-index: 1;
}

.product-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.product-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.product-hero-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* ===== MAIN IMAGE (CONSTRAINED) ===== */
.product-main-image-section {
    background: #0a0e27;
    padding: 40px 0 15px 0;
}

.main-image-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
    max-width: 800px;
    max-height: 450px;
    margin: 0 auto;
}

.main-image-wrapper:hover {
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.4);
}

.main-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.main-product-img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-wrapper:hover .main-product-img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* ===== THUMBNAILS ===== */
.thumbnail-carousel-section {
    background: #0a0e27;
    padding: 20px 0 60px 0;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-nav-btn {
    background: rgba(20, 25, 50, 0.8);
    border: 2px solid rgba(74, 144, 226, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: rgba(74, 144, 226, 0.3);
    border-color: #4a90e2;
}

.thumbnails-container {
    display: flex;
    gap: 15px;
    overflow: hidden;
}

.thumbnail-item {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(74, 144, 226, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-item.active {
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.6);
}

.thumbnail-item:hover {
    border-color: #4a90e2;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== PRODUCT DETAILS GRID ===== */
.product-details-section {
    background: #0a0e27;
    padding: 40px 0 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1px 500px;
    gap: 40px;
    align-items: start;
}

/* ===== LEFT SIDE ===== */
.details-left {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.6) 0%, rgba(15, 25, 50, 0.6) 100%);
    border: 2px solid rgba(74, 144, 226, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    background: rgba(10, 14, 39, 0.8);
    padding: 20px 30px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.15);
}

.section-header h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0;
}

.section-content {
    padding: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.product-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 12px;
}

.product-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.section-intro {
    font-size: 14px;
    margin-bottom: 12px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.features-list li {
    padding: 8px 0;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.note-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.note-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.perfect-for {
    margin: 20px 0;
    font-size: 13px;
}

.section-icon {
    font-size: 18px;
    margin-right: 8px;
}

.perfect-for ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.perfect-for ul li {
    padding: 4px 0;
}

.closing-text {
    font-size: 14px;
    margin: 20px 0;
}

.requirements-section,
.install-section,
.version-section {
    margin: 25px 0;
}

.requirements-section strong,
.install-section strong,
.version-section strong {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: #ffffff;
}

.requirements-section ul,
.version-section ul {
    margin: 0;
    padding-left: 20px;
}

.requirements-section li,
.version-section li {
    padding: 4px 0;
    font-size: 13px;
}

.install-section ol {
    margin: 0;
    padding-left: 20px;
}

.install-section li {
    padding: 6px 0;
    font-size: 13px;
}

/* ===== VERTICAL DIVIDER ===== */
.vertical-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(74, 144, 226, 0.3) 20%, rgba(74, 144, 226, 0.3) 80%, transparent);
}

/* ===== RIGHT SIDE ===== */
.details-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-section .stars {
    color: #ffd700;
    font-size: 24px;
}

.reviews-link {
    color: #4a90e2;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.reviews-link:hover {
    color: #6ba4e8;
}

.percentage {
    color: #4ade80;
    font-size: 14px;
    font-weight: 600;
}

/* Info Cards */
.info-card {
    background: rgba(20, 30, 60, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.refund-card {
    border-color: rgba(74, 144, 226, 0.4);
}

.card-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.card-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.card-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* License Dropdown */
.license-dropdown {
    background: rgba(20, 30, 60, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.license-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.license-header strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
}

.license-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.dropdown-arrow {
    color: #4a90e2;
}

/* Purchase Actions */
.purchase-actions {
    display: flex;
    gap: 12px;
}

.btn-buy-now {
    flex: 1;
    background: #4a90e2;
    border: none;
    color: #ffffff;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: #357abd;
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.6);
    transform: translateY(-2px);
}

.btn-icon {
    width: 56px;
    height: 56px;
    background: rgba(20, 30, 60, 0.8);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
}

.wishlist-btn.active {
    color: #ff4757;
}

/* Upon Purchase */
.upon-purchase {
    background: rgba(20, 30, 60, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
}

.upon-purchase strong {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
}

.upon-purchase ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upon-purchase ul li {
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Meta Items */
.meta-item {
    background: rgba(20, 30, 60, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
}

.meta-item strong {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.meta-item p {
    color: #ffffff;
    margin: 0;
}

/* Tags */
.tags-section {
    background: rgba(20, 30, 60, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    padding: 16px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    background: rgba(74, 144, 226, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
}

/* Referral Box */
.referral-box {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
}

.referral-box p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.85);
}

.code-link {
    color: #4a90e2;
    text-decoration: underline;
}

.small-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* Share Section */
.share-section strong {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.share-icon.instagram { background: #e4405f; color: #fff; }
.share-icon.twitter { background: #000000; color: #fff; }
.share-icon.facebook { background: #1877f2; color: #fff; }
.share-icon.youtube { background: #ff0000; color: #fff; }
.share-icon.discord { background: #5865f2; color: #fff; }
.share-icon.tiktok { background: #000000; color: #fff; }
.share-icon.more-btn {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    border: 2px solid rgba(74, 144, 226, 0.4);
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
}

.share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Share Popup Modal */
.share-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.share-popup-overlay.active {
    display: flex;
}
.share-popup {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98) 0%, rgba(26, 58, 92, 0.98) 100%);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: popupFadeIn 0.3s ease;
}
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.share-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.share-popup-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}
.share-popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-popup-close:hover {
    background: rgba(255, 100, 100, 0.3);
}
.share-popup-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}
.share-popup-product img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}
.share-popup-product span {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}
.share-popup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.share-popup-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-popup-btn:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}
.sp-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}
.share-popup-link {
    display: flex;
    gap: 10px;
}
.share-popup-link input {
    flex: 1;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    min-width: 0;
}
.share-popup-link button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.share-popup-link button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}
.share-popup-link button.copied {
    background: linear-gradient(135deg, #00c853, #00e676);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 100, 100, 0.4);
    border-color: rgba(255, 100, 100, 0.6);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-nav.prev {
    left: -25px;
}

.lightbox-nav.next {
    right: -25px;
}

.lightbox-nav:hover {
    background: rgba(74, 144, 226, 0.4);
    border-color: #4a90e2;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.lightbox-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    max-width: 100%;
    padding: 5px 0;
    justify-content: center;
}

.lightbox-thumb {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.lightbox-thumb.active {
    border-color: #4a90e2;
    opacity: 1;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.5);
}

.lightbox-thumb:hover {
    opacity: 0.8;
    border-color: rgba(74, 144, 226, 0.5);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== REVIEWS POPUP ===== */
.reviews-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.reviews-overlay.active {
    display: flex;
}

.reviews-container {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95) 0%, rgba(15, 25, 50, 0.95) 100%);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.reviews-header {
    padding: 20px 30px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-header h3 {
    font-size: 20px;
    color: #ffffff;
    margin: 0;
}

.reviews-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reviews-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.reviews-summary {
    padding: 30px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
    text-align: center;
}

.summary-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.big-rating {
    font-size: 48px;
    font-weight: 900;
    color: #4a90e2;
}

.summary-rating .stars {
    color: #ffd700;
    font-size: 24px;
}

.summary-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.reviews-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    color: #ffffff;
}

.review-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.review-stars {
    color: #ffd700;
    font-size: 14px;
    margin-bottom: 8px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ===== RELATED PRODUCTS ===== */
.related-products-section {
    background: #0a0e27;
    padding: 60px 0 100px 0;
}

.related-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.related-subtitle {
    font-size: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 50px;
}

.related-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.related-nav-btn {
    background: rgba(20, 25, 50, 0.8);
    border: 2px solid rgba(74, 144, 226, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 32px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.related-nav-btn:hover {
    background: rgba(74, 144, 226, 0.3);
    border-color: #4a90e2;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    flex: 1;
}

.related-product-card {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.8) 0%, rgba(15, 25, 50, 0.8) 100%);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-product-card:hover {
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
}

.related-product-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    padding: 16px;
}

.related-product-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.related-product-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.related-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-rating .stars {
    color: #ffd700;
    font-size: 12px;
}

.related-rating .sales {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.related-price {
    font-size: 14px;
    font-weight: 700;
    color: #4a90e2;
}

.related-shop-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3c78 0%, #2d5a9e 50%, #4a7ac2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-shop-btn:hover {
    background: linear-gradient(135deg, #2d5a9e 0%, #4a7ac2 50%, #6b9dd6 100%);
    border-color: #4a90e2;
}

.view-all-btn {
    display: block;
    margin: 0 auto;
    padding: 14px 40px;
    background: linear-gradient(135deg, #1e3c78 0%, #2d5a9e 50%, #4a7ac2 100%);
    border: 3px solid #ffffff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0% 50%);
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #2d5a9e 0%, #4a7ac2 50%, #6b9dd6 100%);
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .vertical-divider {
        display: none;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-hero-title {
        font-size: 28px;
    }
    
    .thumbnail-item {
        width: 80px;
        height: 60px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-nav.prev {
        left: 5px;
    }

    .lightbox-nav.next {
        right: 5px;
    }

    .lightbox-thumb {
        width: 50px;
        height: 36px;
    }
}