/* styles.css */
@font-face {
    font-family: pacifico;
    src: url(../Fonts/Pacifico/Pacifico-Regular.ttf);
}
@font-face {
    font-family: Mochi-pop;
    src: url(../Fonts/Mochiy_Pop_One/MochiyPopOne-Regular.ttf);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f9fa;
    color: #333;
}

#userDp{
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}
#userName{
    font-family: Mochi-pop, sans-serif;
    color: #f97316;
}
header {
    background-color: #007bff;
    color: white;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 20px;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}
/* #email{
    width: 250px;
}
#profile_update_btn{
    width: 300px;
} */
#upload_product_container{
    width: 100%;
    text-align: center;
}
#upload_product_btn {
    font-family: Mochi-pop;
    color: #fff;
    margin: 15px 0;
    border: 2px solid #ff6f07;
    background-color: #f97316;
    border-radius: 0.9em;
    padding: 0.8em 1.2em 0.8em 1em;
    transition: all ease-in-out 0.2s;
    font-size: 16px;
   }
   
#upload_product_btn i {
    color: #fff;
    padding-right: 5px;
    font-weight: 600;
}
   
#upload_product_btn:hover {
    background-color: #f97416e0;
}
.hero {
    text-align: center;
    padding: 50px 0;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0;
    font-size: 2.5em;
}

.hero p {
    font-size: 1.2em;
}

.cta-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    display: inline-block;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #0056b3;
}

.product-list h1 {
    font-size: 2em;
    /* text-align: center; */
    margin-bottom: 20px;
    text-decoration: underline;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: calc(33% - 40px);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product img {
    max-width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.product h3 {
    font-size: 1.5em;
    margin: 0;
}

.product p {
    font-size: 1.2em;
    margin: 10px 0;
}

.product button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.product button:hover {
    background-color: #0056b3;
}

.cart, .order, .profile {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-items, .order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item, .order {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item img, .order img {
    width: 100px;
    height: auto;
}

.cart-summary {
    text-align: right;
    margin-top: 20px;
}

.cart-summary h2 {
    font-size: 1.5em;
}

.cart-summary button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cart-summary button:hover {
    background-color: #0056b3;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-size: 1.2em;
}

form input, form select {
    width: 300px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

form button:hover {
    background-color: #0056b3;
}


/* utils */
.text-capitalize{
    text-transform: capitalize;
}


/* Product Details */
#product_detail_page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    background-color: #f4f4f4;
    position: absolute;
    top: 80px;
}

.product-container {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    padding: 20px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-images{
    margin: 0 auto;
    margin-top: 10px;
    max-width: 450px;
    height: 450px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    border-radius: 20px;
}
.carousel-images img {
    width: 430px;
    /* display: none; */
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-position-x: center;
    display: block;
    background-size: cover;
}

.carousel-images img.active {
    display: none;
    
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 25px;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

.product-details {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 24px;
    margin: 10px 0;
}

.product-amount {
    font-size: 20px;
    color: #0071e2;
    margin: 10px 0;
}

.product-description {
    font-size: 16px;
    color: #7f8c8d;
    margin: 10px 0;
}

button.order-now {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}
button.order-now:hover{
    background-color: #007bff;
}


footer {
    background-color: #000000;
    color: #fff;
    padding: 20px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #f8d568;
}

.footer-section p, .footer-section ul, .footer-section a {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: #f8d568;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #555;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #f97316;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #ccc;
}

/* Main Page Product Details */
.product-main-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 200px;
    width: 100%;
    cursor: pointer;
}
.product-main-card:hover {
    transition: 0.3s all;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.product-image {
    /* height: 100px; */
    /* width: 100px; */
    width: 100%;
    height: 200px;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 1.1em;
    margin: 0;
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis */
    max-width: 100%; /* Ensure it fits within the card */
}

.product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 16px 0;
}

.add-to-cart {
    background-color: #f97416e7;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.add-to-cart:hover {
    background-color: #f97316;
}
