/* === PAGE BASICS === */
body {
  font-family: Arial, sans-serif;
  background: #f6f6f6;
  margin: 0;
}

header {
  background: #2b2b2b;
  color: #fff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

header button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* === LAYOUT === */
.layout {
  display: flex;
  gap: 16px;
  padding: 16px;
}

.sidebar {
  width: 260px;
}

.filters-box {
  background: #f08ede;
  border: 2px solid #690e3a;
  border-radius: 12px;
  padding: 12px;
}

.filters-title {
  margin: 0 0 6px 0;
  font-weight: bold;
}

.sep {
  height: 10px;
}

/* === CARDS AREA === */
.cards-area {
  flex: 1;
}

.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* === SINGLE CARD === */
.card {
  width: 260px;
  background: #f08ede;
  border: 2px solid #690e3a;
  border-radius: 12px;
  padding: 10px;
}

.thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: block;
  margin-bottom: 8px;
}

.card-line {
  margin: 4px 0;
}

.price {
  color: #0a7a2a;
  font-weight: bold;
}

.controls {
  margin-top: 8px;
}


.empty-note {
  margin: 12px;
  color: #444;
}

/* === CHECKOUT PAGE === */
.checkout-view {
  padding: 24px;
}

.page-title {
  text-align: center;
  font-size: 28px;
  margin: 10px 0 18px;
}

.checkout-form {
  background: #fff;
  border: 2px solid #f08ede;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.checkout-form .hint {
  color: #b91c1c;
}

.cart-summary {
  background: #fff;
  border: 2px solid #f08ede;
  border-radius: 12px;
  padding: 12px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  padding: 8px;
  background: #f08ede;
}

.cart-row img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.cart-info .title {
  margin: 0;
  font-weight: bold;
}

.cart-info .sub {
  margin: 2px 0 0 0;
  color: #333;
}

.total {
  font-weight: bold;
  margin-top: 10px;
}

/* === SHOPPING CART CARD LAYOUT === */
.cart-title {
  text-align: center;
  font-size: 28px;
  margin: 10px 0 16px;
}

.cart-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cart-card {
  width: 260px;
  background: #f08ede;
  border: 2px solid #690e3a;
  border-radius: 12px;
  padding: 10px;
}

.cart-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-text .line {
  margin: 4px 0;
}

.cart-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
}

/* === TOP SEARCH BAR === */
.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f08ede;
  border-bottom: 1px solid #690e3a;
}

.top-search-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
}

/* === BUTTON STYLING === */
button,
.btn-primary,
.btn-outline,
.btn-reset,
.btn-remove {
  background: #000;
  color: #f08ede;
  border: 2px solid #000;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Hover effect: swap colors */
button:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn-reset:hover,
.btn-remove:hover {
  background: #f08ede;
  color: #000;
  border-color: #690e3a;
}

/* Disabled buttons */
button:disabled,
.btn-primary:disabled,
.btn-outline:disabled,
.btn-reset:disabled,
.btn-remove:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
