/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
}
a {
    text-decoration: none;
    color: #555;
}
p {
    color: #555;
}

/* Header Styles */
.header {
    background: radial-gradient(#fff,#ffd6d6);
}

/* Style for the search form */
.search-form {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
    flex-grow: 1;
    position: relative;
}

.search-form input[type="text"] {
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 3px 0 0 3px;
    outline: none;
    width: 200px;
    transition: width 0.3s ease;
}

.search-form button {
    border: none;
    background: url('images/search-icon.png') no-repeat center;
    background-size: contain;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex: 0 0 auto;
}

.search-form button i {
    font-size: 16px;
}

.search-form input[type="text"]:focus {
    width: 250px;
}
.user-actions {
    display: flex;
    align-items: center;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}
/* Adjustments to the navbar to ensure layout consistency */
.navbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.navbar nav {
    flex-grow: 1;
    text-align: right;
}

.navbar .logo {
    flex-grow: 0;
    margin-right: 20px;
}
nav {
    flex: 1;
    text-align: right;
}
nav ul {
    display: inline-block;
    list-style-type: none;
}
nav ul li {
    display: inline-block;
    margin-right: 20px;
}
.menu-icon {
    display: none;
    width: 18px;
    margin-left: 20px;
}
.row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}
.header .row {
    margin-top: 70px;
}
.col-2 {
    flex-basis: 50%;
    min-width: 300px;
}
.col-2 img {
    max-width: 100%;
    padding: 50px 0;
}
.col-2 h1 {
    font-size: 50px;
    line-height: 60px;
    margin: 25px 0;
}
.btn {
    background-color: #ff523b;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: inline-block; /* Ensure the button width is auto */
    text-align: center;
}

.btn:hover {
    background-color: #e94b35;
}
/* delete all button from cart page */

/* Add this to your style.css file */
.btn-danger {
    background-color: #ff523b;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: inline-block; /* Ensure the button width is auto */
    text-align: center;
}

.btn-danger:hover {
    background-color: #e94b35;
}


/* Style the container for the delete all button */
.delete-all-container {
    margin-top: 20px;
    text-align: right; /* Align the button to the right */
}

/*-----------------------------*/
.categories {
    margin: 70px 0;
}

