* {
    margin: 0;
    padding: 0;
}

.error {
    border: 2px solid #ff0000 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: #ff002f97;
    color: #000000;
    text-shadow: 0px 1px 1px #000000;
}

::-webkit-scrollbar {
    display: none;
}

/* General Styling */
body {
    font-family: "Athiti", serif;
    margin: 0;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 2px;
    left: 15px;
    width: 91.5%;
    z-index: 1;
    background: rgb(255, 255, 255);
    padding: 10px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 45px;
    overflow: hidden;
}

.items {
    width: 81.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.logo {
    width: 45px;
}

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Styling for Search Bar */
#searchBar {
    width: 300px;
    height: 25px;
    border: none;
    padding: 10px 40px 10px 15px;
    border-radius: 45px;
    background: #e8e8e8;
    box-shadow: 5px 5px 15px #c5c5c5, -5px -5px 15px #ffffff;
    font-size: 16px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Focus Effect */
#searchBar:focus {
    outline-color: #e8e8e8;
    background: #e8e8e8;
    box-shadow: inset 20px 20px 60px #c5c5c5,
        inset -20px -20px 60px #ffffff;
    transition: 0.3s;
}

/* Positioning the 'X' Button Inside Search Bar */
#clearSearch {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: red;
    font-size: 28px;
    cursor: pointer;
    display: none;
    /* Hidden by default */
}

#clearSearch:hover {
    text-shadow: 0px 0px 11px red;
}

/* Show 'X' Button When Typing */
#searchBar:not(:placeholder-shown)+#clearSearch {
    display: block;
}

/* Styling for Filters (Dropdowns) */
select {
    padding: 0.9rem;
    margin-left: 15px;
    border-radius: 12px;
    border: 2px solid #ccc;
    background: #e8e8e8;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    box-shadow: 20px 20px 60px #c5c5c5, -20px -20px 60px #ffffff;
    font-family: "Athiti", serif;
    font-weight: normal;
    letter-spacing: 1px;
}

/* When dropdown is focused */
select:focus {
    outline: none;
    box-shadow: inset 20px 20px 60px #c5c5c5,
        inset -20px -20px 60px #ffffff;
    transition: 0.3s;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Hover Effect: Change background color to grey instead of blue */
select:hover {
    background: #d9d9d9;
    border-color: #999;
}

/* Styling for Dropdown Options */
select option {
    padding: 10px;
    background: #ffffff;
    color: #333;
    font-size: 16px;
    border-radius: 5px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Change the color of the selected option */
select option:checked {
    background-color: rgb(82, 82, 82) !important;
    color: white;
}

/* Styling for Reset Button */
#resetFilters {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #ff6b6b;
    background: #ff6b6b;
    color: white;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    font-family: "Athiti", serif;
    font-weight: 300;
    letter-spacing: 1px;
    transition: background 0.3s ease-in-out;
}

#resetFilters:hover {
    background: #e63946;
    border-color: #e63946;
}

/* ==================================MAIN PAGE */
/* Product List Styling */
#productList {
    margin-top: 160px;
    padding: 20px;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    margin-top: 100px;
}

/* Individual Product Styling */
.product {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
    transition: transform 0.5s ease-in-out;
    max-width: 300px;
    visibility: visible;
}

.product:hover {
    transform: scale(1.02);
}

/* Styling for Product Names (Headings) */
.product h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 5px;
    font-family: "Bebas Neue", serif;
    font-weight: 100;
    font-style: normal;
    word-spacing: 2px;
    letter-spacing: 2px;
}

