:root {
    --ps-blue: #0070d1;
    --ps-dark: #1f1f1f;
    
    --ps-dark-secondary: #2a2a2a;
    --ps-light-gray: #f5f5f5;
    --ps-text: #f5f5f5;
    --ps-text-light: #b0b0b0;
    --ps-white: #ffffff;
    --ps-hover-blue: #0078f2;
    --ps-preorder-orange: #ff4500;
    --ps-preorder-orange-hover: #ff5a19;
}

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

body {
    background-color: var(--ps-dark);
    color: var(--ps-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--ps-white);
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1152px;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--ps-blue);
    color: var(--ps-white);
}

.btn-primary:hover {
    background-color: var(--ps-hover-blue);
}

.btn-light {
    background-color: var(--ps-white);
    color: var(--ps-dark);
}

.btn-light:hover {
    background-color: #e0e0e0;
}

.btn-preorder {
    background-color: var(--ps-preorder-orange);
    color: var(--ps-white);
    padding: 0.85rem 2.5rem;
}

.btn-preorder:hover {
    background-color: var(--ps-preorder-orange-hover);
}

.btn-add-cart {
    background-color: var(--ps-blue);
    color: var(--ps-white);
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
}

.btn-add-cart:hover {
    background-color: var(--ps-hover-blue);
}

.wishlist-btn {
    background-color: var(--ps-dark-secondary);
    color: var(--ps-white);
    border: 1px solid var(--ps-text-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background-color: #3a3a3a;
    border-color: var(--ps-white);
}

.wishlist-btn svg {
    width: 24px;
    height: 24px;
}

.top-bar {
    background-color: #000;
    height: 2.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.sony-logo {
    height: 0.8rem;
    width: auto;
}

.header {
    background-color: var(--ps-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-nav {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .header-nav {
        height: 5rem;
    }
}

.header-logo img {
    height: 1.25rem;
    width: auto;
    filter: brightness(0) invert(0);
}

@media (min-width: 768px) {
    .header-logo img {
        height: 1.5rem;
    }
}

.nav-desktop {
    display: none;
    gap: 2rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    position: relative;
    font-weight: 600;
    color: #363636;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--ps-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--ps-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .header-actions {
        gap: 1.5rem;
    }
}

.header-actions .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: none;
}

@media (min-width: 768px) {
    .header-actions .btn-primary {
        display: block;
        padding: 0.6rem 1.25rem;
        font-size: 1rem;
    }
}

.header-actions button svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #1f1f1f;
    transition: color 0.3s ease;
}

.header-actions button:hover svg {
    color: var(--ps-blue);
}

.menu-toggle {
    display: block;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--ps-white);
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    height: 4rem;
}

.mobile-menu-header .header-logo img {
    height: 1.25rem;
    width: auto;
}

.mobile-menu-header button svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--ps-dark);
}

.mobile-menu-links {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ps-dark);
    border-bottom: 1px solid #eee;
}

.mobile-menu-links a:last-child {
    border-bottom: none;
}

.mobile-menu-links a:hover {
    color: var(--ps-blue);
}

.mobile-menu-links .btn-primary {
    margin-top: 1rem;
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}


.product-hero {
    position: relative;
    padding-top: 10vh;
    padding-bottom: 10vh;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.product-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 31, 31, 1) 0%, rgba(31, 31, 31, 0.8) 30%, transparent 100%);
}

.product-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
}

.product-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .product-hero h1 {
        font-size: 2.5rem;
    }
}

.buy-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.buy-row .price {
    font-size: 1.5rem;
    font-weight: 700;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ps-text-light);
    font-weight: 600;
}

.info-row .ps5-badge {
    background-color: var(--ps-blue);
    color: var(--ps-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.details-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--ps-dark-secondary);
    margin-top: 1rem;
}

.details-icon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ps-text-light);
}

.details-icon-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.rating-badge {
    width: 50px;
    height: auto;
}

.media-section {
    padding: 3rem 0;
}

.media-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.media-gallery::-webkit-scrollbar {
    height: 8px;
}

.media-gallery::-webkit-scrollbar-track {
    background: var(--ps-dark-secondary);
    border-radius: 10px;
}

.media-gallery::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.media-gallery::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.media-item {
    flex-shrink: 0;
    width: 280px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: scale(1.03);
}

.media-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.media-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

.media-item-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item-play-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--ps-white);
    margin-left: 3px;
}

.media-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ps-white);
}

.main-content-section {
    padding: 3rem 0;
}

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

@media (min-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 3fr 1fr;
    }

    .main-content-sidebar {
        order: 2;
    }

    .main-content-body {
        order: 1;
    }
}

.section-divider {
    border-bottom: 1px solid var(--ps-dark-secondary);
    margin: 2rem 0;
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.edition-card {
    background-color: var(--ps-dark-secondary);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.edition-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.edition-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.edition-card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.edition-card-content .price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: auto;
    padding-top: 1rem;
}

.description-content h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.description-content p,
.description-content li {
    font-size: 0.95rem;
    color: var(--ps-text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.description-content ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

.info-table {
    background-color: var(--ps-dark-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.info-label {
    font-weight: 600;
    color: var(--ps-text-light);
}

.info-value {
    font-weight: 600;
    color: var(--ps-white);
    text-align: right;
}

.info-value a {
    color: var(--ps-blue);
    text-decoration: underline;
}

.legal-text {
    font-size: 0.75rem;
    color: #888;
    padding-top: 2rem;
    border-top: 1px solid var(--ps-dark-secondary);
}

.footer {
    background-color: var(--ps-blue);
    color: var(--ps-white);
    padding: 3rem 0;
    font-size: 0.875rem;

}

.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-social-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-logo-country {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-logo-country {
        align-items: flex-start;
    }
}

.footer-ps-logo img {
    height: 1.5rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.footer-country-selector svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-links a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--ps-white);
}

.footer-social-links svg {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--ps-white);
}

.footer-bottom-legal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .footer-bottom-legal {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-sie-logo img {
    height: 2rem;
    opacity: 0.7;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #d1d5db;
    max-width: 600px;
}

.footer-copyright a {
    text-decoration: underline;
}

.footer-copyright a:hover {
    color: var(--ps-white);
}