/* ============================================================
   ShopCOD — Main Storefront CSS (Amazon-style)
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --nav-dark:    #131921;
  --nav-mid:     #232f3e;
  --accent:      #ff9900;
  --accent-dark: #e47911;
  --btn-yellow:  #ffd814;
  --btn-orange:  #ffa41c;
  --price-color: #b12704;
  --bg:          #eaeded;
  --white:       #ffffff;
  --text:        #0f1111;
  --muted:       #565959;
  --border:      #ddd;
  --radius:      8px;
  --shadow:      0 2px 8px rgba(0,0,0,.12);
  --transition:  0.2s ease;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Amazon Ember', 'Arial', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* --- Topbar ----------------------------------------------- */
.topbar {
  background: var(--nav-dark);
  color: #ccc;
  font-size: 12px;
  padding: 4px 0;
}
.topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--accent); }
.topbar i { margin-right: 4px; }

/* --- Navbar ----------------------------------------------- */
.navbar {
  background: var(--nav-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  border: 2px solid transparent;
}
.logo:hover { border-color: var(--white); }
.logo-icon { color: var(--accent); }
.logo-text { letter-spacing: -0.5px; }

/* Search bar */
.search-bar {
  flex: 1;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  max-width: 700px;
}
.search-cat {
  background: #f3f3f3;
  border: none;
  padding: 0 8px;
  font-size: 12px;
  cursor: pointer;
  border-right: 1px solid #cdcdcd;
  color: #555;
}
.search-input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
  font-size: 15px;
}
.search-btn {
  background: var(--accent);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  transition: background var(--transition);
}
.search-btn:hover { background: var(--accent-dark); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 12px;
  gap: 2px;
  text-align: center;
  white-space: nowrap;
}
.nav-btn:hover { border-color: var(--white); }
.nav-btn i { font-size: 18px; }
.nav-label { font-size: 11px; }

