/* =====================================
   HCS COMICS UNIVERSE
   MAIN STYLE SHEET
===================================== */

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,.85)), url("images/background.jpg");
    background-size: cover;
    background-attachment: fixed;
    color: white;
}

/* ================= HEADER ================= */
header {
    background: linear-gradient(90deg, #990000, #000000, #003b80);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.logo h1 {
    margin: 0;
    font-size: 55px;
    letter-spacing: 8px;
    text-shadow: 4px 4px black;
}

.logo p {
    margin: 0;
    font-size: 18px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 15px;
    font-size: 18px;
    font-weight: bold;
}

nav a:hover {
    color: #ffcc00;
}

/* ================= HERO ================= */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.9)), url("images/background.png");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 80px;
    letter-spacing: 10px;
    text-shadow: 5px 5px black;
}

.hero-content h2 {
    font-size: 60px;
    color: #ff0000;
}

.hero-content h3 {
    font-size: 40px;
}

.hero-content p {
    font-size: 25px;
}

button {
    background: linear-gradient(#e00000, #700000);
    color: white;
    border: 3px solid black;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: .3s;
}

button:hover {
    transform: scale(1.1);
    background: #ffcc00;
    color: black;
}

button:disabled {
    background: #555;
    color: #aaa;
    cursor: not-allowed;
    transform: none;
}

/* ================= FEATURED COMIC ================= */
.featured {
    display: flex;
    width: 85%;
    margin: 50px auto;
    background: #eeeeee;
    color: black;
    padding: 40px;
    border: 5px solid black;
    box-shadow: 0 0 20px black;
}

.featured-badge {
    display: inline-block;
    background: #990000;
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.featured-image img {
    width: 380px;
    max-width: 100%;
    border: 5px solid #222;
    box-shadow: 0 0 25px rgba(255,80,80,.4);
}

.featured-text {
    padding: 30px;
    font-size: 20px;
}

.comic-info {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-left: 5px solid #990000;
}

.price {
    font-size: 36px;
    color: #990000;
    margin: 20px 0;
}

.comic-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ================= STORE ================= */
.store {
    padding: 60px 20px;
}

.series-title {
    font-size: 42px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    color: #ffcc00;
    letter-spacing: 3px;
    text-shadow: 3px 3px black;
    border-bottom: 3px solid #990000;
    padding-bottom: 15px;
}

.products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    background: white;
    color: black;
    width: 280px;
    padding: 20px;
    text-align: center;
    border: 5px solid black;
    box-shadow: 5px 5px 15px black;
    transition: .3s;
}

.card:hover {
    transform: translateY(-15px);
}

.card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border: 3px solid black;
}

/* ================= CREATORS ================= */
.creators {
    text-align: center;
    padding: 60px 20px;
    background: #111;
}

.creators img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border: 5px solid white;
    box-shadow: 0 0 25px rgba(255,255,255,.25);
}

.creators h2 {
    font-size: 42px;
    margin: 20px 0 10px;
}

.creators p {
    font-size: 22px;
    color: #ddd;
}

/* ================= CONTACT ================= */
.contact {
    text-align: center;
    padding: 50px 20px;
}

.contact-card {
    background: #1a1a1a;
    display: inline-block;
    padding: 30px;
    border: 3px solid #990000;
    border-radius: 8px;
    text-align: left;
    margin-top: 20px;
}

/* ================= FOOTER ================= */
footer {
    background: black;
    padding: 30px;
    text-align: center;
    border-top: 5px solid red;
}

/* ================= MOBILE DESIGN ================= */
@media(max-width: 900px) {
    header {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 40px;
    }

    nav {
        margin-top: 20px;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    .featured {
        flex-direction: column;
        text-align: center;
    }

    .products {
        flex-direction: column;
        align-items: center;
    }
}

/* ================= CART PAGE STYLES ================= */
.cart-section {
    width: 85%;
    margin: 40px auto;
    min-height: 60vh;
}

.cart-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.cart-items {
    flex: 2;
    background: #111;
    padding: 25px;
    border: 3px solid white;
    border-radius: 8px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #222;
    border-left: 5px solid #990000;
}

.cart-item-row h3 {
    margin: 0 0 5px 0;
    color: #ffcc00;
}

.cart-item-row p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-price {
    font-size: 20px;
    font-weight: bold;
}

.remove-btn {
    background: #555;
    padding: 8px 15px;
    font-size: 14px;
}

.remove-btn:hover {
    background: #e00000;
    color: white;
}

.cart-summary {
    flex: 1;
    background: #111;
    padding: 25px;
    border: 3px solid #990000;
    border-radius: 8px;
    height: fit-content;
}

.cart-summary h2 {
    margin-top: 0;
    color: #ffcc00;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 18px;
}

.total-line {
    font-size: 24px;
    color: #ffcc00;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(#009900, #004d00);
}

.checkout-btn:hover {
    background: #00cc00;
    color: white;
}

.clear-btn {
    width: 100%;
    margin-top: 10px;
    background: #333;
}

.empty-cart-msg {
    text-align: center;
    font-size: 20px;
    color: #888;
    padding: 40px 0;
}

@media(max-width: 900px) {
    .cart-container {
        flex-direction: column;
    }
}

/* ================= TOAST NOTIFICATION ================= */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #990000;
    color: #ffffff;
    padding: 15px 25px;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(0);
}

.toast-notification.hide {
    opacity: 0;
    transform: translateY(20px);
}