/*
===============================================================
General Notes:
Some styles will need to be overwritten by using !important 
because of Bootstrap CSS styling - Nick S.
===============================================================
*/

/* Resets browser defaults settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Sets body styling */
body {
  font-family: "Times New Roman", Times, serif;
  background-color: #dcd5f2 !important;
  color: #000000;
  flex: 1;
}

.page_wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/*
===============================================================
Navbar and Banner Section
===============================================================
*/

/* Resizes the banner icon/img */
.store_icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

/* Vertical divider between icon and title */
.divider {
  width: 4px;
  height: 50px;
  background-color: #000000;
}

/* Store title text */
.store_title {
  font-size: 36px;
  font-weight: bold;
  color: #000000;
  font-style: italic;
  margin: 0;
}

/* navbar background gradient */
.nav-colors {
  background: linear-gradient(
    to right,
    #4c00a4 0%,
    #8300c4 25%,
    #4c00a4 50%,
    #8300c4 75%,
    #4c00a4 100%
  );
  border-bottom: 3px solid #000000;
  padding: 12px 14px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
===============================================================
Search Bar Section
===============================================================
*/

/* Search bar wrapper styles */
.search_bar {
  background-color: #000000;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 12px;
  height: 40px;
}

/* Search bar input styling */
.search_input {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  height: 100%;
}

/* Placeholder style inside input */
.search_input::placeholder {
  color: #ffffff;
  opacity: 0.6;
}

/* Removes default input outline */
.search_input:focus {
  outline: none;
  box-shadow: none;
}

/* Search power button style */
.power_btn {
  background-color: #000000;
  color: #ffffff;
  border: none;
  height: 100%;
  padding: 8px 16px;
  cursor: pointer;
}

/*
===============================================================
Icons and Buttons
===============================================================
*/

/* Profile icon image size */
.profile_icon {
  width: 50px;
}

/* Wrapper for shopping cart icon */
.shopping_cart_wrapper {
  width: 70px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

/* Cart icon sizing */
.shopping_cart_icon {
  width: 70%;
  height: auto;
  object-fit: contain;
}

/* Black pill style button */
.button {
  background-color: #000000;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 50px;
  display: inline-block;
  padding: 8px 16px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* Hover effect for .buttons */
.button:hover {
  background-color: #3b3b3b;
  color: #ffffff;
  text-decoration: none;
  border-color: #ffffff;
}

/*
===============================================================
Text Content Styles
===============================================================
*/

/* Small italic paragraph class */
.p2 {
  font-style: italic;
  font-size: 12px;
}

/* Vertical spacing for sections */
.content-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Main paragraph styling */
p {
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 22px;
  text-indent: 25px;
}

/* Bold heading */
h5 {
  font-weight: bold;
}

/*
===============================================================
Login Page – Error Styling
===============================================================
*/

/* Red border on error inputs */
.error_border {
  border: 2px solid red !important;
  outline: none;
}

/* Error message text style */
.error_message {
  color: red;
  font-size: 15px;
  margin-bottom: 2px;
}

/*
===============================================================
Login Page – Layout & Centering
===============================================================
*/

/* Centers login box vertically */
.login_center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 40px 0;
}

.account_center {
  padding-top: 30px;
}

/*
===============================================================
Login Page – Card & Form Styling
===============================================================
*/

/* White card container for login */
.login_card {
  background-color: #ffffff;
  padding: 24px 20px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

/* Flex column layout for form */
.login_card form {
  display: flex;
  flex-direction: column;
}

/* Label spacing and size */
.login_card label {
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 4px;
}

/*
===============================================================
Login Page – Input & Button Styles
===============================================================
*/

.login_card input[type="text"],
.login_card input[type="password"],
.login_card input[type="email"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-size: 16px;
  width: 100%;
}

.button_row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 5px;
}

.input_button {
  background-color: #000000;
  color: white !important;
  border: none;
  border-radius: 50px;
  padding: 10px;
  font-size: 17px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: background-color 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  margin: 0;
}

.input_space {
  margin-top: 5px;
}

.input_button:hover {
  background-color: #3b3b3b;
}

.input_divider {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 30px auto 25px auto;
  width: 90%;
  border-radius: 1px;
}

/*
===============================================================
Create Accounts Page – Styling
===============================================================
*/

.form_row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.form_field {
  flex: 1;
  min-width: 200px;
}

.full_width {
  flex: 1 1 100%;
}

.form_field label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.form_field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-size: 16px;
}

/*
===============================================================
Index Home Page - Card Categories
===============================================================
*/
.card_container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
  margin: 40px auto;
  max-width: 1200px;
}

