* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Rubik", sans-serif;
}

:root {
    --bg-color: #FEFAE8;
    --nav-header-color: #CCDSAE;
    --txt-color: #3B2F2F;
    --btn-color: #D4A373;
    --card-container-color: #E9EDC9;
    --accent-color: #FAEDCD;
    --olive: #CCD5AE;
    --sage: #E9EDC9;
    --cream: #FEFAE0;
    --beige: #FAEDCD;
    --brown: #D4A373;
}

body {
    min-height: 100vh;
    height: auto;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pexels-enginakyurt-2283599.jpg');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    filter: blur(8px);
    z-index: -1;
}

main {
    max-width: 1280px;
}

header {
    max-width: 100%;
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-evenly;
    border-bottom: solid 1px rgba(0, 0, 0, 0.2);
    background-color: rgb(255, 253, 242);
}

header nav, .logo {
    margin: 0 70px 0 70px;
}

.logo img {
    width: 150px;
    margin-right: auto;
}


header nav {
    margin-left: auto;
}

header nav ul {
    display: flex;
    padding: 10px;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 30px;
}

header nav ul li {
    padding: 10px;
    font-weight: 600;
}

header nav a {
    color: var(--txt-color);
    transition: all 0.3s ease;
}

header nav a:hover {
    color: var(--btn-color);
}

@media screen and (max-width: 1200px) {
    header {
        padding: 15px;
    }

    .logo img {
        width: 30%;
        min-width: 150px;
    }

    header nav {
        margin-left: 20px;
    }

    header nav ul {
        gap: 20px;
    }

    header nav ul li {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    header nav {
        margin: auto;
    }

    .logo {
        padding: 0 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo img {
        display: block;
        margin: 0 auto;
        width: 50%;
        min-width: 150px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    header nav ul li {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 10px;
        justify-content: center;
    }

    .logo img {
        display: block;
        margin: 0 auto;
        width: 60%;
        min-width: 150px;
    }

    header nav {
        margin: auto;
    }

    header nav ul li {
        font-size: 14px;
    }

    header nav ul {
        gap: 10px;
    }
}

#admin-button {
    position: fixed;
    top: 25%;
    font-size: 50px;
    color: #817e7e;
    margin-left: 10px;
    cursor: pointer;
}

#admin-close-btn {
    font-size: 20px;
    padding-bottom: 12px;
    cursor: pointer;
}

.admin-sidebar {
    display: none;
    position: fixed;
    width: 250px;
    background-color: #f0f0f0;
    padding: 20px;
    top: 0;
    left: 0;
    height: 50%;
    overflow-y: auto;
    border: 1px solid #ccc;
    top: 25%;
}

.admin-sidebar h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar ul li {
    margin-bottom: 10px;
}

.admin-sidebar ul li a {
    display: block;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.admin-sidebar ul li a:hover {
    background-color: #eee;
}

.about-us {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px 20p;
    text-align: center;
    border-radius: 8px;
    width: 1100px;
    margin: auto;;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.catalog {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    z-index: 2;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.catalog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.catalog-item {
    background-color: var(--beige);
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.catalog-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-details {
    padding: 1rem;
}

.item-title {
    font-size: 1.25rem;
    color: var(--brown);
    margin-bottom: 0.5rem;
}

.item-description {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.item-price {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.item-stock {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.in-stock {
    color: green;
}

.out-of-stock-label {
    color: crimson;
}

.item-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.item-quantity {
    width: 60px;
    padding: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.add-to-cart {
    padding: 0.4rem 0.75rem;
    background-color: var(--brown);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.add-to-cart:hover {
    background-color: #b06d42;
}

.add-to-cart.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.catalog-cart-button-wrapper {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.in-cart-message {
    font-size: 0.9rem;
    color: #4CAF50;
    margin-left: 5.5rem;
}

.go-to-cart {
    background-color: var(--brown);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 999;
}

.go-to-cart:hover {
    background-color: #B86B30;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 100;
}

#notification.show {
    opacity: 1;
}

footer {
    border-top: 1px solid #D4A373;
    background-color: rgb(255, 253, 242);
    color: #333;
    padding: 40px 20px;
    font-size: 14px;
    bottom: 0;
    align-items: center;
    justify-content: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
    border-bottom: 1px solid #D4A373;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--txt-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #D4A373;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons i {
    font-size: 24px;
    color: #333;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.social-icons i:hover {
    color: #D4A373;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.footer-section-legal {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-section-legal li a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.legal-links li a:hover {
    color: #D4A373;
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.8;
}