/* Styling for Product Images */
.product img {
    height: 300px;
    max-width: 300px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===============================BUTTONS */
.ap {
    width: 200px;
    font-size: 18px;
    display: inline-block;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #090909;
    padding: 0.7em 0.7em;
    cursor: pointer;
    border-radius: 0.5em;
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
    box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.ap:active {
    color: #666;
    box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.ap:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.ap:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #cd003e;
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.ap:hover {
    color: #ffffff;
    border: 1px solid #cd003e;
}

.ap:hover:before {
    top: -35%;
    background-color: #cd003e;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.ap:hover:after {
    top: -45%;
    background-color: #cd003e;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}


/* Styling for Product Descriptions */
.product-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Updated Modal Content Styling */
.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    position: relative;
    box-shadow: 0px 0px 12px #424242ab;
}

/* Updated Styling for Modal Images */
.modal img {
    width: 55%;
    border-radius: 10px;
    border: 3px solid #ccc;
}

/* Styling for Modal Price */
#modalDescription h2 {
    font-size: 40px;
    letter-spacing: 2px;
    font-weight: 500;
    color: #222;
    font-family: "Ubuntu", sans-serif;
    margin: 20px 0;
}

#modalDescription p {
    font-size: 18px;
}

/* Special Styling for Description in Modal */
#modalDescription p:nth-child(2) {
    font-size: 24px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* Styling for Close (X) Button */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgb(230, 0, 0);
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease-in-out;
}

.close:hover {
    background: red;
    text-shadow: 0px 0px 2px #fff;
}

/* =====================================FORM */

.form-con {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 95%;
    background: url(./product_images/BG3.png);
    background-size: cover;
    box-shadow: 0px 0px 23px #00000066;
    border-radius: 30px;
    padding: 30px;

}

