
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body { 
    font-family: Arial, sans-serif; 
    background: #1a1a2e; 
    color: #fff; 
}

a{
    text-decoration:  none;
}

/* HEADER */
header { 
    background: #000; 
    padding: 15px 20px; 
    border-bottom: 3px solid #e94560; 
    display: flex;  
    align-items: center; 
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
}

.logo-section {
    flex: 1; 
    display: flex;
    justify-content: flex-start; 
}

.logo-link { 
    display: inline-flex;
    align-items: center;   
    gap: 10px; 
    text-decoration: none;
    color: #e94560;  
    font-size: 24px; 
    font-weight: bold;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.logo-link img {
    width: 50px;
    height: auto;
    display: block;
}

.search-bar {
    flex: 2;
    display: flex;
    justify-content: center;
}

.search-bar input { 
    width: 100%;
    max-width: 370px;
    padding: 8px 15px; 
    border: 2px solid #e94560; 
    border-radius: 20px; 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
}

.header-right {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px; 
    min-width: fit-content;
}

.account-link { 
    color: #fff; 
    text-decoration: none; 
    padding: 8px 20px; 
    border: 2px solid #e94560; 
    border-radius: 20px; 
}

.cart-link{
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    color: #fff; 
    text-decoration: none; 
    gap: 5px;
    font-size: 16px;
    padding: 6px 12px; 
    border-radius: 20px; 
    background: #e94560;
    justify-self: end;
}

/* MAIN */
main {
  padding: 60px 20px;
}

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

/*prodotti*/
.product-details-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 80px; 
    margin-bottom: 50px;
}

#products{
    position: relative;
    top: 40px;
    bottom: 20px;
    margin: auto;
    width: 1000px;
}

.product{
    display: inline-grid;  
    margin: 10px;
    height: 460px;
    width: 306px;
    padding: 30px;
    border-radius: 8px;
    background-color: black;
}

.product-image{
    position: relative;
    background-color: #262626;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    display: inline-block;
    margin: auto;
}

.product-name { 
    font-size: 32px; 
    text-align: center;
    margin: auto;
    color: #e94560; 
}

.product-franchise{
    color: gray;
    text-align: center;
    margin: auto;
}

.product-info { 
    color: gray;
/*    
     background: rgba(255,255,255,0.05);
    border: 2px solid #0f3460; 
    border-radius: 15px; */
    padding: 5px; 
}

.info-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 15px; 
}

.price { font-size: 28px;
    color: #00ff88;
    margin: auto;
    font-weight: bold; 
}

/*Product details*/
#product-details {
    background-color: black;
    border: 2px solid gray;
    position: relative;
    margin-top: 100px;
    padding: 40px;
    width: 1000px;
    margin: auto;
    font-size: 30px;
    display: flex;  
    align-items: center;
    gap: 16px;
    border-radius: 10px;
    position: relative; 
    top: 0;
}

#product-image{
    position: relative;
    background-color: #262626;
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 10px;
    display: inline;
}

#product-name { 
    font-size: 32px; 
    color: #e94560; 
}

#product-franchise{
    color: gray;
    text-align: center;
}

.product-description { 
    color: white;
    font-size: 20px;
    padding: 5px; 
}

#price { font-size: 28px;
    color: #00ff88;
    margin: auto;
    font-weight: bold; 
}

#imgCart{
    position: relative;
    width: 40px;
    height: auto;
    color: white;
}
#cartButton{
    background-color: #e94560;
    float: right;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    justify-content: center;
    display: flex;
    justify-items: center;
    align-items: center;
    border-radius: 5px;
    padding: 9px;
    padding-left: 15px;
    cursor: pointer;
}

.specifications { 
    list-style: none; 
    margin: 15px 0 0 20px; 
}

.specifications li { 
    margin: 8px 0; 
}

/* FOOTER */
footer { 
    bottom: 0px;
    width: 100%;
    background: #000; 
    margin-top: 50px; 
    padding: 30px 20px;
    border-top: 3px solid #e94560; 
    text-align: center;
    margin-bottom: 0px;
}

.testo-footer {
    display: flex;
    flex-wrap: wrap;        
    justify-content: center;   
    align-items: center;
    gap: 30px;               
    max-width: 1200px;
    margin: 0 auto;
}

footer .testo-footer h5 {
    font-size: 18px;
    font-weight: 400;
    display: flex;
    cursor: pointer;
    justify-content: space-around;
}

.testo-footer h5:hover {
    color: #e94560;     
}

.testo-footer p {
    flex-basis: 100%;     
    margin-top: 15px;    
    color: #888;
    font-size: 14px;
}

/* LOGIN */

.login-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
}

.login-box {
    background: #000;
    padding: 40px;
    width: 360px;
    border: 2px solid #e94560;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-box h2 {
    text-align: center;
    color: #e94560;
    margin-bottom: 10px;
}

.login-box label {
    font-size: 14px;
    color: #aaa;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    padding: 12px;
    border-radius: 20px;
    border: 2px solid #e94560;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.login-box input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ccc;
}

