/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Be Vietnam Pro", serif !important;
    font-weight: 400;
    font-style: normal;
    background-color: #E8ECD7 !important;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
}

/*HEADER*/
.usernamedisplay{
    display: flex;
    justify-content: center;
    text-align: center;
    color: black;  
    font-size: 20px;
    font-family: "Bebas Neue", serif;    
    margin: 0;
    white-space: nowrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust spacing between the image and text */
}

.logo-image {
    height: 40px; /* Adjust size as needed */
    width: auto; /* Keep aspect ratio */
}

.logo img {
    height: 40px; /* Adjust logo size */
}

header {
    background-color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure the header uses the full width */
    flex-wrap: wrap;
}

/* Navigation Bar Styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Icons in Navigation */
.icons {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Font Awesome Icon Styles */
.icon-profile, .home, .cart {
    font-size: 1.6rem;
    color: black;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
}

.icon-profile:hover, .home:hover, .cart:hover {
    transform: scale(1.1);
    color: orange;
}

.search-bar {
    padding: 8px 12px;
    border-radius: 25px;
    border: 1px solid #ccc; /* Add border with a light grey color */
    outline: none;
    font-size: 1rem;
    width: 300px;
    background-color: #FFFFFF;
}
/*END OF HEADER*/

/* Product Category */
.product-category {
    background-color: #E8ECD7;
    padding: 10px 20px;
    font-size: 14px;
}

/* Product Detail */
.product-detail {
    background-color: #bbc978;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px; /* Increased from 20px for more space between image and text */
    width: 100%;
    margin: 0;
}

.product-image-container {
    flex: 0 0 auto;
    width: 300px;
    padding: 10px;
    background-color: #e8e8e8;
    border-radius: 10px; /* Increased from 5px for a more rounded appearance */
    display: flex;
    justify-content: center;
}
.product-detail-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.product-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    padding: 10px;
}

.product-info {
    flex: 1;
    max-width: 800px; /* Increased from 600px for longer description width */
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-name {
    font-family: "Bebas Neue", serif !important;
    font-size: 32px;
    margin-bottom: 20px;
    color: #000000;
}

.product-quantity {
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.quantity-btn {
    background-color: #1F4529;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
}

.quantity-value {
    width: 30px;
    text-align: center;
    font-size: 18px;
}

.product-price {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

.product-description {
    margin-bottom: 30px;
    font-size: 16px;
    max-width: 800px; /* Add this line to make description wider */
    width: 100%; /* Ensures the element uses available space */
}

.add-to-cart-btn {
    background-color: #1F4529;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-family: "Bebas Neue", serif !important;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.add-to-cart-btn:hover {
    background-color: #b10e0e;
    color: #ffffff;
}

/* Similar Products */
.similar-products {
    padding: 30px;
    background-color: #e8ecd7;
    max-width: 1200px;
    margin: 0 auto;
}

.similar-title {
    font-family: "Bebas Neue", serif !important;
    font-size: 45px;
    text-align: center;
    color: #470c25;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; /* Small gap between products */
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Remove these styles if they exist */
.product-card::after {
    display: none;
}

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-image {
    height: 200px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 15px;
    background-color: #CBDC90;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #1F4529;
}

.card-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.card-price {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin-top: auto;
}

/* Footer */
footer {
    background-color: white;
    color: black;
    padding: 30px 30px;
    display: flex;
    flex-direction: column; /* Stack footer elements vertically */
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 200px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.footer-logo {
    height: 150px; /* Adjust according to your logo size */
}

.footer-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.footer-right {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    font-family: "Bebas Neue", serif !important;
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-nav a {
    color: black;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons {
    display: flex;
    text-align: left;
    flex-direction: column; /* Keeps the SOCIALS text on top and icons underneath */
    align-items: flex-start; /* Aligns items to the left */
    font-size: 20px;
    font-family: "Bebas Neue", serif;
    color: black;
    text-decoration: none;
    padding: 0;
}

.social-icons p {
    margin-bottom: 8px;
}

.social-icons a {
    margin-bottom: 8px;
    color: black;
}

.social-icons a:hover, .footer-nav a:hover {
    transform: scale(1.1);
    color: orange;
}

.footer-center {
    text-align: center;
    width: 100%;
    font-size: 14px;
    opacity: 0.8;
}

/*footer responsiveness*/
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        align-items: center;
    }
    
    .product-info {
        width: 100%;
    }
    
    .product-card {
        width: calc(50% - 20px);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #E8ECD7;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #FF8666;
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #1F4529;
}

/*modal*/
.modal-body {
    text-align: justify;
    align-items: center;
    border-radius: 30px;
}
.modal-header {
    color: whitesmoke;
}

.modal-dialog {
    max-width: 40%; /* Adjust as needed */
}

.modal-content {
    max-height: 50vh; /* Adjust height */
    overflow-y: auto; /* Enables scrolling if content is too long */
}