/* ============================
   🛍️ SHOP PAGE - FASHION SHOP 2025
   Sang xịn mịn - Luxury Gold Edition
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
  --bg-color: #0f0f0f;
  --surface-color: #181818;
  --primary-text: #f2f2f2;
  --accent-gold: #d4af37;
  --accent-gold-light: #f6e27f;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: var(--primary-text);
  overflow-x: hidden;
}

/* ========== SHOP SECTION ========== */
.shop-section {
  padding: 70px 80px;
  background: var(--bg-color);
  min-height: 100vh;
}

.shop-header {
  text-align: center;
  margin-bottom: 40px;
}

.shop-header h2 {
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
}

/* ========== FILTER BAR ========== */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.filter-bar input,
.filter-bar select {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 18px;
  font-size: 14px;
  outline: none;
}

.filter-bar button {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border: none;
  color: #111;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 22px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-bar button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(212,175,55,0.4);
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--surface-color);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(212,175,55,0.25);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #000;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  color: var(--accent-gold-light);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-info .category {
  color: #ccc;
  font-size: 0.9rem;
}

.product-info .price {
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 8px;
}

.product-info .desc {
  color: #bbb;
  font-size: 0.9rem;
  margin: 10px 0;
}

/* ========== ADD TO CART BUTTON ========== */
.btn-add-cart {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #111;
  border: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.btn-add-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(212,175,55,0.5);
}

/* ========== EMPTY / NO RESULT ========== */
.no-result,
.empty-cart {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 40px;
  color: #aaa;
}

/* ========== TOAST POPUP ========== */
.toast-message {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: linear-gradient(135deg, #d4af37, #f9d976);
  color: #111;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 5px 25px rgba(212,175,55,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 10000;
}
.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .shop-section {
    padding: 40px 20px;
  }
  .filter-bar {
    flex-direction: column;
    align-items: center;
  }
  .btn-add-cart {
    width: 100%;
  }
}
/* ==========================
   💳 CHECKOUT PAGE STYLE
   ========================== */
.checkout-section {
  padding: 80px 60px;
  color: #f2f2f2;
  background: #0f0f0f;
  min-height: 100vh;
}

.checkout-section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #d4af37, #f9d976);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
}

.checkout-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.checkout-info {
  background: #181818;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.checkout-info input,
.checkout-info textarea,
.checkout-info select {
  width: 100%;
  margin: 10px 0;
  padding: 10px 14px;
  background: #222;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.checkout-info textarea {
  height: 100px;
  resize: vertical;
}

.checkout-info h3, .checkout-info h4 {
  color: #d4af37;
  margin-top: 10px;
}

.checkout-summary {
  background: #181818;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.checkout-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.checkout-table th {
  color: #d4af37;
  padding: 10px;
  background: #222;
}
.checkout-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #333;
}
.checkout-table td img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-total {
  text-align: right;
}
.checkout-total p {
  font-size: 1rem;
  margin: 6px 0;
}
.checkout-total .total-final {
  font-size: 1.3rem;
  color: #f6e27f;
  font-weight: 700;
}

/* BUTTONS */
.btn-checkout {
  width: 100%;
  margin-top: 15px;
  background: linear-gradient(135deg, #d4af37, #f9d976);
  color: #111;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
}
.btn-checkout:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(212,175,55,0.5);
}

.btn-back {
  display: inline-block;
  text-decoration: none;
  color: #d4af37;
  font-weight: 600;
  margin-top: 10px;
}
.btn-back:hover {
  color: #fff;
}

/* EMPTY CART */
.checkout-empty {
  text-align: center;
  padding: 100px 20px;
}
.checkout-empty h2 {
  color: #f6e27f;
  margin-bottom: 20px;
}
.checkout-empty .btn-primary {
  background: linear-gradient(135deg, #d4af37, #f9d976);
  color: #000;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}
.checkout-empty .btn-primary:hover {
  opacity: 0.9;
}
.size-btn {
  padding: 6px 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
  font-size: 13px;
}

.size-btn:hover {
  background: #f9d976;
  color: #000;
  border-color: #d4af37;
}

.size-btn.active {
  background: linear-gradient(135deg, #d4af37, #f9d976);
  color: #111;
  border-color: #f5c400;
  box-shadow: 0 0 6px rgba(212,175,55,0.4);
}
/* ===============================
   📦 QUẢN LÝ ĐƠN HÀNG (orders_view)
   =============================== */
.orders-section {
  padding: 50px 80px;
  color: var(--primary-text);
  background: var(--bg-color);
  min-height: 80vh;
}

.orders-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.no-orders {
  text-align: center;
  font-size: 1.1rem;
}
.no-orders a {
  color: var(--accent-gold-light);
  text-decoration: underline;
}

.order-card {
  background: var(--surface-color);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  transition: 0.3s;
}
.order-card:hover { transform: translateY(-3px); }

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}
.order-id {
  font-weight: 600;
  color: var(--accent-gold-light);
}

.order-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
}
.status-đã-thanh-toán { background: #28a745; }
.status-đang-xử-lý { background: #ffc107; color:#000; }
.status-chờ-thanh-toán { background: #17a2b8; }
.status-đã-hủy { background: #dc3545; }

.order-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.order-info { flex: 1; }
.order-total {
  font-weight: 600;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.order-actions a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}
.btn-view {
  background: linear-gradient(45deg,#d4af37,#f6e27f);
  color: #000;
}
.btn-cancel {
  background: #dc3545;
  color: #fff;
}
.btn-view:hover { opacity: 0.85; }
.btn-cancel:hover { background: #b11c2a; }
   



/* ===============================
   🎁 FORM NHẬP VOUCHER (CHECKOUT)
   =============================== */
.voucher-box {
  margin-top: 20px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.voucher-box:hover {
  border-color: #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
  transform: translateY(-2px);
}

.voucher-box label {
  color: #ffcc00;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.voucher-box input {
  background-color: #111;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
  padding: 10px;
  width: 65%;
  transition: 0.3s;
}

.voucher-box input:focus {
  border-color: #f1c40f;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

.voucher-box button {
  background: linear-gradient(135deg, #f1c40f, #e0a800);
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 8px;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.voucher-box button:hover {
  background: linear-gradient(135deg, #ffe066, #ffb84d);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 180, 50, 0.4);
}

.voucher-msg {
  margin-top: 10px;
  font-size: 14px;
}

.voucher-msg b {
  color: #f1c40f;
}
