/* #region Colors/BorderBox/Body/Fonts */
:root {
    --primary-color: #0a3782;
    --secondary-color: #ffffff;
    --hover-color: #23527c;
    --bg-color : #f7f8f9;
    --font-color-1 : #ffffff;
    --header-font : "SpaceGrotesk-Bold", "Segoe UI", sans-serif;
    --sub-header-font : "SpaceGrotesk-Regular", "Segoe UI", sans-serif;
    --text-font : "Lexend-Regular", "Open Sans", sans-serif;
    --border-radius: 0.5rem;
}
html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    margin: 0;
    background-color: var(--bg-color);
    font-family: var(--text-font);
}
@font-face {
    font-family: "Lexend-Regular";
    src: url("/fonts/Lexend-Regular.ttf");
}
@font-face {
    font-family: "SpaceGrotesk-Regular";
    src: url("/fonts/SpaceGrotesk-Regular.ttf");
}
@font-face {
    font-family: "SpaceGrotesk-Bold";
    src: url("/fonts/SpaceGrotesk-Bold.ttf");
}
/* #endregion Colors/BorderBox/Body/Fonts */

/* #region Header/Footer */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background-color: var(--primary-color);
}
header img {
    width: 4rem;
}
header ul {
    display: flex;
    gap: 1rem;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    border: none;
    background-color: transparent;
}
.hamburger div {
    height: 0.2rem;
    width: 2rem;
    background-color: var(--secondary-color);
}
footer {
    width: 100%;
    margin-top: auto;
    padding: 1rem 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}
.footer-content {
    display: flex;
    justify-content: center;
    column-gap: 10rem;
    margin: 0 auto;
    text-align: left;
    max-width: 1200px;
}
.footer-content div {
    width: 12rem;
    display: flex;
    flex-direction: column;
}
.footer-content h4 {
    margin-bottom: 0.3rem;
}
footer li {
    margin-left: 0.3rem;
}
header a, footer a {
    color: var(--font-color-1);
    text-decoration: none;
}
header a:hover, footer a:hover {
    color: var(--hover-color);
}
/* #endregion Header/Footer */

/* #region Global */
ul {
    list-style-type: none;
    padding-left: 0;
}
button {
    cursor: pointer;
}
input, select {
    border: 2px solid lightgray;
}
h1 {
    font-family: var(--header-font);
    font-size: 2rem;
}
h2, h3, h4, h5, h6 {
    font-family: var(--sub-header-font);
}
main {
    margin-bottom: 2rem;
}
.hover-effect {
    transition: 0.3s ease;
}
.hover-effect:hover {
    transform: translateY(-5px);
}
.centered-section {
    display: flex;
    max-width: 2000px;
    margin: 0 auto;
}
.hidden {
    display: none !important;
}
.main-btn {
    padding: 0.6rem 0 0.6rem;
    text-align: center;
    font-weight: bold;
    text-decoration: none !important;
    border: none;
    border-radius: var(--border-radius);
    transition: 0.25s ease;
    background-color: var(--primary-color);
    color: var(--font-color-1);
}
.main-btn:hover {
    background-color: var(--hover-color);
    letter-spacing: 1px;
    transform: translateY(-2px);
}
.main-btn:active {
    transform: translateY(0);
}
.margin-0 {
    margin: 0;
}
.shadow {
    box-shadow: 0px 0px 28px 0px rgba(0, 0, 0, 0.06);
    border: 1px solid #ddd;
}
.title {
    text-align: center;
}
.twoline {
  line-height: 1.5em;
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* #endregion Global */

/* #region HomePage */
.home-container {
    width: 80%;
    max-width: 1600px !important;
}
.img-container {
    max-width: 1600px !important;
    padding-top: 5rem;
}
.img-container h1 {
    font-size: 4rem;
}
.img-container div {
    margin: 10rem auto;
    display: flex;
    flex-direction: column;
}
.img-container img {
    margin-left: auto;
    width: 50%;
    height: 50%;
    object-fit: cover;
}
.img-container a, p {
    width: 75%;
    margin: 0 auto;
}
.underlined {
    border-bottom: 0.4rem solid #000000;
}
.home-title {
    font-size: 2rem;
    text-align: center;
    margin: 5rem 0 2rem;
}
/* Reviews */
.reviews-section {
    gap: 1.5rem;
}
.review-card .review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.review-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}
.stars {
    color: #ffd700;
    font-size: 1.2rem;
}
.review-card blockquote {
    margin: 0 0 1rem 0;
    font-style: italic;
    color: #555;
    line-height: 1.5;
}
.review-card p {
    color: #777;
    margin: 0;
}
/* About Us */
.about-section {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.about-left {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
} 
.about-left h3 {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
        
.about-left p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}
        
.about-right {
    display: grid;
    gap: 1.5rem;
}
        
.about-right > div {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
        
.about-right > div span {
    font-size: 2rem;
    flex-shrink: 0;
}
.about-right h4 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}    
.about-right p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
/* Partners Section */
.partners-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.partners-container img {
    flex: 1 1 120px;
    max-width: 300px;
    min-width: 150px;
    padding: 1rem;
    background-color: var(--secondary-color);
    height: 80px;
    object-fit: contain;
    border-radius: var(--border-radius);
}
.location-section {
    display: flex;
    padding: 2rem 5rem;
    justify-content: space-between;
    margin-bottom: 3rem;
    width: 60%;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}
.location-section span {
    font-size: 2rem;
}
.contact-info div {
    display: flex;
    flex-shrink: 0;
    flex-grow: 1;
}
.contact-info p {
    margin: 0;
}
/* #endregion Begin */

/* #region Products */
.prods {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}
.new-prods {
    width: 80%;
    gap: 0;
    padding: 0 3rem;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
}
.new-prods article {
    width: 25%;
    border: none;
    box-shadow: none;
}
.new-prods article:hover {
    box-shadow: 0px 0px 28px 0px rgba(0, 0, 0, 0.12) !important;
}
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    width: 20%;
    min-width: 0;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid #ddd;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
}

