* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;

    font-family: Arial, sans-serif;

    list-style: none;
    text-decoration: none;
}

header {
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: coneter;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 2px solid #ddd;
    padding: 20px 5px;
}

.logo img {
    margin: 0px 10px;
    max-width: 70px;
    height: auto;
}

.navmenu {
    display: flex;
}

.navmenu a {
    color: #2c2c2c;
    font-size: 16px;
    text-transform: capitalize;
    padding: 10px 20px;
    font-weight: 400;
    transition: all .42s ease;
}

.navmenu a:hover {
    color: #e5595d;
}

.nav_icon {
    display: flex;
    align-items: center;
}

.nav_icon i {
    margin-right: 20px;
    color: #2c2c2c;
    font-size: 25px;
    font-weight: 400;
    transition: all .42s ease;
}

.nav_icon i:hover {
    transform: scale(1.1);
    color: #e5595d;
}

#menu-icon {
    font-size: 35px;
    color: #2c2c2c;
    z-index: 10001;
    cursor: pointer;
}

section {
    padding: 5% 10%;
}

.main-home {
    width: 100%;
    height: 100vh;
    background-image: url(../image/home.png);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
}

.main-home h1 {
    color: #2c2c2c;
    font-size: 65px;
    text-transform: capitalize;
    line-height: 1.1;
    font-weight: 600;
    margin: 6px 0 0px;
}

.main-home p {
    color: #333c56;
    font-size: 20px;
    font-style: jost;
    margin-bottom: 20px;
}

.main-btn {
    display: inline-block;
    color: #111;
    font-weight: 500;
    font-size: 16px;
    text-transform: capitalize;
    border: 1px solid #111;
    padding: 12px 25px;
    transition: all .42s ease;
}

.main-btn:hover {
    background-color: #e5595d;
    color: #fff;
    border: none;
}

.main-btn i {
    vertical-align: middle;
}

/* bestsellers-section */
.bestsellers {
    padding: 40px 50px;
}

