/* General Styling */
body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #fff;
    background: #000;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

/* More Specific Image Sizing - Only for food items */
.product-item img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Glow Effect - Changed to a subtle glow for the logo */
.glow-text {
    text-shadow: 0 0 5px #fff;
}

/* Header and Navigation */
header {
    background: #000;
    color: #fff;
    padding: 20px 0;
    min-height: 80px;
    border-bottom: 3px solid #5c2424;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #fff;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

header nav li {
    margin-left: 30px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #5c2424;
}

/* Logo Styling */
.logo {
    height: 60px;
    margin-right: 20px;
    /* Removed the drop-shadow filter for a clearer look */
}

/* Sections */
section {
    padding: 40px 0;
    text-align: center;
}

/* Hero Section */
.hero {
    background: #000;
    padding: 80px 0;
}

.hero h2 {
    color: #fff;
    font-size: 3em;
}

/* Products Title with Box (for index.html) */
.products-preview h3 {
    font-size: 2.5em;
    background-color: #000;
    padding: 15px 30px;
    border-radius: 5px;
    margin-bottom: 40px;
    display: inline-block;
    color: #fff;
}

/* Page Title with Box (for products.html header) */
.page-title {
    background-color: #000;
    padding: 15px 30px;
    border-radius: 10px;
    margin: 40px auto;
    display: flex;
    justify-content: center;
}

.page-title h2 {
    color: #fff;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Specific styling for the new category-title class */
.category-title {
    color: #fff;
    font-size: 2.5em;
    background-color: #000;
    padding: 15px 30px;
    border-radius: 5px;
    display: inline-block;
    margin: 40px auto 20px auto;
}

/* Product Item Styling (individual product titles) */
.products-preview .product-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

/* Styles for index.html product items with images */
.products-preview .product-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 30px;
}

.products-preview .product-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%;
    margin: 0 auto 30px;
    border: 2px solid #5c2424;
}

.products-preview .product-item-link:hover .product-item {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(92, 36, 36, 0.5);
}

/* For items where the image should be on the left */
.products-preview .product-item.reverse-item {
    flex-direction: row-reverse;
}

.products-preview .product-item .description {
    flex: 1;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
}

.products-preview .product-item img {
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin: 0;
}

.products-preview .product-item.reverse-item img {
    margin-left: 20px;
}

.products-preview .product-item:not(.reverse-item) img {
    margin-right: 20px;
}

.product-item h4 {
    color: #fff;
    font-size: 1.5em;
}

/* New Product Grid Layout for products.html */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
}

.product-item {
    background-color: #000;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid #5c2424;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(92, 36, 36, 0.5);
}

.product-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

.product-item h3 {
    color: #fff;
    font-size: 1.5em;
    margin-top: 15px;
    white-space: normal;
}

/* Modal (Pop-up) Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #000;
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(92, 36, 36, 0.3);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.close-button {
    color: #fff;
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: #5c2424;
    text-decoration: none;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-text {
    text-align: left;
    white-space: normal;
}

.modal-text h3 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 10px;
}

/* Contact Info */
.contact-info {
    background: #000;
    padding-top: 50px;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin: 15px 0;
}

.contact-details a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #5c2424;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 20px 35px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 50px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid #5c2424;
}

.cta-button:hover {
    background: #5c2424;
    color: #fff;
}

/* New Scroll Effect Styles */
.scroll-effect {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-effect.visible {
    opacity: 1;
    transform: translateY(0);
}

/* New rule to reverse image and text order for product items */
@media (min-width: 768px) {
    .product-details .product-item.reverse-row {
        flex-direction: row-reverse;
    }
    .product-details .product-item.reverse-row img {
        margin-left: 30px;
        margin-right: 0;
    }
}

/* === Mobile polish (drop-in) === */
img { max-width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
  /* Header stacks nicely */
  header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  /* Logo + title sizing */
  .logo { max-width: 56px; height: auto; }
  header h1 { font-size: 24px; margin: 6px 0 0; }

  /* Nav becomes vertical & tappable */
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 8px 0 0;
  }
  nav li { list-style: none; }
  nav a { display: block; padding: 10px 12px; }

  /* Container padding for edges */
  .container { width: 100%; max-width: 1100px; padding: 0 16px; }

  /* Products/cards collapse to one column */
  .products, .cards, .gallery, .grid { 
    display: grid; 
    grid-template-columns: 1fr !important; 
    gap: 16px;
  }

  /* Override the rigid 250x250 on phones */
  .product-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Comfortable text sizing */
  h1 { font-size: clamp(22px, 6vw, 32px); line-height: 1.2; }
  h2 { font-size: clamp(18px, 5vw, 26px); }
  p, li { font-size: clamp(15px, 4vw, 18px); line-height: 1.6; }

  /* Keep everything inside the viewport */
  html, body { overflow-x: hidden; }
}