.product-card:hover {
    transform: translateY(-0.4rem);
    box-shadow: 0px 0px 28px 0px rgba(0, 0, 0, 0.12);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--font-color-1);
    transition: all 0.3s ease;
}
.product-card h3 {
    font-family: var(--sub-header-font);
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.product-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
.product-card a {
    text-decoration: none;
}
.product-card a:hover {
    text-decoration: underline;
}
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.3rem;
}
.contact-us {
    width: 75%;
}
.contact-us div {
    margin : 2rem 0 0 0;
    padding: 0 2rem;
}
.contact-us p {
    margin: 0 0 0 1rem;
}
.contact-form{
    display: grid;
    grid-gap: 1.25rem;
    width: 75%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
}
.contact-form-grid {
    display: grid;
    grid-auto-flow: column;
    grid-gap: 1.8rem;
}

.contact-form-grid div{
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.contact-form input, .contact-form textarea {
    border: 0.2rem solid #ccc;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}
input:focus, textarea:focus {
    border-color: var(--primary-color);
}
.contact-form textarea {
    min-height: 10rem;
    resize: vertical;
}
input, textarea {
    min-width: 0;
    outline: none;
    transition: 0.3s ease;
}
/* #endregion Products */

/* #region Product */
.price {
    font-weight: bold;
    text-align: left;
    font-size: larger;
}

.product {
    display: flex;
    width: 80%;
    margin: 0 auto;
    max-width: 1500px;
    text-align: left;
}
.product article {
    flex-grow: 1;
    margin: 0 2rem;
}
.product p {
    margin-left: 0.6rem;
}
.product img {
    width: 512px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    border-radius: var(--border-radius);
    object-fit: cover;
}
.category-main { 
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: auto 1fr;
}
.sort {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 300px;
    padding: 1.25rem;
    background-color: var(--secondary-color);
}
.mobile-buttons {
    background-color: var(--secondary-color);
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem;
    margin: 0 auto;
}
.price-inputs {
    display: flex;
    gap : 1rem;
}
.price-inputs input{
    flex-grow: 1;
    min-width: 0;
}
.brands {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}



.text-button {
    text-decoration: none;
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 0.6rem;
    font-size: 1rem;
}

.similar-products {
    justify-content: center;
    flex-wrap: wrap;
}

/* #endregion Product */

/* #region User */
.account {
    width: 80%;
    margin: 5rem auto;
    display: grid;
    grid-auto-flow: column;
}
.right_section > form, .right_section > div {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 75%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
}
.user img {
    width: 4rem;
    height: 4rem;
}
.login {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}
.login form {
    display: flex;
    flex-direction: column;
    gap : 0.6rem;
}
.login input {
    font-size: 1.25rem;
}
.user {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}
.user input {
    font-size: 1.25rem;
}
.user button {
    min-width: 200px;
}
.user-cart {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}
.cart button {
    min-width: 200px;
}
.cart h4 {
    margin : 0.3rem 0;
}
.cart-left {
    min-width: 500px;
}
.horizontal {
    max-width: 750px;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 0 3rem;
    background-color: var(--secondary-color);
}
.horizontal article {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: 100%;
}
.horizontal-title {
    flex: 1;
    flex-shrink: 1 !important;
}
.horizontal article > * {
    flex-shrink: 0;
}
.horizontal img {
    height: 50px;
    width: 50px;
}
.price-cart {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 3rem 5rem;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
}
.price-cart span {
    font-size: 2rem;
    font-weight: bold;
}
.price-cart button {
    font-size: 1.15rem;
    min-width: 150px;
}




.delete-btn {
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: var(--border-radius);
    background-color: #ff0000;
}
.user-section {
    width: 100%;
}

.user-section div {
    display: grid;
    justify-content: center;
}

/* #endregion User */

/* #region Chatbot */
.chat-btn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    padding: 0.6rem 1.2rem;
  }
.chat {
    position: fixed;
    bottom: 4rem;
    /*bottom: calc(60px + env(keyboard-inset-height));*/
    right: 1.25rem;
    z-index: 10;
    width: 80%;
    max-width: 500px;
    height: calc(100% - 300px);
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 15px;
    border: 2px solid #cccccc;
    display: flex;
    flex-direction: column;
}
.chat h3 {
    margin-right: auto;
    margin-bottom: 1.25rem;
}

.chat div div {
    padding: 0.6rem;
    border-radius: 0.3rem;
    margin-bottom: 0.6rem;
}

.message {
    display: flex;
    flex-direction: row;
    background-color: var(--secondary-color);
    align-items: center;
}
.ai {
    background-color: #f2f3f6;
}
.chat textarea {
    padding: 0.6rem;
    border: none;
    overflow-y: auto;
    resize: none;
    outline: none;
    width: 100%;
}
.chat button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 1.25rem;
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin-right: 1rem;
    padding: 0;
}
.chat button:hover {
    background-color: #ccc;
}
.chat svg {
    width: 18px;
    height: 18px;
}
.chat-container {
    overflow-y: auto;
}
.chat-container img {
    height: 16px;
    margin: 1rem;
}
.chat-input {
    display: flex;
    margin-top: auto;
    align-items: center;
    border-radius: 0.3rem;
    border: 2px solid #ccc;
    background-color: #ffffff;
    transition: 0.3s ease;
}
.chat-input:focus-within {
    transform: translateY(-2px);
    border: 2px solid var(--primary-color);
}
/* #endregion Chatbot */


