/* ===== Gorer Bazar - Customer Dashboard CSS ===== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.customar-dashboard-area {
  padding: 107px;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f0eb;
  color: #111;
}
img.custumer_account_login_logo {
  margin: auto;
}
/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  border-left: 4px solid #fa832e;
  box-shadow: 0 2px 8px rgba(192, 80, 0, 0.08);
}

.stat-card h4 {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: #c05000;
}

/* --- Dashboard Layout --- */
.customer-dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

/* --- Sidebar --- */
.sidebar {
  background: #fff;
  /* border-radius: 14px; */

  box-shadow: 0 2px 8px rgba(192, 80, 0, 0.07);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 17px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #444;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.sidebar button:hover {
  background: #fa832e;
  color: white;
}

.tab-btn.active {
  background: #fa832e;
  color: #fff;
  font-weight: 600;
}

/* --- Content Area --- */
.content {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(192, 80, 0, 0.07);
  min-height: 400px;
}

/* --- Order Cards --- */
.order-card {
  border: 1px solid #ffe0cc;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.15s;
}

.order-card:hover {
  box-shadow: 0 4px 16px rgba(250, 131, 46, 0.15);
}

.order-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #c05000;
  margin-bottom: 4px;
}

.order-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.order-card button {
  padding: 8px 18px;
  background: #c05000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.15s;
  white-space: nowrap;
}

.order-card button:hover {
  background: #fa832e;
}

/* --- Wishlist Table --- */
.wishlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.wishlist-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 2px solid #ffe0cc;
}

.wishlist-table td {
  padding: 12px;
  border-bottom: 1px solid #f5e8e0;
  color: #222;
  vertical-align: middle;
}

.wishlist-table tr:last-child td {
  border-bottom: none;
}

.wishlist-table img {
  border-radius: 8px;
  border: 1px solid #ffe0cc;
  object-fit: cover;
}

.wishlist-table button {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  margin-right: 6px;
  transition: opacity 0.15s;
}

.wishlist-table button:first-child {
  background: #fa832e;
  color: #fff;
}

.wishlist-table button:last-child {
  background: #fff0eb;
  color: #c05000;
  border: 1px solid #fa832e;
}

.wishlist-table button:hover {
  opacity: 0.85;
}

/* --- Profile Form --- */
#profileForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#profileForm input,
#profileForm textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0d0c8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

#profileForm input:focus,
#profileForm textarea:focus {
  border-color: #fa832e;
  box-shadow: 0 0 0 3px rgba(250, 131, 46, 0.12);
}

#profileForm textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 80px;
}

#profileForm button {
  grid-column: 1 / -1;
  padding: 11px;
  background: #c05000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

#profileForm button:hover {
  background: #fa832e;
}

/* --- Order Modal --- */
#orderModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

#orderModal[style*='block'] {
  display: flex !important;
}

#orderDetails {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(192, 80, 0, 0.18);
}

/* --- Status Badges --- */
.status-pending {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: #fff3e0;
  color: #e65100;
  font-size: 12px;
  font-weight: 600;
}

.status-completed {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 600;
}

/* ===== Gorer Bazar - Customer Dashboard popup CSS ===== */

.order-detail-wrap {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #111;
}

.order-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #ffe0cc;
}

.order-detail-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #c05000;
}

.order-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #fa832e;
  background: #fff0eb;
  color: #c05000;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.order-close-btn:hover {
  background: #fa832e;
  color: #fff;
}

.order-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.order-meta p {
  font-size: 13px;
  color: #555;
  background: #f9f2ee;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ffe0cc;
}

.order-meta p span {
  font-weight: 600;
  color: #c05000;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.order-items-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  background: #fff8f4;
  border-bottom: 2px solid #ffe0cc;
}

.order-items-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f5e8e0;
  color: #222;
  vertical-align: middle;
}

.order-items-table tr:last-child td {
  border-bottom: none;
}

.order-items-table tr:hover td {
  background: #fff8f4;
}

.order-items-table td:last-child {
  font-weight: 600;
  color: #c05000;
}

.order-items-table .product-img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ffe0cc;
  display: block;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-cell span {
  font-weight: 500;
  color: #222;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .customer-dashboard {
    grid-template-columns: 1fr;
  }

  #profileForm {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .customar-dashboard-area {
    padding: 31px 0;
  }
  .customer-dashboard {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    order: 2;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    border: 1px solid orange;
  }
  .sidebar button {
    padding: 16px 17px;
    text-align: center;
  }

  .content {
    order: 1;
    border-radius: 0;
  }
  .sidebar button:hover {
    border-radius: 0px;
  }
  .tab-btn.active {
    border-radius: 0px;
  }
}