.form-con h2 {
    font-size: 3em;
    margin: 10px;
    font-family: "Bebas Neue", serif;
    letter-spacing: 4px;
    word-spacing: 2px;
    font-weight: 400;
    background: linear-gradient(180deg, #000000 45%, #ff0051 30%);
    color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.pref input {
    color: red;
    font-weight: 900;
}

form input,
form textarea {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 550px;
    border: 2px solid #ffffff;
    outline: none;
    background: #dddcdced;
    padding: 15px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 50px;
    font-family: "Ubuntu", sans-serif;
    transition: 0.4s ease-in-out;
}

form input:hover {
    background: #fff;
    transform: scale(1.02);
    box-shadow: 0px 0px 7px #fb006034;

}

form textarea:hover {
    background: #fff;
    transform: scale(1.02);
    box-shadow: 0px 0px 7px #fb006034;
}


.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border: 2px dashed #ff0037b4;
    border-color: #ff0037b4;
    color: #464646;
    outline-color: #e8e8e8;
    background: #e8e8e8;
    box-shadow: inset 20px 20px 60px #c5c5c5,
        inset -20px -20px 60px #ffffff;
    transition: 0.3s;
    transform: scale(1.02);
    /* Optional: Adds a slight glow effect */
}

.sb {
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: center;
    left: 30%;
}

/* =====================================COPYRIGHT */

footer {
    margin-top:15vh;
    background-color: #000;
}

.foot {
    padding: 40px;
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.co {
    /* width: 25%; */
    padding: 20px;
    color: #fff;
    font-family: "Jost", serif;
}

.co h1 {
    font-weight: 400;
}

.foot-menu {
    margin: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

.flogo {
    width: 40px;
    opacity: 0.5;
}

.co p {
    color: #5b5b5b;
}

.co1 {
    width: 20vw;
}

.co1 a {
    font-size: 15px;
    color: #5b5b5b;
    text-decoration: none;
    transition: all 0.3s ease-in-out;

}

.co1 a:hover {
    color: #f2001888;
    text-decoration: underline;
    font-size: 16px;
}

.co2 {
    width: 20vw;
}

.co2 a i {
    color: #f2001888;
}

.ft {
    font-size: 49px;
    font-weight: 400;
}

.foot-logo {
    margin-bottom: 30px;
}

.foot-menu li a {
    color: #f2001888;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.co2 li a:hover {
    color: #fff;
    text-decoration: underline;
    font-size: 20px;
}

.co3 {
    width: 20vw;
}

.links {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}


.flinks {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    padding: 6px;
    border: 2px solid #f2001888;
    color: white;
    transition: 0.5s ease-in-out;
}

.flinks:hover {
    background-color: #ffffff;
    border: 2px solid #ff0059;
    box-shadow: 0px 0px 5px #ff002f;
}

.flinks a i {
    color: #535353;
    font-size: 40px;
    transition: 0.5s ease-in-out;
}

.flinks a i:hover {
    color: #ff0055b7;
    font-size: 40px;
    text-shadow: 0px 0px 4px #ff8b8b;
}

.co3 .locate {
    color: #f2001888;
    text-decoration: none;
    font-size: 20px;
    margin-left: 15px;
    transition: 0.3s ease-in-out;
    letter-spacing: 1px;
    word-spacing: 2px;
}

.co3 .locate:hover {
    text-decoration: underline;
    color: white;
    font-size: 22px;
}

.copyright {
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
}

.copyright a {
    font-size: large;
    padding-top: 12px;
    color: #ff0040;
}

.copyright span {
    font-weight: bold;
    font-family: "Rubik Scribble", serif;
    text-decoration: none;
}

/* ============================================================MEDIA Queries==================================== */

/* ===========================================================PHONE */
@media only screen and (max-width: 600px) {
    nav {
        align-items: center;
        padding: 10px;
        width: 90%;
        top: 2px;
        left: 3%;
        margin-right: 23px;
        border-radius: 20px;
    }


    .logo {
        width: 50px,
        margin-right: 20px;
    }

    nav .items {
        width: 90%;
        display: flex;
        flex-wrap: wrap;
        gap: 1px;
        justify-content: space-around;
    }

    .search-container {
        width: 100%;
        justify-content: center;
    }

    #searchBar {
        width: 97%;
        font-size: 14px;
        padding: 8px;
    }

    #resetFilters {
        width: 15%;
        text-align: center;
        line-height: 14px;
        height: 40px;
        margin: 5px 0;
        font-size: 7px;
        padding: 0 5px;

    }

    select {
        width: 39%;
        height: 40px;
        margin: 5px 0;
        font-size: 15px;
        padding: 0 5px;
        letter-spacing: 0px;
    }

    select option {
        font-size: 10px;
        padding: 8px;
    }

    #productList {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
        margin-top: 140px;
    }

    .product {
        min-width: auto;
        width: 90%;
        margin: 0 auto;
        padding: 10px;
    }

    .product img {
        max-width: 100%;
    }

    /* Modal Adjustments */

    .modal-content {
        top: 100px;
        width: 90%;
        padding: 15px;
    }

    #modalDescription h2 {
        font-size: 24px;
    }

    #modalDescription p:nth-child(2) {
        font-size: 16px;
    }

    .ap {
        font-size: small;
    }

    form input,
    form textarea {
        width: 80vw;
    }

    .foot {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .sb {
        left: 25%;
    }

    .foot h1 {
        margin-bottom: 10px;
    }

    .co {
        width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .co p {
        font-size: 25px;
    }

    .co a {
        font-size: 15px;
    }

    .copyright {
        font-size: 12px;
        padding: 15px 0;
    }

    .copyright a {
        font-size: 14px;
    }
}

/* ==========================================================iPAD MINI */

@media (min-width: 650px) and (max-width: 768px) {
    nav {
        align-items: center;
        padding: 10px;
        width: 94%;
        top: 5px;
        left: 2%;
        margin-right: 23px;
        border-radius: 50px;
    }


    .logo {
        width: 70px;
    }

    nav .items {
        width: 97%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .search-container {
        width: 250px;
        justify-content: center;
        margin-right: -20px;
    }

    #searchBar {
        width: 70%;
        font-size: 12px;
        padding: 8px;
        letter-spacing: 1px;
    }

    #clearSearch {
        right: 40px;
    }

    select {
        width: 140px;
        height: 50px;
        font-size: 15px;
        padding: 0 5px;
        letter-spacing: 0px;
    }

    select option {
        font-size: 8px;
        padding: 8px;
    }

    #resetFilters {
        width: 13%;
        text-align: center;
        line-height: 14px;
        height: 50px;
        margin: 5px 0;
        font-size: 17px;
        padding: 0 5px;
    }

    .product {
        min-width: auto;
        width: 310px;
        margin: 0 auto;
        padding: 10px;
    }

    .product img {
        max-width: 100%;
    }

    .modal-content {
        top: 150px;
        width: 90%;
        padding: 15px;
    }

    .foot {
        padding: 10px;
        display: flex;
        gap: 10px;
    }

    .foot h1 {
        margin-bottom: 40px;
    }

    .co {
        width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 5px;
        padding-top: 55px;
    }

    .co a {
        font-size: 13px;
    }
}


