/* =========================
   GLOBAL RESET
========================= */

* {
  padding-top: 0;
  margin: 0;
  
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f5f5f5;
}

:root {

  /* BRAND COLORS */

  --magenta: #A10F4A;
  --gold: #C6A75E;
  --ivory: #F5EFE6;
  --rose: #D8A1A6;
  --brown: #352D27;

}


p{
  font-family:montserrat classic;
}
h1{
  font-family:"Grown";
} 
h2{
  font-family:montserrat classic;
  color: var(--magenta);
}
h3{
  font-family:montserrat classic;
}
/* =========================
   DASHBOARD WRAPPER
========================= */

.admin-wrapper {
  padding: 60px 40px;
}

.admin-header {
  text-align: center;
  margin-bottom: 40px;
}

.admin-header h1 {
  font-size: 45px;
  color: var(--magenta);
}

.admin-subtext {
  font-size: 30px;
  text-align: center;
  color: var(--brown);
  margin-bottom: 40px;
}

/* =========================
   DASHBOARD GRID
========================= */

.admin-grid {
  display: grid;
  gap: 50px;
  max-width: 900px;
  margin: auto;
}

.admin-card {
  height: 200px;
  background: var(--ivory);
  padding: 35px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  color: #3e2b2b;
  box-shadow: 0 10px 25px var(--gold);
  transition: 0.3s ease;
}

.admin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px var(--brown);
}

.admin-card h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.admin-card p {
  font-size: 25px;
  color: var(--brown);
}

.logout-card {
  background: var(--magenta);
} 

/* =========================
   ADMIN LAYOUT
========================= */

.admin-container {
  display: flex;
  min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  width: 300px;
  background: linear-gradient(180deg, var(--magenta), var(--brown));
  color: white;
  padding: 30px 20px;
}

.sidebar h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 15px;
}

.sidebar a {
  font-size: 25px;
  text-decoration: none;
  color: #e5e5e5;
  display: block;
  padding: 12px 15px;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.08);
  padding-left: 20px;
}

.sidebar a.active {
  
  font-weight: 600;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
  flex: 1;
  padding: 50px;
  background: #f8f6f2;
}

.main-content h1 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #3e2b2b;
}

/* =========================
   FORM STYLING
========================= */

form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--brown);
  max-width: 700px;
}

form h3 {
  margin: 25px 0 10px;
  color: var(--brown);
  font-size: 25px;
}

form label {
  display: block;
  margin: 10px 0 5px;
  font-size: 20px;
}

form input,
form select,
form textarea {
  font-size: 20px;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

form button {
  font-size: 20px;
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  background: var(--magenta);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

form button:hover {
  background: var(--brown);
}

/* =========================
   PRODUCT GRID
========================= */

#productList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 6px 18px var(--brown);
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h3 {
  margin: 10px 0 5px;
}

.product-card p {
  color: #8b5e3c;
  font-weight: 600;
}

/* =========================
   ACTION BUTTONS
========================= */

.action-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.action-buttons button {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.edit-btn {
  background: var(--rose);
  color: white;
}

.delete-btn {
  background: var(--magenta);
  color: white;
}

/* =========================
   ORDER TABLE
========================= */

.orders-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.orders-table th,
.orders-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.orders-table th {
  background: var(--brown);
  color: white;
}

/* =========================
   IMAGE PREVIEW
========================= */

.image-preview {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.image-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .admin-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .main-content {
    padding: 30px;
  }

}

.product-table {
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.product-table th,
.product-table td{
padding:10px;
width: 200px;
font-size: 25px;
border:1px solid #ddd;
text-align:center;
}

.product-table th{
background:#f4f4f4;
}

.product-table img{
width:200px;
border-radius:6px;
}

.product-table button{
padding:6px 10px;
margin:2px;
cursor:pointer;
}



/* =========================
   REVIEW TABLE
========================= */


/* =========================
   REVIEW GRID
========================= */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

/* =========================
   REVIEW CARD
========================= */
.review-card {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

/* =========================
   IMAGE SIZE CONTROL
========================= */
.review-card img {
  width: 100%;
  height: 150px;        /* 🔥 control height */
  object-fit: cover;    /* 🔥 prevents distortion */
  border-radius: 8px;
}

/* =========================
   DELETE BUTTON
========================= */
.delete-btn {
  margin-top: 8px;
  padding: 5px 10px;
  font-size: 12px;
  border: none;
  background: red;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}