@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root {
   --green: #27ae60;
   --black: #333;
   --white: #fff;
   --bg-color: #eee;
   --box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
   --border: .1rem solid var(--black);
}

* {
   font-family: 'Poppins', sans-serif;
   margin: 0; padding: 0;
   box-sizing: border-box;
   outline: none; border: none;
   text-decoration: none;
   text-transform: capitalize;
}

html {
   font-size: 62.5%;
   overflow-x: hidden;
   scroll-behavior: smooth;
}

body {
   background: #d3d3d3;
}

/* BUTTON */
.btn {
   display: block;
   width: 100%;
   cursor: pointer;
   border-radius: .5rem;
   margin-top: 1rem;
   font-size: 1.6rem;
   padding: 1rem 2rem;
   background: var(--green);
   color: var(--white);
   text-align: center;
   transition: 0.3s ease-in-out;
}

.btn:hover {
   background: var(--black);
}

/* MESSAGE */
.message {
   display: block;
   background: var(--bg-color);
   padding: 1.5rem;
   font-size: 1.8rem;
   color: var(--black);
   margin-bottom: 2rem;
   text-align: center;
   border-radius: .5rem;
}

/* CONTAINER */
.container {
   max-width: 1200px;
   padding: 2rem;
   margin: auto;
}

/* FORM */
.admin-product-form-container {
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 100vh;
   padding: 2rem;
}

.admin-product-form-container form {
   width: 100%;
   max-width: 50rem;
   padding: 2rem;
   border-radius: .5rem;
   background: var(--white);
   box-shadow: var(--box-shadow);
}

.admin-product-form-container form h3 {
   text-transform: uppercase;
   color: var(--black);
   margin-bottom: 1.5rem;
   text-align: center;
   font-size: 2.2rem;
}

.admin-product-form-container form .box {
   width: 100%;
   border-radius: .5rem;
   padding: 1.2rem;
   font-size: 1.6rem;
   margin: 1rem 0;
   background: var(--white);
   text-transform: none;
   border: var(--border);
}

/* PRODUCT DISPLAY */
.product-display {
   margin: 2rem 0;
   overflow-x: auto;
}

.product-display .product-display-table {
   width: 100%;
   text-align: center;
   min-width: 600px;
}

.product-display .product-display-table thead {
   background: var(--bg-color);
}

.product-display .product-display-table th, 
.product-display .product-display-table td {
   padding: 1rem;
   font-size: 1.8rem;
   border-bottom: var(--border);
   white-space: nowrap;
}

.product-display .product-display-table .btn:first-child {
   margin-top: 0;
}

.product-display .product-display-table .btn:last-child {
   background: crimson;
}

.product-display .product-display-table .btn:last-child:hover {
   background: var(--black);
}

/* RESPONSIVENESS */
@media (max-width: 991px) {
   html {
      font-size: 58%;
   }
}

@media (max-width: 768px) {
   html {
      font-size: 55%;
   }

   .admin-product-form-container {
      padding: 2rem;
   }

   .product-display {
      overflow-x: auto;
   }

   .product-display .product-display-table {
      width: 100%;
   }
}

@media (max-width: 450px) {
   html {
      font-size: 50%;
   }

   .admin-product-form-container {
      padding: 1.5rem;
   }

   .admin-product-form-container form {
      padding: 1.5rem;
   }
}
