/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff8f0; 
  color: #333;
  line-height: 1.6;
}

/* Ad Banner */
.ad-banner {
  background: #c56127;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
}
.ad-banner a {
  color: #fffbe7;
  text-decoration: underline;
}

/* Main Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid #ddd;
  background: white;
}
.menu-left {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
.menu-left li a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease-in-out;
}
.menu-left li a:hover {
  color: #ff6f61;
}
.logo {
  font-size: 24px;
  font-family: serif;
  color: #333;
}

.menu-actions {
  display: flex;
  gap: 15px;
}

.menu-icon {
  font-size: 18px;
  color: #444;
  transition: color 0.2s ease;
  text-decoration: none;
}

.menu-icon:hover {
  color: #ff6f61;
}

/* Page Layout */
.page-container {
  display: flex;
  min-height: calc(100vh - 120px);
}

.sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid #e0e0e0;
  padding: 30px 20px;
  flex-shrink: 0;
}
.sidebar h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ff6f61;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff6f61;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar */
.categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories li {
  margin-bottom: 8px;
}

.categories li a {
  display: block;
  font-size: 14px;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: #444;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.categories li a:hover {
  background-color: #ff6f61;
  color: white;
  transform: translateX(5px);
}

/* Product Grid */
main {
  /* flex: 1; */
  padding: 20px 40px;
  background: #fff8f0;
}
/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Always 4 columns */
  gap: 20px;
  padding: 0 60px 0 0; 
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out;
  width: 100%; /* full grid cell width */
}

.product-card:hover {
  transform: scale(1.03);
}