/* ==========================================================iPAD AIR */

@media (min-width: 769px) and (max-width: 820px) {
    nav {
        align-items: center;
        padding: 10px;
        width: 94%;
        top: 5px;
        left: 2%;
        margin-right: 23px;
        border-radius: 50px;
    }


    .logo {
        width: 70px;
    }

    nav .items {
        width: 97%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .search-container {
        width: 270px;
        justify-content: center;
        margin-right: -20px;
    }

    #searchBar {
        width: 70%;
        font-size: 12px;
        padding: 8px;
        letter-spacing: 1px;
    }

    #clearSearch {
        right: 40px;
    }

    select {
        width: 140px;
        height: 50px;
        font-size: 15px;
        padding: 0 5px;
        letter-spacing: 0px;
    }

    select option {
        font-size: 10px;
        padding: 8px;
    }

    #resetFilters {
        width: 13%;
        text-align: center;
        line-height: 14px;
        height: 50px;
        margin: 5px 0;
        font-size: 15px;
        padding: 0 5px;
    }

    .product {
        min-width: auto;
        width: 330px;
        margin: 0 auto;
        padding: 10px;
    }

    .product img {
        max-width: 100%;
    }

    .modal-content {
        top: 180px;
        width: 90%;
        padding: 15px;
    }

    .foot {
        padding: 10px;
        display: flex;
        gap: 10px;
    }

    .foot h1 {
        margin-bottom: 40px;
    }

    .co {
        width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 5px;
        padding-top: 55px;
    }

    .co a {
        font-size: 18px;
    }
}


/* ==========================================================iPAD PRO */

@media (min-width: 821px) and (max-width: 1024px) {
    nav {
        align-items: center;
        padding: 10px;
        width: 94%;
        top: 5px;
        left: 2%;
        margin-right: 23px;
        border-radius: 50px;
    }


    .logo {
        width: 80px;
    }

    nav .items {
        width: 97%;
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        justify-content: space-around;
    }

    .search-container {
        width: 350px;
        justify-content: center;
        margin-right: -50px;
    }

    #searchBar {
        width: 70%;
        font-size: 12px;
        padding: 8px;
        letter-spacing: 1px;
    }

    #clearSearch {
        right: 50px;
    }

    select {
        width: 160px;
        height: 50px;
        font-size: 15px;
        padding: 0 5px;
        letter-spacing: 0px;
    }

    select option {
        font-size: 10px;
        padding: 8px;
    }

    #resetFilters {
        width: 15%;
        text-align: center;
        line-height: 14px;
        height: 50px;
        margin: 5px 0;
        font-size: 17px;
        padding: 0 5px;
    }

    .modal-content {
        top: 150px;
        width: 90%;
        padding: 15px;
    }

    
    .foot {
        padding: 10px;
        display: flex;
        gap: 10px;
    }

    .foot h1 {
        margin-bottom: 40px;
    }

    .co {
        width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
        padding-top: 55px;
    }

    .co a {
        font-size: 15px;
    }

}
