* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
  
body {
    background-color: #fff3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    margin: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
}
  
.container {
    position: relative;
    width: 100%; 
    max-width: 1000px;
    text-align: center;
    margin: 20px auto;
    padding-bottom: 40px; 
}
  
.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3); 
    transition: 0.5s;
}
  
.card:hover {
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.3); 
}
  
.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}
  
.product-info {
    flex: 1;
    max-width: 60%;
    height: 100%; 
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
  
.main-product-name {
    font-size: 30px;
    margin-top: -20px;
    margin-bottom: 50px;
    color: rgba(0,0,0,0.7);
    transition: color 0.2s;
}
  
.main-product-name:hover {
    color: rgba(0,0,0,1);
}
  
.sub-product-name {
    text-align: center; 
    font-size: 24px;
    margin-bottom: 10px; 
    margin-top: 0;
    color: #555;
}
  
.product-info p {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
  
.navigation {
    position: absolute;
    width: 100%;
    bottom: -40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
  
.arrow {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
  
.left-arrow {
    visibility: hidden;
}
  
@media screen and (min-width: 768px) {
    .card {
        display: flex;
        align-items: center;
        width: 80%;
        height: 400px; 
        margin: 20px auto; 
    }
    
    .product-image {
        flex: 1;
        max-width: 40%; 
        max-height: 800px;
        margin-right: 20px;
    }
    
    .product-info {
        flex: 1;
        max-width: 60%; 
        height: 100%; 
        text-align: left;
    }
    
    .navigation {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .arrow {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
}
  
@media screen and (max-width: 767px) {
    .container {
        max-height: 100vh;
        padding-bottom: 60px; 
    }
  
    .card {
        width: 90%;
        margin: 0 auto 10px;
        padding: 15px; 
    }
  
    .product-image {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px; 
    }
  
    .product-info {
        max-width: 100%;
        text-align: left;
    }
  
    .main-product-name {
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 10px;
        text-align: center;
    }
  
    .sub-product-name {
        font-size: 16px;
        margin-bottom: 5px;
        text-align: center;
    }
  
    .product-info p {
        margin-bottom: 10px;
        display: flex;
        align-items: center; 
        flex-wrap: wrap; 
    }
    
    .navigation {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        box-sizing: border-box;
      }
    
      .left-arrow,
      .right-arrow {
        background-color: black;
        color: white;
        font-size: 16px;
        width: 30px; 
        height: 30px; 
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        visibility: hidden;
      }
    
      .left-arrow.visible {
        visibility: visible;
      }
    
      .right-arrow.visible {
        visibility: visible;
      }
}
