/*-- Reset & Base Styles --*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: rgb(31, 31, 31);
}

ul {
    list-style-type: none;
}

h1 {
    color: #1E1E1E;
}

h4 {
    color: #1e1e1ee4;
    font-weight: normal;
}

p {
    color: #555555;
}

small {
    color: #555555;
}


/*-- Layout & Grid System --*/
.container {
    max-width: 1300px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.small-container {
    max-width: 1080px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

.col-2 {
    flex-basis: 50%;
    min-width: 300px;
}

.col-3 {
    flex-basis: 30%;
    min-width: 250px;
    margin-bottom: 30px;
}

.col-4 {
    flex-basis: 25%;
    padding: 10px;
    min-width: 200px;
    margin-bottom: 50px;
    transition: transform 0.5s;
}

.col-5 {
    width: 160px;
}


/*-- Navbar/Header --*/
.navbar {
    display: flex;
    align-items: center;
    padding: 20px;
}

.main-logo {
    width: 125px;
}

.cart {
    width: 30px;
    height: 30px;
}

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 {
    width: 28px;
    margin-left: 20px;
    display: none;
}


/*-- Buttons & Utilities --*/
.btn {
    display: inline-block;
    background: #002147;
    color: #fff;
    padding: 8px 30px;
    margin: 30px 0;
    border-radius: 30px;
    transition: background 0.5s;
}

.btn:hover {
    background: #CB1818;
}

.btn2 {
    display: inline-block;
    background: #79ce5d;
    color: #fff;
    padding: 10px 40px;
    margin: 30px 0;
    border-radius: 30px;
    transition: background 0.5s;
}

.btn2:hover {
    background: #0a5211;
}


/*-- Sections / Components --*/

/*-- header --*/
.header {
    background: linear-gradient(#fff, #82a7db54);
}
.header .row {
    margin-top: 70px;
}

/*-- hero content --*/
.col-2 img {
    max-width: 100%;
    padding: 50px 0;
}
.col-2 h1 {
    font-size: 50px;
    line-height: 60px;
    margin: 20px 0;
}

/*-- categories --*/
.categories {
    margin: 70px 0;
}
.col-3 img {
    width: 100%;
}

/*-- products --*/
.col-4 img {
    width: 100%;
}
.col-4 p {
    font-size: 14px;
}
.col-4:hover {
    transform: translateY(-5px);
}
.title {
    text-align: center;
    margin: 0 auto 80px;
    position: relative;
    line-height: 60px;
    color: #1E1E1E;
}
.title::after {
    content: '';
    background: #0a2776ce;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.fa-solid {
    color: #f9ce60bf;
}

.fa-regular {
    color: #f9ce60bf;
}

/*-- offer --*/
.offer {
    background: radial-gradient(#fff, #82a7db54);
    margin-top: 80px;
    padding: 30px 0;
}


.col-2 .offer-img {
    padding: 50px;
}

/*-- review --*/
.review {
    padding-top: 100px;
}
.review .col-3 {
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.5s;
}
.review .col-3 img {
    width: 50px;
    margin-top: 20px;
    border-radius: 50%;
}
.review .col-3:hover {
    transform: translateY(-10px);
}
.col-3 p {
    font-size: 12px;
    margin: 12px 0;
    color: #777;
}
.testimonial .col-3 h3 {
    font-weight: 600;
    color: #555;
    font-size: 16px;
}
.fa-quote-left {
    font-size: 30px;
    color: #002147;
}

/*-- socials --*/
.socials {
    margin: 100px auto;
}
.col-5 img {
    width: 100%;
    cursor: pointer;
    filter: grayscale(100%);
}
.col-5:hover img {
    filter: grayscale(0%);
}

/*-- footer --*/
.footer {
    background: #1E1E1E;
    color: #ffffffce;
    font-size: 14px;
    padding: 60px 0 20px;
}
.footer p {
    color: #ffffffce;
}
.footer h3 {
    color: #fff;
    margin-bottom: 20px;
}
.footer-col-1, .footer-col-2, .footer-col-3, .footer-col-4 {
    min-width: 250px;
    margin-bottom: 20px;
}
.footer-col-1 {
    flex-basis: 30%;
}
.footer-col-2 {
    flex: 1;
    text-align: center;
}
.footer-col-2 img {
    width: 180px;
    margin-bottom: 20px;
}
.footer-col-3, .footer-col-4 {
    flex-basis: 12%;
    text-align: center;
}
.app-logo {
    margin-top: 20px;
}
.app-logo img {
    width: 140px;
}
.footer hr {
    border: none;
    background: #b5b5b5;
    height: 1px;
    margin: 20px 0;
}
.copyright {
    text-align: center;
}


/*-- Shop Page --*/
.row-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    padding: 0 40px;
}

select {
    border: 1px solid #002147;
    padding: 5px;
}

select:focus {
    outline: none;
}

.page-btn {
    margin: 0 auto 80px;
}

.page-btn span {
    display: inline-block;
    border: 1px solid #002147;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
}

.page-btn span:hover {
    background: #db260e;
    color: #fff;
}


/*-- Product Details Page --*/
.single-product {
    margin-top: 80px;
}

.single-product .col-2 {
    padding: 20px;
}

.single-product .col-2 img {
    padding: 0;
}

.single-product h4 {
    margin: 20px 0;
    font-size: 22px;
    font-weight: bold;
}

.single-product select {
    display: block;
    padding: 10px;
    margin-top: 20px;
}

.single-product input {
    width: 50px;
    height: 40px;
    padding-left: 10px;
    font-size: 20px;
    margin-right: 10px;
    border: 1px solid #002147;
}

.input:focus {
    outline: none;
}

.single-product .fa {
    color: #1f4700;
    margin-left: 10px;
}

.small-img {
    width: 100%;
}

.small-img-row {
    display: flex;
    justify-content: space-between;
}

.small-img-col {
    flex-basis: 24%;
    cursor: pointer;
}

.productimg {
    width: 100%;
}


/*-- 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: #002147;
    font-weight: normal;
}

td {
    padding: 10px 5px;
}

td input {
    width: 40px;
    height: 30px;
    padding: 5px;
}

td a {
    color: #002147;
    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 #002147;
    width: 100%;
    max-width: 400px;
}

td:last-child,
th:last-child {
    text-align: right;
}

/*--------- Contact Page ---------*/
body {
    background: #ffffff;
}

.section-contact {
    min-height: 90vh;
    padding-bottom: 150px;
    background-image: linear-gradient(175deg, #ffffff 47%, #e9e9e9 52%, #061a32 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-contact .container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .section-contact .container {
        padding-left: 128px;
        padding-right: 128px;
    }
}

.section-contact .container h1 {
    color: #002147;
    font-size: 36px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}

.section-contact .container p {
    color: #000000d7;
    font-size: 18px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
}

.section-contact .container form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    background-color: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.287);
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .section-contact .container form {
        grid-template-columns: repeat(2, 1fr);
    }
}

.section-contact .container form .form-group.full {
    grid-column: 1 / -1;
}

.section-contact .container form .form-group .form-element {
    appearance: none;
    outline: none;
    border: none;
    display: block;
    width: 100%;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #cbced182;
    transition: 0.4s;
}

.section-contact .container form .form-group textarea {
    resize: none;
    min-height: 100px;
}

.section-contact .container form .submit-group {
    grid-column: 1 / -1;
    text-align: right;
}

.section-contact .container form .submit-group input[type="submit"] {
    appearance: none;
    border: none;
    outline: none;
    background: none;
    padding: 12px 16px;
    background-color: #002147;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: 0.4s;
}

.section-contact .container form .submit-group input[type="submit"]:hover {
    background-color: #cb1818;
}

/* --------- 404 Page Not Found --------- */
.page-not-found {
    font-family: Arial, sans-serif;
    background-color: #D3D3D3;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.page-not-found .error-container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-not-found .error-container h1 {
    font-size: 5rem;
    color: #002147;
}

.page-not-found .error-container p {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.page-not-found .error-container a {
    text-decoration: none;
    background-color: #002147;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-not-found .error-container a:hover {
    background-color: #ff0000;
}


/*-- Media Queries --*/
@media only screen and (max-width: 800px) {
    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        background: #333;
        width: 100%;
        overflow: hidden;
        transition: max-height 0.5s;
    }

    nav ul li {
        display: block;
        margin-right: 50px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    nav ul li a {
        color: #fff;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
    }

    .row {
        text-align: center;
    }

    .col-2, .col-3, .col-4 {
        flex-basis: 100%;
    }

    .single-product .row {
        text-align: left;
    }
}