.login-box input[type="submit"] {
    margin-top: 10px;
    padding: 12px;
    border-radius: 20px;
    border: none;
    background: #e94560;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.login-box input[type="submit"]:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.login-wrapper #text {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* LOGOUT */
.logout-form {
    display: flex;
    justify-content: center;
    margin: 0;
}

.welcome-message {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    padding-top: 80px;
}

.welcome-message img {
    display: block;
    margin: 0 auto;
    height: auto;
}

.welcome-message h1 {
    color: #fff;
    font-size: 32px;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
    margin: 10px 0;
}

.logout-form input[type="submit"] {
    padding: 12px 40px;
    border-radius: 20px;
    border: none;
    background: #e94560;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-form input[type="submit"]:hover {
    background: #fff;
    color: #e94560;
    box-shadow: 0 0 20px #e94560;
}

/* CARRELLO */
.cart-title {
    max-width: 900px;
    margin: 120px auto 20px; 
    color: #fff;
    font-size: 30px;
    text-transform: uppercase;
    padding-left: 15px;
    text-shadow: 2px 2px 10px rgba(233, 69, 96, 0.3);
}
.cart-wrapper {
    max-width: 900px;
    margin: 25px auto 100px; 
    padding: 20px;
    background: #000;
    border: 2px solid #e94560;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
}

.cart-empty {
    text-align: center;
    font-size: 24px;
    margin-top: 150px;
    color: #888;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table tr:first-child {
    border-bottom: 2px solid #e94560;
    color: #e94560;
    font-weight: bold;
    text-transform: uppercase;
}

.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-table tr:hover {
    background: rgba(233, 69, 96, 0.05);
}

/* Stile per il Totale */
.cart-total {
    text-align: right;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-right: 15px;
}

.cart-total span {
    color: #00ff88; /* Verde come i prezzi dei tuoi prodotti */
}

/* Bottone Checkout */
.checkout-form {
    display: flex;
    justify-content: flex-end;
}

.checkout-form input[type="submit"] {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.checkout-form input[type="submit"]:hover {
    background: #fff;
    color: #e94560;
    box-shadow: 0 0 20px #e94560;
    transform: translateY(-3px);
}

/* CHECKOUT */
.checkout-form {
    max-width: 500px;
    margin: 120px auto 50px;
    background: #000;
    padding: 40px;
    border: 2px solid #e94560;
    border-radius: 9px;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
    flex-direction: column;
}

.checkout-form label {
    display: block;
    color: #e94560;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.checkout-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.checkout-form input[type="text"]:focus {
    outline: none;
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}

.checkout-form input[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.checkout-form input[type="submit"]:hover {
    background: #fff;
    color: #e94560;
    box-shadow: 0 0 20px #e94560;
    transform: translateY(-2px);
}

/* Messaggio di Successo / Errori */
.checkout-success {
    text-align: center;
    margin: 150px auto;
    padding: 40px;
    background: rgba(0, 255, 136, 0.05); /* Sfondo verde scurissimo e trasparente */
    border: 2px solid #00ff88;
    border-radius: 20px;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2); /* Bagliore verde */
    animation: fade-in-up 0.6s ease-out;
}

.checkout-success h2 {
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.checkout-success p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.checkout-success a {
    display: inline-block;
    color: #000;
    background: #00ff88;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.checkout-success a:hover {
    background: #fff;
    box-shadow: 0 0 15px #fff;
    transform: scale(1.05);
}
.error-list {
    max-width: 500px;
    margin: 20px auto;
    padding: 15px 20px 15px 40px; /* Spazio per i pallini della lista */
    background: rgba(233, 69, 96, 0.1); /* Sfondo rosso trasparente */
    border: 1px solid #ff4757;
    border-left: 5px solid #ff4757; /* Barretta spessa a sinistra per enfasi */
    border-radius: 8px;
    color: #ff4757;
    list-style-type: square; /* Pallini quadrati più "tech" */
    font-weight: 500;
}

.error-list li {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.error-list li::marker {
    color: #fff; /* Pallini bianchi per contrasto */
}

/* BANNER MARVEL */
.marvel-banner {
    width: 100%;
    background: linear-gradient(90deg, #1a1a2e 0%, #ed1d24 50%, #1a1a2e 100%);
    color: white;
    padding: 10px 0;
    margin-top: 20px; /* Per farlo apparire sotto l'header fixed */
    text-align: center;
    border-bottom: 2px solid #fff;
    box-shadow: 0 0 15px rgba(237, 29, 36, 0.6);
}

.marvel-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marvel-badge {
    background-color: #ed1d24; /* Rosso Marvel originale */
    padding: 2px 8px;
    border: 1px solid #fff;
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 18px;
}

.marvel-content p {
    margin: 0;
    font-size: 16px;
    text-shadow: 1px 1px 2px #000;
    animation: pulse-text 2s infinite;
}

/* Animazione per dare vita al banner */
@keyframes pulse-text {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}