.product_card {
  background-color: #ffffff;
  width: 180px;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 12px rgba(, 0, 0, 0.1);
  color: #000000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product_card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  color: #4c00a4;
  text-decoration: none;
}

.product_image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8300c4;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.product_image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product_label {
  padding: 12px 0;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 16px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.custom_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.team_table {
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  text-align: center;
}

.team_table td {
  padding: 20px 40px;
  text-align: center;
  vertical-align: middle;
  border: none;
}

/*
===============================================================
Footer
===============================================================
*/

.footer_bar {
  background: linear-gradient(
    to right,
    #4c00a4 0%,
    #8300c4 25%,
    #4c00a4 50%,
    #8300c4 75%,
    #4c00a4 100%
  );
  color: white;
  text-align: center;
  padding: 10px 8px;
  border-top: 2px solid #000000;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
}

.footer_bar h5 {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 4px 0;
}

.footer_bar p {
  font-size: 11px;
  margin: 2px 0;
}

/*
===============================================================
Account Management 
===============================================================
*/

.account_card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.accounts_page {
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.account_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.account_field {
  flex: 1 1 42%;
  min-width: 240px;
}

.full_width {
  flex: 1 1 100%;
}

.account_field label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.account_field input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/*
===============================================================
Product Management Page
===============================================================
*/

/* Product Management Main Container */
.product_main {
  padding: 40px 20px;
  max-width: 800px;
  margin: 40px auto;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Product Form Layout */
.product-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Form Field Block */
.product-form .form_field {
  flex: 1;
  min-width: 240px;
}

.product-form .form_field.full_width {
  flex: 1 1 100%;
}

/* Form Inputs and Text area */
.product-form input,
.product-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
  width: 100%;
}

.product-form textarea {
  height: 200px;
  padding: 16px 24px;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
  width: 100%;
  resize: vertical;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.category_select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
  width: 100%;
  background-color: #ffffff;
  color: #3b3b3b;
}

.download_button {
  margin-bottom: 20px;
}

.search_field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search_input_group {
  display: flex;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: 50px;
  overflow: hidden;
}

.search_input_group input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: none;
  border-radius: 0;
  outline: none;
  font-family: "Times New Roman", Times, serif;
}

.search_button {
  background-color: #ffffff;
  color: #000000;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#update_divider .input_divider {
  height: 2px;
  width: 700px;
  background-color: currentColor;
  border: none;
}

#update_product,
#delete_product,
#update_fields,
#delete_fields,
#update_divider,
#delete_divider,
#update_button_container {
  display: none;
}

/*
===============================================================
Products Page
===============================================================
*/

.productsPage {
  display: flex;
  align-items: flex-start;
}

.productsSidebarContainer {
  width: 220px;
  background: #fff;
  border: 1px solid #ccc;
  margin: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.productsSidebarHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  background: #f9f9f9;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.filterCloseBtn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.filterForm {
  padding: 12px;
}

.filterForm label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

.filterForm button {
  margin-top: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  background-color: #000000;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.filterForm button:hover {
  background-color: #3b3b3b;
}

.filterToggleBtn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 999px;
}

#searchInputTop {
  display: block;
  width: 90%;
  max-width: 800px;
  margin-top: 7px;
  height: 55px;
  padding: 20px 22px;
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 50px;
  background-color: #ffffff;
  color: #000000;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.productsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
}

.productCard {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.productCard:hover {
  transform: translateY(-5px);
}

.productCard img {
  width: 100%;
  height: auto;
}

.productName {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.productDesc {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.productCard .price {
  margin-top: 8px;
  font-weight: bold;
  color: #333;
}

#productDetailView {
  display: none;
  padding: 40px;
  width: 100%;
  box-sizing: border-box;
}

.productDetailContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
}

.productDetailImage img {
  max-width: 350px;
  width: 100%;
  border: none;
  border-radius: 16px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.productDetailInfo {
  max-width: 400px;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.productDetailInfo h2 {
  margin-top: 0;
}

.productDetailInfo p {
  margin: 10px 0;
  font-size: 15px;
  color: #333;
}

.productDetailInfo button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.productDetailInfo button:hover {
  background-color: #3b3b3b;
}

.hidden {
  display: none;
}

/*
===============================================================
Shopping Cart Page
===============================================================
*/

.message_box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  color: #000000;
}

.message_box h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}

.message_box p {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 12px;
}
