body {
    margin: 0;
    font-family: 'Rye', cursive;
    color: #fff;
    position: relative;
    text-align: center;
    cursor: url('images/pointer.png') 16 16, auto;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65); /* your transparency */
    z-index: -1; /* behind content */
}

body {
    background: url('images/bg.png') no-repeat center center fixed;
    background-size: cover;
}

/* Header */
header {
    background-color: rgba(0,0,0,0.7);
    padding: 30px 10px;
    border-bottom: 4px solid #d4af37;
}

header h1 {
    font-size: 3em;
    margin: 0;
    color: #ffcc00;
    text-shadow: 2px 2px #000;
}

header p {
    font-size: 1.2em;
}

/* Carousel Section */
.carousel-section {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.carousel-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

/* Carousel */
.carousel {
    position: relative;
    width: 600px;
    overflow: hidden;
    border: 5px solid #d4af37;
    border-radius: 15px;
    background-color: rgba(0,0,0,0.6);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 15px;
    border: 4px solid #fff;
}

/* Caption under image */
.carousel-item h3 {
    margin: 10px 0 0 0;
    color: #ffd700;
    font-size: 1.8em;
    text-shadow: 1px 1px #000;
}

/* Carousel Buttons */
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: #ffd700;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

/* Carousel Text Panel */
.carousel-text {
    background-color: rgba(75, 0, 0, 0.85);  /* Dark blood-red */
    border: 3px solid #8b0000;               /* Dark red border */
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    color: #ffcc00;
    font-family: 'Rye', cursive;
    box-shadow: 0 0 20px rgba(139,0,0,0.7);
    text-shadow: 1px 1px 2px #000;
    position: relative;
    font-size: 1.2em;                       /* Bigger text */
}

/* Products List */
.products {
    padding: 40px 10px;
    background-color: rgba(0,0,0,0.6);
}

.products h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffcc00;
    text-shadow: 1px 1px #000;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Product Card */
.product-card {
    background-color: rgba(0,0,0,0.7);
    border: 3px solid #d4af37;
    border-radius: 15px;
    width: 250px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
}

.product-card h3 {
    margin: 15px 0 10px 0;
    color: #ffd700;
}

/* Make price and Add to Cart stick to bottom */
.product-card .price,
.product-card .add-to-cart {
    margin-top: auto;  /* pushes them to bottom */    
    font-size: 0.65em;
    padding: 8px 16px;
}

.product-card .price {
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffcc00;
    text-shadow: 1px 1px 2px #000;
}

/* Bloody Western Add-to-Cart Button */
.add-to-cart {
    background-color: #4b0000;
    color: #ffd700;
    font-family: 'Rye', cursive;
    font-size: 1em;
    padding: 12px 25px;
    border: 3px solid #8b0000;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Blood splatter effect on hover */
.add-to-cart::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,0,0,0.5) 10%, transparent 10%);
    transform: scale(0);
    transition: transform 0.4s ease;
    pointer-events: none;
}

/* Footer */
footer {
    padding: 20px;
    background-color: rgba(0,0,0,0.7);
    border-top: 4px solid #d4af37;
}

p, h1, h2, h3 {
    font-family: 'Rye', cursive;
}

#product-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-product-card {
    background-color: rgba(0, 0, 0, 0.95); /* dark blood-red */
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    max-width: 80%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.modal-product-card .close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2em;
    color: #ffd700;
    cursor: pointer;
    z-index: 10;
}

.modal-product-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    z-index: 1;
}

.modal-product-title {
    font-size: 1.5em;
    color: #ffcc00;
    margin-bottom: 10px;
}

.modal-product-price {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 15px;
}

.modal-product-card .add-to-cart {
    background-color: #4b0000;
    color: #ffd700;
    font-family: 'Rye', cursive;
    padding: 8px 16px;
    border: 3px solid #8b0000;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
    font-size: 0.65em;
}

/* ========================== */
/* Western Dark-Themed Audio Player */
/* ========================== */
.audio-player {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    font-family: 'Rye', cursive;
    color: #ffd700; /* gold text */
    cursor: pointer;
}

/* Hide default audio element */
.audio-player audio {
    display: none;
}

/* Play/Pause Button */
#audio-toggle {
    background-color: #4b0000;
    color: #ffd700;
    font-family: 'Rye', cursive;
    font-size: .8em;
    padding: 8px 20px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(0,0,0,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

#audio-toggle:hover {
    background-color: #8b0000;
    box-shadow: 0 0 12px rgba(139,0,0,0.9);
}

/* ========================== */
/* Mobile View Adjustments - Two products per row fixed */
/* ========================== */
@media (max-width: 768px) {

    /* Header */
    header h1 {
        font-size: 1.5em;
    }

    header p {
        font-size: 0.8em;
    }

    /* Audio player: stack elements & reduce button size */
    .audio-player {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    #audio-toggle {
        font-size: 0.6em; /* ~25% smaller */
        padding: 6px 15px;
    }

    /* Carousel Section: stack carousel & text vertically */
    .carousel-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .carousel {
        width: 90%;
        max-width: 400px;
    }

    .carousel-text {
        max-width: 90%;
        font-size: 1em;
        padding: 15px;
    }

    /* Product Grid: two cards per row */
    .product-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .product-card {
        flex: 1 1 calc(50% - 15px); /* two cards per row with gap subtracted */
        max-width: calc(50% - 15px);
        width: 100%;   /* allow shrink below 250px */
        box-sizing: border-box; /* include padding/border in width */
        margin: 0;
    }

    /* Footer text */
    footer p {
        font-size: 0.9em;
    }
}