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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #3b4371 50%, #4a5568 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4fd1c7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(45, 138, 127, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 138, 127, 0.6);
    background: linear-gradient(45deg, #1e5b54, #065f73);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #4fd1c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2d8a7f;
}

.breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Product Detail Layout */
.product-detail {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1rem;
}

/* Product Image Section */
.product-image-section {
    position: relative;
    overflow: hidden;
}

.product-image-main {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4a5568, #2d8a7f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #4fd1c7;
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Product Info Section */
.product-info {
    color: #e2e8f0;
}

.product-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.product-genre {
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    color: #e2e8f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.product-platform {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #27ae60;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: #4fd1c7;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.product-description {
    margin-bottom: 2rem;
    background: rgba(74, 85, 104, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.product-description h3 {
    color: #4fd1c7;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.product-description p {
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-request {
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    color: #e2e8f0;
}

.btn-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 138, 127, 0.4);
}

.btn-message {
    background: transparent;
    color: #4fd1c7;
    border: 2px solid #4fd1c7;
}

.btn-message:hover {
    background: #4fd1c7;
    color: white;
}

.seller-info {
    background: rgba(74, 85, 104, 0.3);
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 2rem;
}

.seller-info h3 {
    color: #4fd1c7;
    margin-bottom: 1rem;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.seller-details {
    flex: 1;
    min-width: 0;
}

.seller-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e2e8f0;
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seller-rating {
    color: #f39c12;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.seller-location {
    color: #9ca3af;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Related Products Section */
.related-section {
    margin-top: 3rem;
}

.related-section .section-title {
    font-size: 2rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    text-align: center;
    word-wrap: break-word;
}

.related-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.related-card {
    background: rgba(45, 55, 72, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    max-width: 250px;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.related-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.related-info {
    padding: 1rem;
}

.related-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-genre {
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    color: #e2e8f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.related-platform {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #27ae60;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.related-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.related-condition {
    font-weight: 600;
    color: #27ae60;
    font-size: 0.8rem;
}

.related-price {
    font-size: 1rem;
    font-weight: bold;
    color: #4fd1c7;
}

.related-btn {
    width: 100%;
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    color: #e2e8f0;
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.related-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 138, 127, 0.4);
}

.related-status {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #27ae60;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

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

.contact-modal {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.modal-title {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4fd1c7;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
}

.modal-form-group label {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-form-group input,
.modal-form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(79, 209, 199, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: #4fd1c7;
    box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
}

.modal-form-group input::placeholder,
.modal-form-group textarea::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

.modal-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-btn-primary {
    background: linear-gradient(45deg, #2d8a7f, #0891b2);
    color: #e2e8f0;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 138, 127, 0.4);
}

.modal-btn-secondary {
    background: transparent;
    color: #9ca3af;
    border: 2px solid #4a5568;
}

.modal-btn-secondary:hover {
    background: #4a5568;
    color: #e2e8f0;
}

.modal-success {
    text-align: center;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
}

.modal-success.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .product-main {
        gap: 2rem;
    }

    .product-title {
        font-size: 2.2rem;
    }

    .related-products {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        padding: 1.2rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .product-detail {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .product-price {
        font-size: 1.6rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .action-btn {
        padding: 1rem;
        font-size: 0.9rem;
        white-space: normal;
    }

    .related-products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .seller-profile {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .seller-details {
        text-align: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .product-detail {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .product-main {
        gap: 0;
        margin-bottom: 0;
    }

    .product-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .product-price {
        font-size: 1.4rem;
    }

    .product-image-main {
        height: 250px;
        font-size: 1.2rem;
    }

    .product-thumbnails {
        gap: 0.5rem;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }

    .related-products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-section {
        margin-top: 3rem;
    }

    .related-card {
        max-width: unset;
    }

    .related-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }

    .section-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .seller-info {
        padding: 1rem;
    }

    .seller-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .action-btn {
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .breadcrumb {
        display: none;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-image-main {
        height: 200px;
        font-size: 1rem;
    }

    .related-image {
        height: 120px;
        font-size: 0.8rem;
    }

    .related-info {
        padding: 0.8rem;
    }

    .related-title {
        font-size: 0.85rem;
    }

    .action-btn {
        padding: 0.7rem;
        font-size: 0.75rem;
    }

    .product-actions {
        gap: 0.5rem;
    }
}