.bestsellers h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-type {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.product-price-cart {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    margin-top: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    width: 100%;
    text-align: center;
}

.cart-button {
    background-color: transparent;
    color: #e74c3c;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-button:hover {
    color: #c0392b;
}

/* product details  */

.product-page {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;

}

.product-image {
    flex: 0.8;
    text-align: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background-color: #f0f0f0;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.image-placeholder img {
    max-width: 100%;
    max-height: 100%;
}

.thumbnail-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.thumbnail {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
}

.product-details {
    flex: 1.2;
}

.product-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.price {
    font-size: 1.5rem;
    color: #E63946;
    margin-bottom: 1rem;
}

.description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.action-buttons {
    display: flex;
    gap: 1rem;
}

.add-to-cart,
.buy-now {
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.add-to-cart {
    background-color: #1D3557;
    color: #fff;
}

.add-to-cart:hover {
    background-color: #16314b;
}

.buy-now {
    background-color: #E63946;
    color: #fff;
}

.buy-now:hover {
    background-color: #c62c3b;
}


/* Cart Styles */
.cart-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cart {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
}

.cart-items .item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f7f7f7;
    border-radius: 8px;
}

.item-image {
    width: 80px;
    height: 80px;
    background-color: #ccc;
    border-radius: 5px;
}

/* Add this to your existing CSS file */
.item-image {
    width: 50px;
    /* Set the width of the image container */
    height: 100px;
    /* Set the height of the image container */
    overflow: hidden;
    /* Hide anything that overflows the box */
    display: flex;
    /* Use flexbox to center the image */
    justify-content: center;
    /* Center the image horizontally */
    align-items: center;
    /* Center the image vertically */
}

.item-image img {
    width: 100%;
    /* Make the image take up 100% of the container's width */
    height: 100%;
    /* Make the image take up 100% of the container's height */
    object-fit: cover;
    /* Ensure the image covers the entire box */
}


.item-info h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.item-info p {
    font-size: 0.9rem;
    color: #555;
}

.item-info .price {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.remove {
    font-size: 0.8rem;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.remove:hover {
    color: #c0392b;
}

.summary {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f7f7f7;
}

.summary table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.summary table td {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

.summary table .amount {
    text-align: right;
    font-weight: 500;
}

.summary .total-row td {
    font-weight: 700;
    color: #000;
}

.checkout {
    width: 100%;
    background: #e74c3c;
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout:hover {
    background: #c0392b;
}

/* Use the provided CSS design for quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quantity-selector button {
    padding: 0.5rem 0.75rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    padding: 0.25rem;
}

/* checkout */

.checkout-section {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.checkout-form,
.cart-summary {
    flex: 1;
    max-width: 45%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-right: 10px;
    margin-left: 10px;
}

.checkout-form h1,
.cart-summary h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.checkout-form input,
.checkout-form select,
.checkout-form button,
.cart-item p,
.summary p {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.checkout-form button {
    background-color: #ff5f5f;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.checkout-form button:hover {
    background-color: #ff4f4f;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.item-details,
.item-price {
    flex: 1;
}

.item-price {
    text-align: left;
}

.item-price a {
    color: #ff5f5f;
    text-decoration: none;
}

.item-price a:hover {
    text-decoration: underline;
}

.summary {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.btn-submit {
    background-color: #ff5f5f;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
}

.btn-submit:hover {
    background-color: #ff4f4f;
}



/* Top Section: Logo and Social Icons */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* payment */
/* Payment Form Styles */
.payment-form {
    max-width: 600px;
    margin: 3rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.payment-form h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: black;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.payment-method {
    margin: 1.5rem 0;
}

.payment-method label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-options input {
    transform: scale(1.2);
}

.option {
    font-size: 1rem;
    color: #333;
}


.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #d32f2f;
}

/* payment success */

.popup {
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    font-size: 20px;
    color: #000;
    margin-bottom: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #f76e6e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.success-icon i {
    font-size: 36px;
    color: #fff;
}

.status-text {
    font-size: 18px;
    font-weight: bold;
    color: #19224D;
    margin-top: 15px;
}

.complete-btn {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #f76e6e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.complete-btn:hover {
    background-color: #e65252;
}

/* contact page  */

.contact-section {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contact-section h1 {
    text-align: center;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.form-row input,
textarea {
    width: calc(50% - 10px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #f76e6e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #e65252;
}

.contact-info {
    margin-top: 20px;
    text-align: justify;
}


/* customer dashboard */

.dashboard-container {
    display: flex;
    height: calc(100vh - 70px);
    margin-top: 70px;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #666;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #e74c3c;
    color: #fff;
}

.main {
    flex-grow: 1;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
}

.profile-section {
    margin: 50px 0px 0;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 2;
}

.profile-section h3,
.profile-section input {
    margin: 0;
    font-size: 16px;
}

.profile-section p,
.profile-section input {
    margin: 5px 0;
    color: #777;
}

.profile-section input {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
}

.edit-btn {
    background-color: #2ecc71;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.edit-btn:hover {
    background-color: #27ae60;
}

/* admin dashboard */

.main-content {
    flex: 1;
    padding: 30px;
}

.main-content h1 {
    margin: 0;
    font-size: 24px;
    margin-bottom: 20px;
}

.summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;

}


.card h2 {
    margin: 0;
    font-size: 30px;
}

.card p {
    margin: 5px 0 0;
    color: #777;
}

.customers {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.customers h2 {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-customer-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.add-customer-btn:hover {
    background-color: #2980b9;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f9f9f9;
}

.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.edit-btn {
    background-color: #2ecc71;
    color: #fff;
}

.edit-btn:hover {
    background-color: #27ae60;
}

.delete-btn {
    background-color: #e74c3c;
    color: #fff;
}

.delete-btn:hover {
    background-color: #c0392b;
}


/* cart count number */
.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: 0px;
    background-color: #E63946;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
}