.small-container {
    max-width: 1080px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.col-3 {
    flex-basis: 30%;
    min-width: 250px;
    margin-bottom: 30px;
}
.col-3 img {
    width: 100%;
}
/*-------featured product--------------*/

.title {
    text-align: center;
    margin: 0px auto 80px;
    position: relative;
    line-height: 60px;
    color: #555;
}
.title::after {
    content: '';
    background: #ff523b;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.col-4 {
    flex-basis: 25%;
    padding: 10px;
    min-width: 200px;
    margin-bottom: 50px;
    transition: transform 0.5s;
}
.col-4 img {
    width: 100%;
}
h4 {
    color: #555;
    font-weight: normal;
}
.col-4 p {
    font-size: 14px;
}
.rating .fa {
    color: #ff523b;
}

.col-4:hover {
    transform: translateY(-5px);
}

/*-----------offer-------------*/
.offer {
    background: radial-gradient(#fff,#ffd6d6);
    margin-top: 80px;
    padding: 30px 0;
}
.col-2 .offer-img {
    padding: 100px;
}
small {
    color: #555;
}

/*--------------------testimonial---------------*/

.testimonial {
    padding-top: 100px;
}

.testimonial .col-3 {
    text-align: center;
    padding: 40px 20px 40px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform .5s;
}
.testimonial .col-3 img {
    width: 50px;
    margin-top: 20px;
    border-radius: 50%;
}
.fa.fa-quote-left {
    font-size: 34px;
    color: #ff523b;
}
.col-3 p {
    font-size: 12px;
    margin: 12px 0px;
    color: #777;
}

.testimonial .col-3 h3 {
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.testimonial .col-3:hover {
    transform: translateY(-10px);
}

/*--------------- brands ------------*/

.brands {
    margin: 100px auto;
}
.col-5 {
    width: 160px;
}
.col-5 img {
    width: 100%;
    cursor: pointer;
    filter: grayscale(100%);
}
.col-5 img:hover {
    filter: grayscale(0);
}

.order-confirmation {
    font-size: 24px;
    color: green;
}

/*---------footer-------*/

.footer {
    background: #000;
    color: #8a8a8a;
    font-size: 14px;
    padding: 60px 0 20px;
}
.footer p {
    color: #8a8a8a;
}
.footer h3 {
    color: #fff;
    margin-bottom: 20px;
}
.footer-col1,.footer-col2,.footer-col3,.footer-col4 {
    min-width: 250px;
    margin-bottom: 20px;
}
.footer-col1 {
    flex-basis: 30%;
}
.footer-col2 {
    flex: 1;
    text-align: center;
}
.footer-col2 img {
    width: 180px;
    margin-bottom: 20px;
}
.footer-col3,.footer-col4 {
    flex-basis: 12%;
    text-align: center;
}

.app-logo {
    margin-top: 20px;
}

.app-logo img {
    width: 140px;
}

.footer li {
    display: block;
}
.footer hr {
    border: none;
    background: #b5b5b5;
    height: 1px;
    margin:  20px 0;
}
.copyright {
    text-align: center;
}

/*-------media-query-for-max-width-800---------*/

/*---------- 600 media query -------*/
@media only screen and (max-width: 800px) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 10px;
    }

    .logo img {
        width: 100px;
    }

    .search-form {
        flex-grow: 1;
        margin-left: 10px;
    }

    .search-form input[type="text"] {
        width: 80%;
        height: 30px;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        padding-right: 20px;
        background: url('path/to/menu-icon.png') no-repeat center;
        background-size: contain;
        width: 30px;
        height: 30px;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }

    .user-info span {
        margin-bottom: 5px;
    }
}

@media only screen and (max-width: 600px) {
    .row {
        text-align: center;
    }
    .col-1, .col-2, .col-3, .col-4 {
        flex-basis: 100%;
    }
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }
    .user-info span {
        margin-bottom: 5px;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 10px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        width: 80px;
    }

    nav {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
        background-color: #333;
        max-width: 100px;
        position: absolute;
        right: 10px;
        top: 60px;
        z-index: 999;
        transition: max-height 0.3s ease-out;
        max-height: 0px;
        overflow: hidden;
    }

    nav ul li {
        margin-right: 0;
        padding: 10px;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        padding-right: 10px;
        background: url('path/to/menu-icon.png') no-repeat center;
        background-size: contain;
        width: 30px;
        height: 30px;
    }

    .search-form {
        flex-direction: row;
        width: 90%;
        margin-left: auto;
        margin-top: 10px;
        margin-bottom: 0;
        align-items: center;
    }

    .search-form input[type="text"] {
        display: block;
        width: 80%;
        height: 30px;
        margin-top: 5px;
    }

    .search-form button {
        flex: 0 0 auto;
        width: 50px;
        border-radius: 10px;
        margin: 0;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: url('path/to/search-icon.png') no-repeat center;
        background-size: contain;
    }

    .search-results {
        margin-top: 20px;
    }

    .navbar .menu-icon.open + nav ul {
        right: 0;
    }

    .order-items-section .main-content table {
        width: 100%;
        border-collapse: collapse;
    }

    .main-content {
        padding: 20px;
        background-color: #fff;
    }

    .order-items-section {
        margin-top: 20px;
        padding: 10px;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
    }
}



/* Adjust the margin of the header content if necessary */
.header .navbar {
    margin-top: 0px;
}

/*---------------- cart page -----------*/

