html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url("../assets/logo.jpeg");

    background-repeat: repeat;
    background-size: auto, 130px;
    background-position: center, top left;
    background-position: 0 0, 45px 45px;
    background-blend-mode: multiply;
}

/* HEADER */
header {
    position: sticky;
    top: 0;

    height: 84px;
    background-color: black;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

#adminBtn {
    position: absolute;
    left: 20px;

    background-color: #e74c3c;
    color: white;

    border: none;
    padding: 10px 18px;
    border-radius: 12px;

    cursor: pointer;
    transition: 0.2s ease;
}

#adminBtn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

.headerLogo {
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
}

/* COMMON */
h1 {
    color: white;
    background-color: rgb(25, 25, 25);

    display: inline-block;

    padding: 12px 28px;
    margin: 20px auto;

    border-radius: 18px;

    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

#box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;
    padding: 15px;
}

/* CARDS */
.card {
    background-color: rgb(27, 27, 27);
    border-radius: 18px;

    padding: 10px;
    width: 180px;

    transition: transform 0.2s ease, background-color 0.2s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: scale(1.05);
    background-color: rgb(35, 35, 35);
}

.card img {
    width: 100%;
    border-radius: 14px;
}

.card p {
    color: white;
    font-weight: 700;
    text-align: center;

    margin-top: 8px;
    word-wrap: break-word;
}

/* ADMIN PAGE */
#adminContent {
    max-width: 900px;

    margin: 30px auto;
    padding: 25px;

    background-color: rgb(25, 25, 25);
    border-radius: 18px;

    color: white;
    box-sizing: border-box;
}

#adminContent div {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 22px 0;
}

#adminContent input {
    flex: 1;
}

#adminContent table {
    margin-bottom: 25px;
}

#adminContent hr {
    margin: 30px 0;
}

#adminContent table button {
    margin: 0;
}

/* ADD PRODUCT PAGE */
#productContent {
    max-width: 850px;

    margin: 30px auto;
    padding: 25px;

    background-color: rgb(25, 25, 25);
    border-radius: 18px;

    color: white;
    box-sizing: border-box;
}

#productContent * {
    box-sizing: border-box;
}

#addProductForm {
    width: 100%;
}

.productFormGrid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: start;
}

.formLeft,
.formRight {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formRight {
    align-items: center;
}

/* SINGLE PRODUCT PAGE */
#singleProductContent {
    max-width: 700px;

    margin: 30px auto;
    padding: 25px;

    background-color: rgb(25, 25, 25);
    border-radius: 18px;

    color: white;
    box-sizing: border-box;
}

#productPage {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 20px;
    text-align: center;
}

#singleProductContent #productImage {
    width: 320px;
    height: 320px;

    object-fit: cover;

    border-radius: 18px;
    border: 2px solid rgb(60, 60, 60);

    background-color: rgb(35, 35, 35);
}

#productDescription {
    width: 100%;

    background-color: rgb(35, 35, 35);
    border-radius: 15px;

    padding: 20px;

    color: white;
    font-size: 17px;
    line-height: 1.6;

    white-space: pre-wrap;
    box-sizing: border-box;
}

/* INPUTS */
input,
select,
textarea {
    width: 100%;

    padding: 12px 14px;

    background-color: rgb(35, 35, 35);
    color: white;

    border: 1px solid rgb(70, 70, 70);
    border-radius: 12px;

    outline: none;
    font-size: 15px;

    transition: 0.2s ease;
    box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
    color: rgb(160, 160, 160);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

input[type="file"] {
    padding: 10px;
}

/* IMAGE PREVIEW */
#imagePreview {
    width: 240px;
    height: 240px;

    object-fit: cover;

    border-radius: 18px;
    border: 2px solid rgb(60, 60, 60);

    background-color: rgb(35, 35, 35);
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;

    margin-top: 15px;

    background-color: rgb(35, 35, 35);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid rgb(55, 55, 55);
    text-align: left;
    color: white;
}

th {
    background-color: rgb(15, 15, 15);
    font-weight: 700;
}

tr:hover {
    background-color: rgb(50, 50, 50);
}

th:last-child,
td:last-child {
    text-align: center;
    width: 120px;
}

/* BUTTONS */
button {
    background-color: #e74c3c;
    color: white;

    border: none;
    padding: 10px 14px;
    border-radius: 12px;

    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

.submitBtn {
    display: block;

    min-width: 220px;
    margin: 30px auto 0 auto;

    padding: 12px 20px;

    font-weight: 700;
}

/* SEPARATOR */
hr {
    border: none;
    height: 1px;

    background-color: rgb(60, 60, 60);

    margin: 20px 0;
}
