/* --- Custom Styles for Cave Aesthetic --- */
:root {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --torch-radius: 300px; /* Radius of the main light area */
    --torch-glow-radius: 600px; /* Radius of the outer glow */
}

@media (max-width: 768px) {
     :root {
        --torch-radius: 200px;
        --torch-glow-radius: 400px;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background-color: #fff;
    border: 2px solid #A0937D;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.btn-add-to-cart {
    background-color: #A0937D;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: #8C7B6A;
}
body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #3c3c3c; /* A dark base for the cave wall */
    background-image: radial-gradient(circle at center, #4a4a4a 0%, #3c3c3c 70%);
    color: #F4F1E9; /* Light text to contrast with the dark background */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scroll from decorations */
    position: relative; /* Needed for the pseudo-element */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZHRoPSIxMDAlIiBmaWx0ZXI9InVybCgjbnoaXNlKSIvPjwvc3ZnPg==');
    opacity: 0.05; /* Adjust for subtlety */
    z-index: -1;
}

/* The Torchlight Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) var(--torch-radius),
        rgba(0, 0, 0, 0.80) calc(var(--torch-radius) + 100px),
        rgba(0, 0, 0, 0.90) var(--torch-glow-radius),
        #000 100%
    );
    pointer-events: none; /* Allows clicking through the overlay */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 20;
}

.font-caveman {
    font-family: 'Underdog', cursive;
    letter-spacing: 2px;
    color: #EADDCA; /* A nice, earthy beige for text */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Styling UI elements to look primitive */
.btn-primitive {
    background-color: #A0937D; /* Beige from image */
    border: 2px solid #605442; /* Darker beige */
    color: #1a1a1a;
    font-weight: bold;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 2px 2px 5px rgba(0,0,0,0.3);
    transition: all 0.2s ease-in-out;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-primitive:hover {
    background-color: #B8A990;
    transform: translateY(-2px);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 4px 4px 8px rgba(0,0,0,0.4);
}

.input-primitive {
    background-color: #332929;
    border: 2px solid #483434;
    color: #EADDCA;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
}
.input-primitive:focus {
     border-color: #A0937D;
     outline: none;
     box-shadow: 0 0 15px rgba(160, 147, 125, 0.5);
}

.panel-primitive {
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    border: 2px solid #483434;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 20px;
    border-radius: 8px;
}

/* Header & Nav */
header {
    text-align: center;
    padding: 20px 0;
}

nav {
    margin-top: 15px;
}

nav a {
    margin: 0 15px;
    color: #A0937D;
    text-decoration: none;
    font-family: 'Knewave', cursive;
    font-size: 1.4em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

nav a:hover {
    color: #EADDCA;
    text-decoration: underline;
}

/* Main Layout */
#app {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Product Card */
.product-card {
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 2px solid #483434;
}

.product-price {
    color: #A0937D;
    font-weight: bold;
    font-size: 1.2em;
}

/* Order Section */
#order-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-family: 'Knewave', cursive;
}

/* Generic Content Section */
.content-section {
    max-width: 800px;
    margin: 20px auto;
}

.content-section a {
    color: #A0937D;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #605442;

    img{
    width: 90vw;
    border-radius: 20%;
    /* padding: 0% 0%; */
    /* margin: 0% 0%; */

    }
}
img{
    width: 90vw;
    height: fit-content;
}
.logo{
    width: 150px; /* Adjust as needed */
    height: auto;
    margin-bottom: 20px;
    border-radius: 0; /* Remove border-radius for logo if it's not a product image */
    border: none; /* Remove border for logo */

}

.hidden { display: none; }

@media (max-width: 900px) {
    #app {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
  color: #333;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

