/* ===============================
   TAB VISIBILITY CONTROL
================================ */

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ===============================
   PROFILE PAGE – LIGHT THEME
================================ */

.profile-page {
  padding: 36px 0;
  background: #faf7f2;
}

/* Layout */
.profile-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

/* ===============================
   PROFILE TABS
================================ */

.profile-tabs {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #eee;
}

.tab-btn {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  border: 1px solid #eee;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  background: #fff5e8;
  border-color: #f0c28a;
}

.tab-btn.active {
  background: #ffecd2;
  color: #c96b00;
  border-color: #f0b35c;
  font-weight: 500;
}

.logout-btn {
  margin-top: auto;
  background: #fff;
  color: #b00000;
  border: 1px solid #ffd6d6;
}

.logout-btn:hover {
  background: #fff0f0;
}

/* ===============================
   PROFILE CONTENT
================================ */

.profile-content {
  background: transparent;
}

/* Card */
.profile-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  border: 1px solid #eee;
}

.profile-title {
  font-size: 22px;
  margin-bottom: 22px;
  color: #333;
  font-weight: 600;
}

/* ===============================
   FORM DESIGN
================================ */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.profile-field label {
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
  color: #666;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.profile-field input:focus,
.profile-field textarea:focus {
  outline: none;
  border-color: #f0b35c;
}

.profile-field textarea {
  resize: none;
  height: 90px;
}

/* ===============================
   SAVE BUTTON
================================ */

.profile-save-btn {
  margin-top: 24px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #ffb347, #ff9800);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.25);
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {
  .profile-wrapper {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-radius: 14px;
    padding: 10px;
  }

  .tab-btn {
    white-space: nowrap;
    font-size: 14px;
    padding: 12px 14px;
  }

  .profile-card {
    padding: 22px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   CART PAGE – LIGHT THEME
================================ */

.cart-page {
  padding: 36px 0;
  background: #faf7f2;
}

/* Layout */
.cart-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

/* ===============================
   CART ITEMS
================================ */

.cart-items {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  border: 1px solid #eee;
}

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

/* Item Card */
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-img img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #eee;
}

/* Info */
.cart-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #333;
}

.cart-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.cart-price {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.cart-price span {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

/* Actions */
.cart-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.qty-box {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.qty-box button {
  width: 32px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.qty-box input {
  width: 36px;
  text-align: center;
  border: none;
  font-size: 14px;
}

.remove-btn {
  background: transparent;
  border: none;
  color: #c00000;
  font-size: 14px;
  cursor: pointer;
}

/* ===============================
   CART SUMMARY
================================ */

.cart-summary {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid #eee;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.summary-row.total {
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
}

.checkout-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(135deg, #ffb347, #ff9800);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  cursor: pointer;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {
  .cart-wrapper {
    grid-template-columns: 1fr;
  }

  .cart-items {
    padding: 22px;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
  }

  .cart-summary {
    position: static;
  }
}

/* ===============================
   WISHLIST PAGE – LIGHT THEME
================================ */

.wishlist-page {
  padding: 36px 0;
  background: #faf7f2;
}

.wishlist-wrapper {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  border: 1px solid #eee;
}

/* Title */
.wishlist-title {
  font-size: 22px;
  margin-bottom: 22px;
  color: #333;
  font-weight: 600;
}

/* Grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */
.wishlist-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease;
}

.wishlist-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

/* Image */
.wishlist-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

/* Info */
.wishlist-info {
  padding: 16px;
}

.wishlist-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: #333;
}

.wishlist-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.wishlist-price {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.wishlist-price span {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

/* Actions */
.wishlist-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.move-cart-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #ffb347, #ff9800);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

.remove-wishlist-btn {
  flex: 1;
  padding: 12px;
  background: #fff;
  color: #c00000;
  border: 1px solid #ffd6d6;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

.remove-wishlist-btn:hover {
  background: #fff0f0;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 992px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .wishlist-wrapper {
    padding: 22px;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
  }

  .wishlist-img img {
    height: 200px;
  }

  .wishlist-actions {
    flex-direction: column;
  }
}

/* ===============================
   ORDERS PAGE – LIGHT THEME
================================ */

.orders-page {
  padding: 36px 0;
  background: #faf7f2;
}

.orders-wrapper {
  max-width: 900px;
  margin: auto;
}

/* Title */
.orders-title {
  font-size: 22px;
  margin-bottom: 22px;
  color: #333;
  font-weight: 600;
}

/* Order Card */
.order-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #eee;
  padding: 22px;
  margin-bottom: 20px;
}

/* Header */
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.order-head p {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

/* Status */
.order-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.order-status.delivered {
  background: #e9f7ef;
  color: #1e7e34;
}

.order-status.processing {
  background: #fff4e5;
  color: #c96b00;
}

.order-status.cancelled {
  background: #fdecea;
  color: #b00000;
}

/* Product Row */
.order-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.order-item img {
  width: 70px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.order-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: #333;
}

.order-info p {
  font-size: 13px;
  color: #777;
}

.order-price {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* Footer */
.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.order-footer span {
  font-size: 15px;
  font-weight: 600;
}

.view-order-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #ffb347, #ff9800);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 576px) {
  .order-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .order-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }

  .order-price {
    grid-column: 2;
    margin-top: 6px;
  }

  .order-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .view-order-btn {
    width: 100%;
  }
}

/* ===============================
   CHECKOUT PAGE BASE
================================ */

.checkout-page {
  padding: 40px 0;
  background: #faf7f2; /* Soft cream page background */
}

.checkout-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

/* ===============================
   CARD DESIGN (LIGHT & PREMIUM)
================================ */

.checkout-card,
.summary-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Section titles */
.checkout-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 18px;
}

/* ===============================
   FORM LAYOUT
================================ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

/* Inputs */
.form-group input,
.form-group textarea {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  padding: 11px 12px;
  font-size: 14px;
  transition: all 0.25s ease;
}

/* Focus state */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff8a00;
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.12);
  outline: none;
}

.form-group textarea {
  resize: none;
  height: 90px;
}

/* ===============================
   PAYMENT METHOD
================================ */

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payment-option {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: border 0.3s ease, background 0.3s ease;
}

/* Hover & active */
.payment-option:hover {
  border-color: #ffb25a;
  background: #fff8f0;
}

.payment-option input {
  accent-color: #ff8a00;
}

/* ===============================
   ORDER SUMMARY (RIGHT SIDE)
================================ */

.checkout-summary {
  position: sticky;
  top: 90px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.summary-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.summary-item p {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.summary-item span {
  font-size: 12px;
  color: #777;
}

/* Price rows */
.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 14px;
  color: #555;
}

/* Total row */
.summary-line.total {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  border-top: 1px dashed #ddd;
  padding-top: 14px;
}

/* ===============================
   PLACE ORDER BUTTON
================================ */

.place-order-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff8a00, #ffb25a);
  color: #ffffff;
  padding: 15px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  margin-top: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover interaction */
.place-order-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 138, 0, 0.25);
}

/* Trust text */
.secure-text {
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
  color: #888;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */

@media (max-width: 768px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-page {
    padding: 24px 0;
  }
}

/* ==============================
   AUTH PAGE BASE
================================ */
.auth-page {
  min-height: 100vh;
  background: #fff7ec; /* soft cream */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Container */
.auth-container {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* ==============================
   LEFT BRAND PANEL
================================ */
.auth-brand {
  background: linear-gradient(135deg, #ffedd5, #fff);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand img {
  width: 140px;
  margin-bottom: 20px;
}

.auth-brand h2 {
  font-size: 28px;
  color: #c2410c; /* orange */
  margin-bottom: 10px;
}

.auth-brand p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* ==============================
   AUTH CARD
================================ */
.auth-card {
  padding: 40px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ffd7aa;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #555;
}

.tab-btn.active {
  background: #fb923c;
  color: #fff;
  border-color: #fb923c;
}

/* ==============================
   FORMS
================================ */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h3 {
  font-size: 22px;
  margin-bottom: 25px;
  color: #111;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #444;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #fb923c;
}

/* Extra row */
.form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-extra a {
  color: #fb923c;
  text-decoration: none;
}

/* Button */
.auth-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #fb923c;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-btn:hover {
  background: #f97316;
}

/* ==============================
   RESPONSIVE (MOBILE)
================================ */
@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    text-align: center;
    padding: 30px 20px;
  }

  .auth-card {
    padding: 30px 20px;
  }
}
