/* BASE */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #111;
    color: #f0f0f0;
}

/* HEADER */
header {
    background-color: #bd0000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

header img {
    height: 60px;
    justify-self: start;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    justify-self: center;
}

nav {
    justify-self: end;
}

nav a {
    color: #fff;
    margin-left: 25px;
    font-weight: bold;
    text-decoration: none;
}

nav a:hover {
    color: #ffdd00;
}

/* PAGE TITLE */
h1{
    text-align: center;
    font-size: 2.5rem;
    color: #ffdd00;
    margin: 30px 0;
}

/* SHOP CONTAINER */
.shop-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;        /* permette 3 sopra e 3 sotto */
    gap: 20px;
    max-width: 600px;       /* 3 box da 150px + gap */
    margin: 0 auto;
}

/* PRODUCTS & BUNDLES */
.product,
.bundle {
    background: #1a1a1a;
    padding: 15px 20px;
    border-radius: 10px;
    width: 150px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.product:hover,
.bundle:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 221, 0, 0.3);
}

/* BUTTONS */
.product button,
.bundle-content button {
    padding: 10px 15px;
    background: #0da17c;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.product button:hover,
.bundle-content button:hover {
    background: #09a06a;
}

/* BUNDLES */
.bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.bundle-content {
    margin-top: 10px;
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.bundle.open .bundle-content {
    max-height: 500px;
    opacity: 1;
}

.arrow {
    transition: transform 0.3s ease;
}

.bundle.open .arrow {
    transform: rotate(90deg);
}

/* CARRELLO */
#carrello {
    margin: 30px auto;
    padding: 20px;
    background: #333;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 206, 155, 0.5);
    max-width: 900px;
}

#carrello ul {
    padding-left: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-item button {
    background: #bd0000;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 20px;
    font-weight: bold;
    padding: 0;
}

/* TEXTAREA */
textarea {
    width: 100%;
    height: 120px;
    margin-top: 15px;
    background: #000;
    color: #0da17c;
    padding: 10px;
    border-radius: 5px;
    border: none;
}