/* Cart badge */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 0; right: 2px;
  background: var(--accent);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-badge.hidden { display: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  min-width: 180px;
  z-index: 200;
  padding: 8px 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
}
.dropdown-menu a:hover { background: #f5f5f5; }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* --- Category Nav ----------------------------------------- */
.cat-nav {
  background: var(--nav-mid);
  overflow-x: auto;
}
.cat-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 4px;
}
.cat-nav a {
  color: #eee;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 3px;
  transition: background var(--transition);
}
.cat-nav a:hover,
.cat-nav a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* --- Flash Messages --------------------------------------- */
.flash-container { max-width: 1300px; margin: 8px auto 0; padding: 0 16px; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border-left: 4px solid;
  font-size: 14px;
}
.alert-success { background: #d4edda; border-color: #28a745; color: #155724; }
.alert-error   { background: #f8d7da; border-color: #dc3545; color: #721c24; }
.alert-warning { background: #fff3cd; border-color: #ffc107; color: #856404; }
.alert-info    { background: #d1ecf1; border-color: #17a2b8; color: #0c5460; }

/* --- Layout ----------------------------------------------- */
.page-content { min-height: 70vh; }
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* --- Hero Banner ------------------------------------------ */
.hero-banner {
  background: linear-gradient(135deg, var(--nav-dark) 0%, var(--nav-mid) 60%, #37475a 100%);
  padding: 60px 24px;
  text-align: center;
  color: var(--white);
}
.hero-content h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero-content p { font-size: 1.1rem; color: #ccc; margin-bottom: 24px; }
.hero-btn {
  display: inline-block;
  background: var(--btn-yellow);
  color: var(--text);
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.hero-btn:hover { background: var(--btn-orange); transform: translateY(-2px); }

/* --- Shop Header ------------------------------------------ */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.shop-header h2 { font-size: 1.4rem; }
.result-count { color: var(--muted); font-size: 0.9rem; font-weight: 400; margin-left: 8px; }
.page-title { font-size: 1.6rem; margin-bottom: 20px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; display: inline-block; }

/* --- Product Grid ----------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.card-img-link { display: block; }
.card-img-wrap {
  position: relative;
  height: 200px;
  background: #f8f8f8;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .card-img-wrap img { transform: scale(1.04); }

.out-of-stock-badge,
.low-stock-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.out-of-stock-badge { background: #dc3545; color: #fff; }
.low-stock-badge    { background: #ff9900; color: #fff; }

.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-cat  { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.card-title { font-size: 14px; line-height: 1.4; font-weight: 600; }
.card-title a { color: var(--text); }
.card-title a:hover { color: #c45500; text-decoration: underline; }
.card-price { margin-top: auto; }
.price { font-size: 18px; font-weight: 700; color: var(--price-color); }

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.btn-view {
  flex: 1;
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--btn-yellow);
  color: var(--text);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-view:hover { background: var(--btn-orange); }
.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--btn-orange);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  transition: background var(--transition);
}
.btn-cart:hover { background: var(--accent-dark); }
.add-cart-form { display: inline; }

/* --- Product Detail Page ---------------------------------- */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.product-gallery { position: sticky; top: 80px; }
.main-img-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.main-product-img { width: 100%; border-radius: 8px; max-height: 480px; object-fit: cover; }

.product-details {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-cat { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.product-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.product-price { font-size: 2rem; font-weight: 700; color: var(--price-color); margin: 14px 0; }
.in-stock  { color: #007600; font-weight: 600; margin-bottom: 12px; }
.out-stock { color: var(--price-color); font-weight: 600; margin-bottom: 12px; }
.product-desc { color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.add-to-cart-form { margin-bottom: 16px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.qty-btn {
  background: #f0f0f0;
  border: none;
  width: 36px; height: 36px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition);
}
.qty-btn:hover { background: #ddd; }
.qty-input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 36px;
  font-size: 15px;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-add-cart {
  width: 100%;
  padding: 14px;
  background: var(--btn-yellow);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--btn-orange); }

.product-meta { border-top: 1px solid var(--border); padding-top: 16px; }
.product-meta p { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.product-meta i { margin-right: 6px; color: var(--accent); }

.page-breadcrumb { margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.page-breadcrumb a { color: #007185; }
.page-breadcrumb a:hover { text-decoration: underline; }

/* Rating */
.rating-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stars { color: var(--accent); font-size: 18px; }
.rating-val  { font-weight: 700; font-size: 16px; }
.rating-count { color: var(--muted); font-size: 13px; }

/* --- Reviews Section -------------------------------------- */
.reviews-section { margin-top: 48px; }
.reviews-section h2 { font-size: 1.3rem; margin-bottom: 20px; }
.review-form-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.review-form-card h3 { margin-bottom: 14px; }
.star-picker { display: flex; gap: 4px; font-size: 28px; cursor: pointer; margin-bottom: 14px; }
.star-opt { color: #ccc; transition: color var(--transition); }
.star-opt:hover { color: var(--accent); }

.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-date { color: var(--muted); font-size: 12px; margin-left: auto; }
.review-comment { color: var(--muted); line-height: 1.6; }
.no-reviews { color: var(--muted); font-style: italic; }

/* --- Cart ------------------------------------------------- */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-cart i { margin-bottom: 20px; }
.empty-cart h2 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text); }
.empty-cart p  { margin-bottom: 24px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.cart-items {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cart-items-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 40px;
  padding: 14px 20px;
  background: #f5f5f5;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  gap: 12px;
}
.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 40px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  align-items: center;
  gap: 12px;
}
.cart-item-product { display: flex; align-items: center; gap: 12px; }
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item-product a { color: var(--text); font-weight: 600; }
.cart-item-product a:hover { color: #c45500; }
.stock-warn { color: #dc3545; font-size: 12px; margin-top: 4px; }
.cart-item-price { font-weight: 600; }
.cart-item-sub   { font-weight: 700; color: var(--price-color); }
.qty-control.sm { border-radius: 4px; }
.qty-control.sm .qty-btn  { width: 28px; height: 28px; font-size: 14px; }
.qty-display { padding: 0 10px; font-weight: 600; background: #fff; }

.btn-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}
.btn-remove:hover { color: #a11; }

.cart-bottom-actions {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

/* Summary */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.summary-total {
  font-size: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.free { color: #007600; font-weight: 700; }
.payment-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff9f0;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px;
  margin: 16px 0;
  font-size: 13px;
}
.payment-info i { color: var(--accent); font-size: 20px; }
.btn-checkout {
  display: block;
  text-align: center;
  background: var(--btn-yellow);
  color: var(--text);
  padding: 14px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  transition: background var(--transition);
}
.btn-checkout:hover { background: var(--btn-orange); }

/* --- Checkout -------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.checkout-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-section { margin-bottom: 28px; }
.form-section h3 { font-size: 1.1rem; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.form-section h3 i { margin-right: 8px; color: var(--accent); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,153,0,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: #dc3545; }
.optional { color: var(--muted); font-weight: 400; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #fff9f0;
}
.payment-option i:first-child { color: var(--accent); }
.payment-option strong { display: block; margin-bottom: 2px; }
.payment-option p { margin: 0; color: var(--muted); font-size: 12px; }
.payment-option .check { margin-left: auto; color: #28a745; font-size: 20px; }

.btn-place-order {
  width: 100%;
  padding: 16px;
  background: var(--btn-orange);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-place-order:hover { background: var(--accent-dark); }

.checkout-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.checkout-summary h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.co-item { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.co-item-img { position: relative; }
.co-item-img img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.co-qty {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--nav-mid);
  color: #fff;
  font-size: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.co-item-name { flex: 1; font-size: 13px; }
.co-item-price { font-weight: 600; }

/* --- Order Success ---------------------------------------- */
.success-page {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}
.success-icon i { color: #28a745; margin-bottom: 20px; display: block; }
.success-page h1 { font-size: 2rem; margin-bottom: 10px; }
.success-page > p { color: var(--muted); margin-bottom: 30px; }

.order-confirmation-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: left;
  margin-bottom: 30px;
}
.oc-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.oc-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.oc-item  { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.oc-total { text-align: right; padding-top: 14px; font-size: 1.1rem; }
.oc-address { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.oc-address i { color: var(--accent); margin-top: 2px; }
.oc-address p { margin: 4px 0; color: var(--muted); font-size: 13px; }

.success-actions { display: flex; justify-content: center; gap: 16px; }

/* --- Orders List ------------------------------------------ */
.orders-list { display: flex; flex-direction: column; gap: 20px; }
.order-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.order-id { display: flex; flex-direction: column; gap: 2px; font-weight: 700; }
.order-date { font-size: 12px; font-weight: 400; color: var(--muted); }

/* Timeline */
.order-timeline {
  display: flex;
  padding: 20px;
  gap: 0;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}
.timeline-step.done .timeline-dot  { background: #28a745; border-color: #28a745; }
.timeline-step.done::before        { background: #28a745; }
.timeline-step.current .timeline-dot { background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,153,0,.2); }
.cancelled-step .timeline-dot { background: #dc3545; border-color: #dc3545; }
.timeline-label { font-size: 11px; color: var(--muted); text-align: center; }
.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label { color: var(--text); font-weight: 600; }

.order-items-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
}
.oi-thumb {
  position: relative;
  width: 48px; height: 48px;
}
.oi-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.oi-qty {
  position: absolute;
  bottom: -4px; right: -4px;
  background: var(--nav-mid);
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
}
.more-items { font-size: 12px; color: var(--muted); }

.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #fafafa;
  font-size: 14px;
}
.btn-view-sm {
  padding: 6px 14px;
  background: var(--btn-yellow);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.btn-view-sm:hover { background: var(--btn-orange); }

/* Order Detail */
.order-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.order-detail-main .order-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.odc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.odc-date { margin-left: auto; color: var(--muted); font-size: 13px; }
.order-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.order-info-card h3 { font-size: 1rem; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.order-info-card p { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.order-info-card i { margin-right: 6px; color: var(--accent); }
.order-total-big { font-size: 1.4rem; font-weight: 700; color: var(--price-color); }
.order-items-table { width: 100%; border-collapse: collapse; }
.order-items-table th,
.order-items-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.order-items-table th { background: #f5f5f5; font-weight: 700; }
.oit-product { display: flex; align-items: center; gap: 10px; }
.oit-product img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

/* --- Pagination ------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  transition: background var(--transition);
}
.page-btn:hover { background: var(--btn-yellow); border-color: var(--accent); }
.page-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* --- Buttons ---------------------------------------------- */
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--btn-yellow);
  color: var(--text);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
}
.btn-primary:hover { background: var(--btn-orange); }
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #f0f0f0;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-secondary:hover { background: #e0e0e0; }
.btn-danger {
  display: inline-block;
  padding: 10px 20px;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-danger:hover { background: #b02a37; }
.btn-block { display: block; width: 100%; text-align: center; }
.mt-2 { margin-top: 8px; }

/* --- Empty State ------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state i   { margin-bottom: 16px; }
.empty-state h3  { font-size: 1.4rem; color: var(--text); margin-bottom: 10px; }
.empty-state p   { margin-bottom: 24px; }

/* --- Auth Pages ------------------------------------------- */
.auth-body { background: #f0f2f5; min-height: 100vh; }
.auth-page { max-width: 480px; margin: 0 auto; padding: 40px 20px; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--nav-dark);
}
.auth-logo i { color: var(--accent); }
.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  padding: 32px;
  border: 1px solid var(--border);
}
.auth-card h2 { font-size: 1.5rem; margin-bottom: 24px; font-weight: 700; }
.auth-form { margin-bottom: 16px; }
.auth-footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
.auth-footer a { color: #007185; }
.auth-footer a:hover { text-decoration: underline; }
.input-with-icon { position: relative; }
.input-with-icon .form-control { padding-right: 44px; }
.toggle-pw {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
}
.demo-creds {
  margin-top: 16px;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed var(--border);
}
.demo-creds p { margin-bottom: 4px; }
.demo-creds strong { display: block; margin-bottom: 4px; color: var(--text); }

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--nav-dark);
  color: #ccc;
  margin-top: 48px;
}
.footer-inner { max-width: 1300px; margin: 0 auto; padding: 40px 16px 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: var(--white); margin-bottom: 14px; font-size: 15px; }
.footer-col h4 i { margin-right: 6px; color: var(--accent); }
.footer-col p { font-size: 13px; margin-bottom: 8px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #ccc; font-size: 13px; }
.footer-col ul a:hover { color: var(--accent); }
.payment-badge { display: flex; align-items: center; gap: 12px; }
.payment-badge i { color: #28a745; }
.payment-badge strong { display: block; color: var(--white); }
.payment-badge p { margin: 0; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; }

/* --- Badge ------------------------------------------------ */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-success  { background: #d4edda; color: #155724; }
.badge-danger   { background: #f8d7da; color: #721c24; }
.badge-warning  { background: #fff3cd; color: #856404; }
.badge-info     { background: #d1ecf1; color: #0c5460; }
.badge-primary  { background: #cce5ff; color: #004085; }
.badge-secondary{ background: #e2e3e5; color: #383d41; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .product-page    { grid-template-columns: 1fr; }
  .cart-layout     { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: repeat(2, 1fr); }
  .order-detail-layout { grid-template-columns: 1fr; }
  .oc-header { grid-template-columns: repeat(2,1fr); }
  .cart-items-header { display: none; }
  .cart-item { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-inner   { flex-wrap: wrap; }
  .search-bar  { order: 3; width: 100%; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-content h1 { font-size: 1.6rem; }
  .form-row    { grid-template-columns: 1fr; }
  .success-actions { flex-direction: column; }
}