/* #region Media Queries */
@media (max-width: 1300px) {
    header {
        display: block;
    }
    header div {
        display: flex; 
        justify-content: space-between;
    }
    header nav ul {
        flex-direction: column;
    }
    header nav {
        overflow: hidden;
    }
    .footer-content div {
        width: 80%;
    }
    footer h4 {
        text-align: center;;
    }
    .img-container {
        flex-direction: column-reverse;
    }
    .img-container img {
        width: 100%;
    }
    .img-container div {
        margin: 0 auto;
    }
    .img-container div h1 {
        font-size: 35px;
    }
    .about-section{
        grid-template-columns: none;
        grid-template-rows: 1fr auto;
    }
    .reviews-section{
        flex-direction: column;
    }
    .location-section {
        flex-direction: column-reverse;
        width: 90%;
        padding: 1rem 2rem;
    }
    .product-card {
        width: 45%;
    }
    .product-card h3 {
        font-size: 0.85rem;
    }
    .prods{
        gap: 1.25rem;
    }
    .sort {
        width: 100%;
    }
    .new-prods {
        width: 90%;
        padding: 0;
    }
    .new-prods article {
        width: 45%;
    }
    .contact-form input {
        font-size: 1rem;
        min-width: 0;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .category-main {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }
    .product img {
        height: 75%;
        width: 75%;
    }
    .product {
        flex-direction: column;
        align-items: center;
    }
    .product h1 {
        width: auto;
    }
    .product p {
        width: auto;
    }
    .price-cart {
        align-self: center;
    }
    .chat {
        right: auto;
        margin: auto 10vw auto 10vw;
        width: 80%;
    }
    .account {
        grid-auto-flow: row;
    }
    .user {
        margin: 0 auto;
    }
    .contact-info {
        margin: 0 auto;
    }
    .user-cart {
        display: flex;
        flex-direction: column;
    }
    .cart {
        margin: 0 auto;
    }
}
/* #endregion Media Queries */
