html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

.logout-form {
  display: inline-block;
  margin-left: 12px;
}

.logout-btn {
  border: none;
  background: transparent;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 6px;
}

.logout-btn:hover {
  color: #b00000;
}

.card.wallet .card-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #1e1e1e;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #1e1e1e;
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card.wallet .card-hint::after {
  content: " >";
  font-weight: 700;
}

.card.wallet:hover .card-hint {
  background: #1e1e1e;
  color: #fff;
  border-color: #1e1e1e;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.product-filters button {
  margin-left: auto;
}

.product-filters input[type="text"],
.product-filters select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 14px;
  min-width: 220px;
}

.product-filters button {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 600;
}

.product-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.product-card-img {
  display: block;
  background: #f7f7f7;
  padding: 18px;
}

.product-card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.product-card-body {
  padding: 16px 18px 20px;
}

.product-card-body h5 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #1e1e1e;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-meta .price-group {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.product-card-meta .old-price {
  text-decoration: line-through;
  color: #888;
  font-weight: 500;
}

.product-card-meta .offer-price {
  color: #b00000 !important;
  font-weight: 800;
}

.offer-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe9e9;
  color: #b00000;
  font-size: 11px;
  font-weight: 700;
}

.product-price .old-price {
  text-decoration: line-through;
  color: #888;
  font-weight: 500;
  margin-right: 10px;
}

.product-price .offer-price {
  color: #b00000 !important;
  font-weight: 800;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.old-price {
  font-size: 12px;
  color: #888;
  text-decoration: line-through;
}

.new-price {
  font-size: 15px;
  font-weight: 800;
  color: #b00000;
}

.product-card-meta .price {
  font-weight: 700;
  color: #1e1e1e;
}

.product-card-meta .view-btn {
  background: #1e1e1e;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-detail-section .product-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.product-description h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.product-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  cursor: pointer;
}

.shades-box h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.shade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.shade {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #111;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.shade::after {
  content: attr(data-label);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.shade:hover::after {
  opacity: 1;
}

.shade.is-active {
  outline: 3px solid #1e1e1e;
  outline-offset: 2px;
}

.selected-shade {
  margin-top: 12px;
  font-size: 13px;
  color: #444;
}

.cart-box {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.quantity-selector input[type="number"] {
  width: 80px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.add-to-cart-btn {
  background: #1e1e1e;
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.go-to-cart {
  margin-top: 18px;
}

.go-to-cart-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #1e1e1e;
  color: #1e1e1e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.go-to-cart-btn.cart {
  background: #1e1e1e;
  color: #fff;
}

.cart-section .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #1e1e1e;
  background: #fff;
  color: #1e1e1e;
  font-weight: 700;
  line-height: 1;
}

.cart-offer-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 991px) {
  .product-detail-section .product-wrapper {
    grid-template-columns: 1fr;
  }
}