.img-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 400px; 
  background-color: #f8f8f8; /* Light bg for loading */
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* aspect ratio  */
  object-position: center; 
  display: block;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.brand {
  font-size: 12px;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
}
.name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price {
  font-size: 14px;
  margin: 0;
  color: #ff6f61;
  font-weight: bold;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* Sidebar Login Panel */
.sidebar-login {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  padding: 30px;
}

.sidebar-login.active {
  right: 0;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.sidebar-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

/* Form */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section.hidden {
  display: none;
}

.form-section label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.form-section input {
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.form-section input:focus {
  border-color: #ff6f61;
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

.sidebar-btn {
  background: linear-gradient(135deg, #ff6f61, #f25548);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
}

.sidebar-btn:hover {
  background: linear-gradient(135deg, #f25548, #d94a3f);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
}

.sidebar-btn:active {
  transform: translateY(0);
}

.toggle-text {
  font-size: 13px;
  color: #666;
  text-align: center;
}

.toggle-text span {
  color: #ff6f61;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.toggle-text span:hover {
  color: #f25548;
}

/* chat css */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff6f61;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 16px;
  z-index: 9999;
  text-decoration: none;
}
.chat-toggle:hover {
  background: #ff6f61;
}

.chat-container {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 300px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #007bff;
  color: white;
  padding: 8px 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-box {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  max-height: 250px;
}

#chat-form {
  display: flex;
  border-top: 1px solid #ddd;
}

#message-input {
  flex: 1;
  border: none;
  padding: 8px;
  outline: none;
}

#chat-form button {
  background: #ff6f61;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
}
.chat-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, sans-serif;
  z-index: 1000;
}

.chat-header {
  background: #ff6f61;
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f9f9f9;
}

.chat-footer {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
}

.chat-footer input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.chat-footer button {
  margin-left: 8px;
  background: #ff6f61;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.chat-footer button:hover {
  background: #ff6f61;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.message {
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
}

.message.user {
  background: #ff6f61;
  color: white;
  align-self: flex-end;
}

.message.admin {
  background: #e5e5e5;
  align-self: flex-start;
}


    /* calendar css */
    .calendar-content {
      flex: 1;
      padding: 40px;
      background: #fff8f0;
    }

    .calendar-content h3 {
      font-size: 28px;
      font-weight: 700;
      color: #ff6f61;
      margin-bottom: 30px;
      text-transform: uppercase;
      letter-spacing: 1px;
      border-bottom: 3px solid #ff6f61;
      padding-bottom: 10px;
    }

    .calendar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: white;
      padding: 20px 30px;
      border-radius: 10px;
      margin-bottom: 20px;
      box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
    }

    .calendar-nav {
      display: flex;
      gap: 15px;
      align-items: center;
    }

    .nav-btn {
      background: #ff6f61;
      color: white;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
    }

    .nav-btn:hover {
      background: #f25548;
      transform: scale(1.1);
    }

    .current-month {
      font-size: 24px;
      font-weight: 600;
      color: #333;
      min-width: 200px;
      text-align: center;
    }

    .add-event-btn {
      background: linear-gradient(135deg, #ff6f61, #f25548);
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .add-event-btn:hover {
      background: linear-gradient(135deg, #f25548, #d94a3f);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
    }

    .calendar-container {
      background: white;
      border-radius: 10px;
      padding: 30px;
      box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 10px;
    }

    .calendar-day-header {
      text-align: center;
      font-weight: 600;
      color: #666;
      padding: 15px 5px;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 2px solid #f0f0f0;
    }

    .calendar-day {
      min-height: 120px;
      border: 2px solid #f0f0f0;
      border-radius: 8px;
      padding: 10px;
      background: #fafafa;
      transition: all 0.3s;
      cursor: pointer;
      position: relative;
    }

    .calendar-day:hover {
      border-color: #ff6f61;
      background: white;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .calendar-day.empty {
      background: transparent;
      border: none;
      cursor: default;
    }

    .calendar-day.empty:hover {
      transform: none;
      box-shadow: none;
    }

    .calendar-day.today {
      background: #fff8f0;
      border-color: #ff6f61;
      box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
    }

    .day-number {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-bottom: 8px;
    }

    .calendar-day.today .day-number {
      color: #ff6f61;
    }

    .event-item {
      background: #ff6f61;
      color: white;
      padding: 5px 8px;
      border-radius: 5px;
      font-size: 11px;
      margin-bottom: 5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .event-item:hover {
      background: #f25548;
      transform: scale(1.02);
    }

    .event-item.product {
      background: #3498db;
    }

    .event-item.discount {
      background: #e74c3c;
    }

    .event-item.announcement {
      background: #ff6f61;
    }

    .event-item.other {
      background: #95a5a6;
    }

    .event-count {
      font-size: 10px;
      color: #999;
      margin-top: 5px;
      text-align: center;
    }

    /* Modal Styles */
    .calendar-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      overflow-y: auto;
      padding: 20px;
    }

    .calendar-modal.active {
      display: flex;
    }

    .calendar-modal-content {
      background: white;
      padding: 30px;
      border-radius: 12px;
      max-width: 600px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      position: relative;
    }

    .calendar-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
      padding-bottom: 15px;
      border-bottom: 2px solid #f0f0f0;
    }

    .calendar-modal-header h2 {
      font-size: 24px;
      font-weight: 700;
      color: #333;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin: 0;
    }

    .close-modal {
      background: none;
      border: none;
      font-size: 32px;
      color: #888;
      cursor: pointer;
      padding: 0;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .close-modal:hover {
      background: #f0f0f0;
      color: #333;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: #444;
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 14px;
      font-family: 'Poppins', sans-serif;
      transition: border-color 0.3s;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: #ff6f61;
      box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 100px;
    }

    .form-group select {
      cursor: pointer;
    }

    .submit-event-btn {
      background: linear-gradient(135deg, #ff6f61, #f25548);
      color: white;
      padding: 15px 30px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .submit-event-btn:hover {
      background: linear-gradient(135deg, #f25548, #d94a3f);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
    }

    .day-modal-content {
      max-width: 700px;
    }

    .day-events-list {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .day-event-item {
      background: white;
      border-left: 5px solid #ff6f61;
      padding: 15px 20px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: all 0.3s;
    }

    .day-event-item:hover {
      transform: translateX(5px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .day-event-item.product {
      border-left-color: #3498db;
    }

    .day-event-item.discount {
      border-left-color: #e74c3c;
    }

    .day-event-item.announcement {
      border-left-color: #ff6f61;
    }

    .day-event-item.other {
      border-left-color: #95a5a6;
    }

    .day-event-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .day-event-title {
      font-size: 16px;
      font-weight: 600;
      color: #333;
    }

    .day-event-type {
      font-size: 11px;
      padding: 3px 10px;
      border-radius: 12px;
      background: #f0f0f0;
      color: #666;
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    .day-event-desc {
      color: #666;
      font-size: 13px;
      line-height: 1.5;
    }

    .no-events {
      text-align: center;
      padding: 40px 20px;
      color: #999;
      font-size: 15px;
    }

    .event-detail-modal-content {
      max-width: 800px;
    }

    .event-detail-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .event-type-badge {
      display: inline-block;
      padding: 6px 15px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: white;
    }

    .event-type-badge.product {
      background: #3498db;
    }

    .event-type-badge.discount {
      background: #e74c3c;
    }

    .event-type-badge.announcement {
      background: #ff6f61;
    }

    .event-type-badge.other {
      background: #95a5a6;
    }

    .event-detail-actions {
      display: flex;
      gap: 10px;
    }

    .edit-event-btn,
    .delete-event-btn {
      padding: 8px 15px;
      border: none;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s;
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: 0.5px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .edit-event-btn {
      background: #3498db;
      color: white;
    }

    .edit-event-btn:hover {
      background: #2980b9;
    }

    .delete-event-btn {
      background: #e74c3c;
      color: white;
    }

    .delete-event-btn:hover {
      background: #c0392b;
    }

    .event-detail-title {
      font-size: 28px;
      font-weight: 700;
      color: #333;
      margin-bottom: 15px;
      line-height: 1.3;
    }

    .event-detail-date {
      font-size: 15px;
      color: #666;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .event-detail-date i {
      color: #ff6f61;
    }

    .event-detail-description {
      font-size: 15px;
      color: #555;
      line-height: 1.8;
      padding: 20px;
      background: #f8f8f8;
      border-radius: 8px;
      border-left: 4px solid #ff6f61;
    } /* calendar end */

    /* reviews start */
    .reviews-content {
      flex: 1;
      padding: 40px;
      background: #fff8f0;
    }

    .reviews-content h3 {
      font-size: 28px;
      font-weight: 700;
      color: #ff6f61;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 1px;
      border-bottom: 3px solid #ff6f61;
      padding-bottom: 10px;
    }

    .write-review-btn {
      background: linear-gradient(135deg, #ff6f61, #f25548);
      color: white;
      padding: 12px 25px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
      margin-bottom: 30px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .write-review-btn:hover {
      background: linear-gradient(135deg, #f25548, #d94a3f);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
    }

    /* Review Form Modal */
    .review-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }

    .review-modal.active {
      display: flex;
    }

    .review-modal-content {
      background: white;
      padding: 40px;
      border-radius: 12px;
      max-width: 600px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .review-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
      padding-bottom: 15px;
      border-bottom: 2px solid #f0f0f0;
    }

    .review-modal-header h2 {
      font-size: 24px;
      font-weight: 700;
      color: #333;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin: 0;
    }

    .close-modal {
      background: none;
      border: none;
      font-size: 28px;
      color: #888;
      cursor: pointer;
      padding: 5px;
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .close-modal:hover {
      background: #f0f0f0;
      color: #333;
    }

    .star-rating {
      display: flex;
      gap: 5px;
      font-size: 32px;
      margin-bottom: 20px;
      cursor: pointer;
    }

    .star-rating i {
      color: #ddd;
      transition: color 0.2s;
    }

    .star-rating i.active {
      color: #ffc107;
    }

    .star-rating i:hover,
    .star-rating i:hover ~ i {
      color: #ffc107;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: #444;
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 14px;
      font-family: 'Poppins', sans-serif;
      transition: border-color 0.3s;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: #ff6f61;
      box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 120px;
    }

    .submit-review-btn {
      background: linear-gradient(135deg, #ff6f61, #f25548);
      color: white;
      padding: 15px 30px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
      width: 100%;
    }

    .submit-review-btn:hover {
      background: linear-gradient(135deg, #f25548, #d94a3f);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
    }

    /* Reviews Display */
    .reviews-list {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .review-card {
      background: white;
      padding: 25px;
      border-radius: 10px;
      box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.2s;
    }

    .review-card:hover {
      transform: translateY(-2px);
      box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    }

    .review-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 15px;
    }

    .review-user-info {
      flex: 1;
    }

    .review-username {
      font-weight: 600;
      color: #333;
      font-size: 16px;
      margin-bottom: 5px;
    }

    .review-date {
      color: #999;
      font-size: 13px;
    }

    .review-stars {
      color: #ffc107;
      font-size: 18px;
    }

    .review-actions {
      display: flex;
      gap: 10px;
    }

    .edit-btn, .delete-btn {
      padding: 6px 12px;
      border: none;
      border-radius: 5px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s;
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    .edit-btn {
      background: #3498db;
      color: white;
    }

    .edit-btn:hover {
      background: #2980b9;
    }

    .delete-btn {
      background: #e74c3c;
      color: white;
    }

    .delete-btn:hover {
      background: #c0392b;
    }

    .review-title {
      font-size: 20px;
      font-weight: 600;
      color: #333;
      margin-bottom: 10px;
    }

    .review-text {
      color: #666;
      line-height: 1.6;
      font-size: 14px;
    }

    .no-reviews {
      text-align: center;
      padding: 60px 40px;
      color: #999;
      font-size: 16px;
      background: white;
      border-radius: 10px;
    }

    .no-reviews i {
      font-size: 48px;
      margin-bottom: 15px;
      color: #ddd;
    }

    .product-reviews-section {
      margin-top: 60px;
      padding-top: 40px;
      border-top: 2px solid #e0e0e0;
    } /* reviews end */

/* Floating Message Button */
.message-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #333;
  color: white;
  border: none;
  font-size: 20px;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 998;
}
.message-btn:hover {
  background: #ff6f61;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
  }
  
  .main-header {
    padding: 15px 20px;
  }
  
  main {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    padding: 0 20px 0 0;
  }
}

@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on mobile */
    padding: 0;
  }
  .img-container {
    height: 180px; /* Slightly smaller on mobile */
  }
  
  .main-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .menu-left {
    gap: 15px;
  }
  
  .sidebar-login {
    width: 90%;
    right: -90%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr; /* Single column for very small screens */
  }
  .img-container {
    height: 220px; /* Larger on single column layout */
  }
  
  .main-header {
    padding: 10px;
  }
  
  .menu-left {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .menu-left li a {
    font-size: 12px;
  }
  
  .logo {
    font-size: 18px;
    text-align: center;
  }
  
  .sidebar-login {
    width: 95%;
    right: -95%;
  }

}