.food-detail-wrapper {
    max-width: 1400px;
    margin: 60px auto;
    padding: 40px 20px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #1c1c1c;
}

.food-detail-container {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.food-detail-image {
    flex: 1;
    max-width: 600px;
}

.food-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.food-detail-info {
    flex: 1;
    max-width: 600px;
}

.food-detail-info h1 {
    font-size: 48px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    
}

.description {
    font-size: 18px;
    line-height: 1.8;
    
    margin-bottom: 32px;
    font-weight: 400;
}

.price {
    color: #2e7d32;
}

.rating [data-theme='dark']{
  
    font-weight: 600;
    
}

.rating .star-icon {
    color: #ffc107;
}

.info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    font-size: 20px;
    margin-bottom: 40px;
}

.info-section>div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: red;
    color: white;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-inline: 1vmax;
}

.add-to-cart:hover {
    background-color: rgb(239, 17, 17);
    transform: scale(1.05);
}
.two-button-in-same-frame{
    display: flex;
    align-items: center;
    gap:0.5vmax;
}

/* Food Detail Cart Section */
.food-detail-cart-section {
    margin-top: 32px;
    display: contents;
}

/* Quantity Controls for Food Detail */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    width: fit-content;
}

.quantity-btn {
    background-color: #ff6347;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 99, 71, 0.3);
}

.quantity-btn:hover {
    background-color: #e5533d;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.4);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}
.food-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.food-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #4caf50;
}

.view-btn {
    background-color: red;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    
}

.view-btn:hover {
    background-color: #c70000;
}


.reviewratings{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vmax
}
.description > textarea{
padding: 1vmax;
width: 30vw;
outline:none;
border: 1px solid grey;
border-radius:5px
}
.submitbtn{
    display: inline-flex;
    align-items: center;
    background-color: red;
    color: white;
    padding: 10px 32px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-inline: 1vmax;
    margin-top: -2vmax
}
.submitbtn:hover{
    background-color: rgb(239, 17, 17);
    transform: scale(1.05);
}
.reviewcards{
    margin-top: 2vmax;
    width: 25vw;
    overflow:auto;
    height: 40vh
}
hr{
    margin-top: 2vmax
}
h2{
    /* text-align: center; */
    margin-top: 1vmax
}
.userreview{
     display: flex;
     flex-direction: column;
     border: 1px solid rgba(185, 181, 181, 1);
     padding: 1vmax;
     margin-top:0.5vmax;
}
.userreview > p{
    margin-top: -4vmax;
    background-color: rgba(247, 247, 247, 1);
    padding: 0.5vmax;
    color: black;
}
.section{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -2vmax;
}
.section > p{
    font-weight: bold;
    margin-left: -2.5vmax;
}
.section2{
    display: flex;
    gap: 0.5vmax;
}


@media (max-width: 768px) {
    .food-detail-container {
        flex-direction: column;
        gap: 40px;
    }

    .food-detail-info h1 {
        font-size: 32px;
    }

    .description {
        font-size: 17px;
    }

    .info-section {
        flex-direction: column;
        gap: 20px;
    }

    .add-to-cart {
        width: 100%;
        justify-content: center;
    }
}
:root {
  --bg-color-light: #ffffff;
  --bg-color-dark: #121212;
  --text-color-light: #1c1c1c;
  --text-color-dark: #f1f1f1;
  --primary-red: #e53935;
  --hover-red: #c62828;
  --accent-green: #4caf50;
}

[data-theme="dark"] .food-detail-wrapper {
  color: var(--text-color-dark);
}

[data-theme="dark"] .food-detail-info h1,
[data-theme="dark"] .description,
[data-theme="dark"] .info-section > div,
[data-theme="dark"] .food-item-price {
  color: var(--text-color-dark);
}

[data-theme="dark"] .add-to-cart,
[data-theme="dark"] .view-btn {
  background-color: var(--primary-red);
  color: white;
}

[data-theme="dark"] .add-to-cart:hover,
[data-theme="dark"] .view-btn:hover {
  background-color: var(--hover-red);
}

/* Related Products Section */
.related-products-section {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.related-products-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #1c1c1c;
}

.related-products-subtitle {
  font-size: 16px;
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Dark theme support for related products */
[data-theme="dark"] .related-products-section {
  border-top-color: #333;
}

[data-theme="dark"] .related-products-title {
  color: var(--text-color-dark);
}

[data-theme="dark"] .related-products-subtitle {
  color: #aaa;
}

/* Responsive design for related products */
@media (max-width: 768px) {
  .related-products-section {
    margin-top: 60px;
    padding: 30px 0;
  }
  
  .related-products-title {
    font-size: 28px;
  }
  
  .related-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
