* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Beautiful Scrollbar for the entire page */
html {
    scrollbar-width: thin;
    scrollbar-color: #666 #2a2a2a;
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 6px;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #666, #555);
    border-radius: 6px;
    border: 2px solid #2a2a2a;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #777, #666);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #3f3f3f;
    background-image: url('../img/grid.png');
    background-repeat: repeat;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}
a{
    text-decoration: none;
    color: white;
}
.center{
    text-align: center;
}

/* Header */
header {
    background-color: #0d0d0d;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 55px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    flex: 1;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #999;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-icons {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-icon {
    width: 18px;
    height: 18px;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-icon:hover {
    opacity: .8;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover{
    opacity: .8;
}

.lang-btn img{
    width: 14px;
    height: 14px;
    margin-top: -5px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    min-width: 100px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-menu.active {
    display: flex;
}

.lang-option {
    padding: 10px 16px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: #333;
    color: #d4af37;
}

.cart-badge {
    position: relative;
}

.cart-badge span {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d4af37;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Product Layout */
.product-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    height: calc(100vh - 140px);
}

/* Gallery */
.gallery {
    width: 50%;
    height: 200%;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.product-info {
    flex: 1;
    padding-right: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.product-info::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.product-info-container{
    background: linear-gradient(180deg, #02020266, #02020200);
    padding: 30px;
}
.main-image-container {
    background: #252525;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    cursor: zoom-in;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.zoom-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image-container:hover .zoom-icon {
    opacity: 1;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 8px 0;
}

.thumbnail {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #252525;
    padding: 20px;
}

.thumbnail:hover {
    border-color: #d4af37;
    transform: scale(1.02);
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Header */
.product-header {
    margin-bottom: 20px;
}

.product-title{
    display: flex;
    margin-bottom: 6px;
    align-items: center;
}

.badge {
    padding: 2px 12px 3px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #FC2E78;
    color: #fff;
}

.product-title .content{
    font-size: 32px;
    font-weight: 300;
    color: #fff;
    margin-right: 6px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 32px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #fff;
}

.product-description {
    color: #fff;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}

.vendor {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #d4af37;
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

/* Price Section */
.price-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: #d4af37;
}

.current-price .currency {
    font-size: 22px;
    font-weight: 600;
}

.original-price {
    font-size: 18px;
    color: #666;
    text-decoration: line-through;
}

.discount-percent {
    background: #d4af37;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.price-note {
    font-size: 12px;
    color: #666;
}

/* License Selector */
.license-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-icon {
    width: 16px;
    height: 16px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
    cursor: help;
}

.license-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.license-option {
    background: #2a2a2a;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.license-option:hover {
    background: #303030;
    border-color: #444;
}

.license-option.selected {
    background: rgba(212, 175, 55, 0.08);
    border-color: #d4af37;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-outer {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.license-option.selected .radio-outer {
    border-color: #d4af37;
}

.radio-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4af37;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.license-option.selected .radio-inner {
    transform: scale(1);
}

.license-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.license-desc {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.license-price {
    font-weight: 700;
    color: #d4af37;
    font-size: 14px;
}

/* Quantity & Add to Cart */
.cart-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}

.qty-btn {
    width: 44px;
    height: 48px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #333;
}

.qty-input {
    width: 50px;
    height: 48px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
}

.add-to-cart-btn {
    flex: 1;
    height: 48px;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #e5c048;
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.feature-item {
    background: #2a2a2a;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
}

.feature-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.feature-text {
    font-size: 11px;
    color: #888;
}

/* Description Tabs */
.description-section {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #333;
}

.tab-header {
    flex: 1;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-header:hover {
    color: #fff;
}

.tab-header.active {
    color: #d4af37;
    border-bottom-color: #d4af37;
}

.tab-content {
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.tab-content p {
    color: #aaa;
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 13px;
}

.tab-content ul {
    color: #aaa;
    margin-left: 18px;
    margin-bottom: 12px;
}

.tab-content li {
    margin-bottom: 6px;
    font-size: 13px;
}

.warning-box {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-radius: 10px;
    padding: 14px;
    margin: 12px 0;
}

.warning-box h4 {
    color: #ff9800;
    margin-bottom: 6px;
    font-size: 13px;
}

.warning-box p {
    color: #bbb;
    font-size: 12px;
    margin: 0;
}

.system-req {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    margin-top: 12px;
}

.system-req p {
    color: #4caf50;
    font-weight: 600;
    margin: 0;
    font-size: 13px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal img {
    max-width: 95%;
    max-height: 95%;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.3s;
}

.modal-nav:hover {
    opacity: 0.7;
}

.modal-prev {
    left: 24px;
}

.modal-next {
    right: 24px;
}

/* Footer */
footer {
    background: #0d0d0d;
    padding: 60px 24px 30px;
    margin-top: 80px;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4af37;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: #252525;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #d4af37;
    color: #000;
}

.copyright {
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid #F7F8FB;
    color: #444;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .product-layout {
        flex-direction: column;
        gap: 40px;
    }

    .gallery {
        width: 100%;
        position: static;
    }

    .nav-links {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-title {
        font-size: 28px;
    }

    .current-price {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Example Section */
.example-section {
    margin-bottom: 24px;
}

.section-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 5px;
}

.example-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-link {
    margin-left: -5px;
    padding: 2px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}
.example-link .label{
    font-weight: 500;
    color: #fff;
}
.example-link .link{
    color: #4a9eff;
}

.example-link:hover {
    color: #64b5f6;
    transform: translateX(4px);
}

.link-icon {
    width: 16px;
    height: 16px;
}

.example-mark{
    font-size: 14px;
    font-weight: 300;
    margin-top: 10px;
}
/* Download Section */
.download-section {
    padding: 0 30px;
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    position: relative;
    z-index: 2;

}

.download-btn:hover {
    transform: translateY(-2px);
}

.personal-btn .btn-text{
    width: 160px;
    background: #00A5A4;
    color: #fff;
}

.commercial-btn .btn-text{
    width: 160px;
    background: linear-gradient(180deg, #FBD960, #E69B49);
    color: #fff;
}

.favorite-btn .btn-text{
    width: 80px;
    background: transparent;
    border: 1px solid #F4FF9E;
    color: #F4FF9E;
}

.download-icon{
    position: absolute;
    top: -26px;
    left: 30px;
    z-index: -1;
}

.btn-text {
    flex: 1;
    text-align: center;
    line-height: 20px;
    border-radius: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-count {
    position: absolute;
    bottom: -44px;
    left: 0;
    font-size: 11px;
    opacity: 0.9;
    width: 160px;
    text-align: center;
    line-height: 16px;
    height: 40px;
}

/* Forum Section */
.detail-section {
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #1B1B1B, #1B1B1B00);
    position: relative;
    margin-left: 30px;
    padding-left: 30px;
    height: 40px;
}
.section-title-with-icon img{
    position:absolute;
    left: -40px;
    bottom: 0;
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.section-icon {
    font-size: 20px;
}

.detail-description {
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 14px;
    white-space: pre-line;
}

.detail-description b{
    font-weight: 500;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a9eff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.detail-link:hover {
    color: #64b5f6;
    transform: translateX(4px);
}

.detail-img-single{
    width: 100%;
    padding-left: 10%;
}
.detail-img-single img{
    width: 80%;
}
.detail-img-multi{
    display: flex;
    gap: 10px;
    margin-top: 30px;
}
.detail-img-multi img{
    width: 40%;
}

.detail-img-dev{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.detail-img-dev-item{
    width: 19%;
    position: relative;
    padding: 10px 0;
}
.detail-img-dev-item img{
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}
.detail-img-dev-item h3{
    text-align: center;
    height: 50px;
    line-height: 24px;
    font-size: 16px;
}
.detail-img-dev-item .description{
    font-size: 10px;
    white-space: pre-line;
}
    /* Background Story Section */
.background-section {
    background: #2a2a2a;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid #333;
}

/* Favorite Toast Notification */
.favorite-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(42, 42, 42, 0.98);
    border: 1px solid #d4af37;
    border-radius: 12px;
    padding: 24px 32px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
    transform: rotate(90deg);
}

.favorite-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toast-icon {
    font-size: 36px;
    animation: starPulse 0.6s ease-in-out;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.toast-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
    color: #d4af37;
}

.toast-text {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 300;
}

.shortcut-key {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-left: 4px;
}

.story-content {
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

.story-content p {
    margin-bottom: 12px;
}

.story-content strong {
    color: #d4af37;
    font-weight: 600;
}