.cart-page {
    margin: 80px auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.cart-info {
    display: flex;
    flex-wrap: wrap;
}
th {
    text-align: left;
    padding: 5px;
    color: #fff;
    background: #ff523b;
    font-weight: normal;
}

td {
    padding: 10px 5px;
}
td input {
    width: 40px;
    height: 30px;
    padding: 5px;
}

td a {
    color: #ff523b;
    font-size: 12px;
}

td img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.total-price {
    display: flex;
    justify-content: flex-end;
}
.total-price table {
    border-top: 3px solid #ff523b;
    width: 100%;
    max-width: 350px;
}
td:last-child {
    text-align: right;
}
th:last-child {
    text-align: right;
}


/*-------account page--------*/

.accout-page {
    padding: 50px 0;
    background: radial-gradient(#fff,#ffd6d6);
}

.form-container {
    background: #fff;
    width: 300px;
    height: 400px;
    position: relative;
    text-align: center;
    padding: 20px 0;
    margin: auto;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-container span {
    font-weight: bold;
    padding: 0 10px;
    color: #555;
    cursor: pointer;
    width: 100px;
    display: inline-block;
}

.form-btn {
    display: inline-block;
}

#indicator {
    width: 100px;
    border: none;
    background: #ff523b;
    height: 3px;
    margin-top: 8px;
    transform: translateX(100px);
    transition: transform 1s;
}

.form-container form {
    max-width: 300px;
    padding: 0 20px;
    position: absolute;
    top: 130px;
    transition: transform 1s;
}

form input {
    width: 100%;
    height: 30px;
    margin: 10px 0;
    padding: 0 10px;
    border: 1px solid #ccc;
}
form input:focus {
    outline: none;
}
form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    margin: 10px 0;
}
form .btn:focus {
    outline: none;
}
form a {
    font-size: 12px;
}
#LoginForm {
    left: -300px;
}
#RegForm {
    left: 0;
}

.user-info span {
    font-size: 16px;
    color: #555;
}

.user-info img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
/* Add this CSS to your existing stylesheet */

/* Style for the user info section in the header */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    color: #555;
    white-space: nowrap;
}

.user-info span {
    font-size: 16px;
    color: #555;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
.logout-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #ff523b;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.logout-btn:hover {
    background-color: #563434;
}
.order-confirmation {
    text-align: center;
    margin-top: 50px;
    font-size: 24px;
    color: green;
}

/*-------------------Contact Page ------------------*/

.contact-page {
    padding: 80px 0;
    background: radial-gradient(#fff, #ffd6d6);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h1,
.contact-info h3 {
    color: #333;
}

.contact-info p {
    color: #555;
}

.contact-form {
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.contact-form form button {
    background: #ff523b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.contact-form form button:hover {
    background: #563434;
}

.cart-count {
    background-color: #ff523b;
    color: white;
    border-radius: 50%;
    padding: 0 5px;
    position: absolute;
    top: -10px;
    right: 50px;
    font-size: 12px;
}

@media only screen and (max-width: 800px) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 10px;
    }

    .logo img {
        width: 100px;
    }

    .search-form {
        flex-grow: 1;
        margin-left: 10px;
    }

    .search-form input[type="text"] {
        width: 150px;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        padding-right: 20px;
        background: url('path/to/menu-icon.png') no-repeat center;
        background-size: contain;
        width: 30px;
        height: 30px;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }

    .user-info span {
        margin-bottom: 5px;
    }
}

@media only screen and (max-width: 600px) {
    .row {
        text-align: center;
    }
    .col-1, .col-2, .col-3, .col-4 {
        flex-basis: 100%;
    }
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }
    .user-info span {
        margin-bottom: 5px;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 10px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        width: 80px;
    }

    nav {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
        background-color: #333;
        max-width: 100px;
        position: absolute;
        right: 10px;
        top: 60px;
        z-index: 999;
        transition: max-height 0.3s ease-out;
        max-height: 0px;
        overflow: hidden;
    }

    nav ul li {
        margin-right: 0;
        padding: 10px;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        padding-right: 10px;
        background: url('path/to/menu-icon.png') no-repeat center;
        background-size: contain;
        width: 30px;
        height: 30px;
    }

    .search-form {
        flex-grow: 1;
        margin-left: 10px;
    }

    .search-form input[type="text"] {
        display: none;
    }

    .search-form button {
        flex: 0 0 auto;
        width: 50px;
        border-radius: 10px;
        margin: 0;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: url('path/to/search-icon.png') no-repeat center;
        background-size: contain;
    }

    .search-results {
        margin-top: 20px;
    }

    .navbar .menu-icon.open + nav ul {
        right: 0;
    }

    .order-items-section .main-content table {
        width: 100%;
        border-collapse: collapse;
    }

    .main-content {
        padding: 20px;
        background-color: #fff;
    }

    .order-items-section {
        margin-top: 20px;
        padding: 10px;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
    }
}
