* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #111827;
  font-family: "Be Vietnam Pro", sans-serif;
}

.store-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}

/* ================= POINTS CARD (GIỐNG Y CHANG HÌNH ẢNH THAM KHẢO) ================= */
.points-card {
  padding: 22px 18px 20px 18px;
  background: linear-gradient(145deg, #1877F2 0%, #0056D2 55%, #0045B5 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 28px rgba(0, 86, 210, 0.22);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.points-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.points-card__crown {
  color: #ffffff;
  opacity: 0.92;
  flex-shrink: 0;
}

.points-card__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 18px 0;
  gap: 8px;
}

.points-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.points-card__coin {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.points-card__balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.points-card__val {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1;
  letter-spacing: -0.5px;
}

.points-card__unit {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px;
}

.points-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.points-card__arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(2px);
}

.points-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #ffffff !important;
  color: #0056D2 !important;
  border-radius: 999px !important;
  padding: 13px 18px;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.points-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  background: #f8fafc !important;
}

.points-card__btn:active {
  transform: translateY(0);
}

.points-card__btn-icon {
  color: #0056D2;
  flex-shrink: 0;
}

/* ================= OTHER SIDEBAR & PRODUCT CARDS ================= */
.category-card,
.guide-card,
.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.category-card,
.guide-card {
  padding: 18px;
  margin-top: 16px;
}

.category-card h3,
.guide-card h3 {
  font-size: 15px;
  margin: 0 0 12px;
}

.category-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #475569;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.15s ease;
}

.category-card a:hover {
  background: #f8fafc;
  color: #1e293b;
}

.category-card a.active {
  background: #eaf2fc;
  color: #2761b2;
  font-weight: 600;
}

.category-name {
  flex: 1;
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 8px;
  line-height: 1;
  transition: all 0.15s ease;
}

.category-card a:hover .category-count {
  background: #e2e8f0;
  color: #334155;
}

.category-card a.active .category-count {
  background: #2761b2;
  color: #ffffff;
}

.guide-card {
  background: linear-gradient(180deg, #F0F6FE 0%, #E4EFFC 100%);
  border: 1.5px solid #C7DCF8;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(39, 97, 178, 0.08);
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(39, 97, 178, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.guide-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.guide-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #2761b2;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d0e2fa;
}

.guide-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.guide-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 8px 0 14px 0;
}

.guide-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #2761B2 0%, #1D4F96 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(39, 97, 178, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.guide-card__btn:hover {
  background: linear-gradient(135deg, #1D4F96 0%, #153C74 100%);
  box-shadow: 0 6px 18px rgba(39, 97, 178, 0.38);
  transform: translateY(-1.5px);
  color: #ffffff !important;
}

.guide-card__btn:active {
  transform: translateY(0);
}

.guide-card__arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.guide-card__btn:hover .guide-card__arrow {
  transform: translateX(3px);
}

.store-content {
  min-width: 0;
}

.store-banner {
  min-height: 190px;
  padding: 30px;
  border-radius: 16px;
  background: #2761b2;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.store-banner--has-poster {
  padding: 0 !important;
  background: transparent !important;
  border-radius: 16px;
  overflow: hidden;
  min-height: auto !important;
  display: block !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.store-banner__img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.store-banner h1 {
  font-size: 29px;
  margin: 0;
  max-width: 580px;
}

.store-banner p {
  max-width: 610px;
  line-height: 1.6;
  opacity: 0.88;
}

.banner-art {
  font-size: 75px;
  position: relative;
}

.banner-art span,
.banner-art b {
  position: absolute;
  color: #f5a623;
  font-size: 24px;
}

.banner-art span {
  left: -20px;
  top: -5px;
}

.banner-art b {
  right: -14px;
  bottom: 3px;
}

.section-head,
.all-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 16px;
}

.section-head h2,
.all-head h2 {
  font-size: 20px;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.product-image {
  height: 155px;
  min-height: 155px;
  max-height: 155px;
  width: 100%;
  background: #eaf2fc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 42px;
  overflow: hidden;
  box-sizing: border-box;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge Giảm điểm màu đỏ nổi bật + Animation thu hút chú ý */
.product-image em {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.2px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-image em.badge-sale,
.product-image em:not(.badge-stock-out) {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.45) !important;
  animation: badgeSalePulse 2.2s infinite ease-in-out;
}

@keyframes badgeSalePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.75);
  }
}

.product-image em.badge-stock-out {
  background: #64748b !important;
  color: #ffffff !important;
  animation: none !important;
  box-shadow: none !important;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  box-sizing: border-box;
}

.product-info small {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 6px 0;
  min-height: 42px; /* cố định chiều cao cho 2 dòng để các box luôn bằng nhau */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 12px 0;
  min-height: 35px; /* cố định chiều cao cho mô tả để các card đều tăm tắp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  color: #f5a623;
  font-weight: 700;
  font-size: 16px;
  margin-top: auto; /* đẩy giá và nút xuống đáy đều tăm tắp */
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price .price-current {
  color: #f5a623;
  font-weight: 700;
  font-size: 16.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.product-coin-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(245, 124, 0, 0.35));
}

.price del,
.price .price-original {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-info button,
.product-info .store-card__login-btn,
.all-head button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: #2761b2;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.product-info .store-card__login-btn {
  background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.35);
  gap: 6px;
}

.product-info .store-card__login-btn:hover {
  background: linear-gradient(135deg, #FFA726 0%, #F4511E 100%);
  box-shadow: 0 5px 16px rgba(255, 87, 34, 0.5);
  transform: translateY(-1px);
  color: #fff !important;
}

.product-info button:hover:not(:disabled),
.all-head button:hover:not(:disabled) {
  background: #1d4f96;
}

.product-info button:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.all-head form {
  display: flex;
  gap: 8px;
}

.all-head input,
.all-head select {
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
}

.all-head button {
  width: auto;
}

.store-alert {
  padding: 12px;
  border-radius: 10px;
  margin-top: 16px;
}

.store-alert.success {
  background: #dcfce7;
  color: #166534;
}

.store-alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.empty {
  padding: 32px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
}

/* Body lock when modal is open */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* ================= REDESIGN POPUP XÁC NHẬN ĐỔI ĐIỂM (SAAS STANDARD) ================= */
dialog#redeemModal {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  width: min(500px, calc(100% - 32px));
  max-width: 500px;
  max-height: min(90vh, calc(100dvh - 32px));
  border: none;
  border-radius: 20px;
  padding: 0;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24), 0 4px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  font-family: "Be Vietnam Pro", sans-serif;
  z-index: 99999;
}

dialog#redeemModal::backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overscroll-behavior: none;
  touch-action: none;
}

dialog#redeemModal[open] {
  animation: modalScaleFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.redeem-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.redeem-modal__close:hover {
  background: #e2e8f0;
  color: #111827;
  transform: rotate(90deg);
}

.redeem-modal__content {
  padding: 24px 28px 24px 28px;
  max-height: min(90vh, calc(100dvh - 32px));
  overflow-y: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Header & Illustration */
.redeem-modal__header {
  text-align: center;
  margin-bottom: 20px;
}

.redeem-modal__art {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.redeem-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.redeem-modal__subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Product Summary Card */
.redeem-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #EAF2FC;
  margin-bottom: 18px;
}

.redeem-summary__thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(39, 97, 178, 0.12);
}

.redeem-summary__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.redeem-summary__placeholder {
  font-size: 40px;
}

.redeem-summary__info {
  flex: 1;
  min-width: 0;
}

.redeem-summary__name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.redeem-summary__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.redeem-summary__badge.badge-ready {
  background: #ffffff;
  color: #16A34A;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.redeem-summary__badge.badge-not-enough {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.redeem-summary__desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Points Breakdown Card */
.redeem-breakdown {
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #ffffff;
  padding: 4px 16px;
  margin-bottom: 16px;
}

.redeem-breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}

.redeem-breakdown__row:last-child {
  border-bottom: none;
}

.redeem-breakdown__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.redeem-breakdown__icon {
  color: #2761B2;
  flex-shrink: 0;
}

.redeem-breakdown__val {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #2761B2;
}

.redeem-coin-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.4));
}

.redeem-breakdown__row--highlight .redeem-breakdown__label {
  font-weight: 600;
  color: #111827;
}

.redeem-breakdown__val--remaining {
  font-size: 18px;
  font-weight: 800;
  color: #2761B2;
}

/* Notice Box */
.redeem-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 22px;
}

.redeem-notice.notice-info {
  background: #EAF2FC;
  color: #1D4F96;
}

.redeem-notice.notice-info .redeem-notice__icon {
  color: #2761B2;
  flex-shrink: 0;
}

.redeem-notice.notice-warning {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.redeem-notice.notice-warning .redeem-notice__icon {
  color: #EF4444;
  flex-shrink: 0;
}

/* Footer Actions */
.redeem-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.redeem-btn-cancel {
  border: none;
  border-radius: 10px;
  background: #F1F5F9;
  color: #334155;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.redeem-btn-cancel:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.redeem-btn-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: #2761B2;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(39, 97, 178, 0.28);
  transition: all 0.2s ease;
  position: relative;
}

.redeem-btn-confirm:hover:not(:disabled) {
  background: #1D4F96;
  box-shadow: 0 6px 18px rgba(39, 97, 178, 0.36);
  transform: translateY(-1px);
}

.redeem-btn-confirm:active:not(:disabled) {
  transform: translateY(0);
}

.redeem-btn-confirm:disabled,
.redeem-btn-confirm.is-disabled {
  background: #CBD5E1 !important;
  color: #94A3B8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.redeem-btn-confirm.is-loading .redeem-btn-confirm__text,
.redeem-btn-confirm.is-loading .redeem-btn-confirm__icon {
  visibility: hidden;
  opacity: 0;
}

.redeem-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  animation: redeemSpin 0.7s infinite linear;
}

.redeem-btn-confirm.is-loading .redeem-btn-spinner {
  display: block;
}

@keyframes redeemSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 540px) {
  .redeem-modal__content {
    padding: 20px 18px;
  }
  .redeem-summary {
    gap: 12px;
    padding: 12px;
  }
  .redeem-summary__thumb {
    width: 72px;
    height: 72px;
  }
  .redeem-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .redeem-btn-cancel,
  .redeem-btn-confirm,
  #redeemForm {
    width: 100%;
  }
}

@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .store-shell {
    display: block;
    padding: 18px;
  }
  .store-side {
    margin-bottom: 18px;
  }
  .category-card {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding: 12px;
    margin-top: 14px;
  }
  .category-card h3,
  .guide-card {
    display: none;
  }
  .category-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
  }
  .category-card a.active {
    background: #eaf2fc;
    border-color: #bfdbfe;
    color: #2761b2;
    font-weight: 700;
  }
  .category-card .category-count {
    margin-left: 2px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 11.5px;
    font-weight: 700;
  }
  .store-banner {
    min-height: 170px;
    padding: 22px;
  }
  .store-banner h1 {
    font-size: 23px;
  }
  .banner-art {
    display: none;
  }
  .all-head {
    display: block;
  }
  .all-head form {
    margin-top: 12px;
  }
  .all-head input {
    min-width: 0;
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= GUEST WELCOME BANNER & CARDS ================= */
.guest-welcome-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  border-radius: 16px;
  padding: 24px 28px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.guest-welcome-banner::after {
  content: "🎁";
  position: absolute;
  right: 20px;
  bottom: -15px;
  font-size: 110px;
  opacity: 0.16;
  pointer-events: none;
  transform: rotate(-15deg);
}

.guest-welcome-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.guest-welcome-banner__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #ffffff;
  line-height: 1.3;
}

.guest-welcome-banner__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px 0;
  max-width: 680px;
}

.guest-welcome-banner__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.guest-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.guest-cta-btn--primary {
  background: #ffffff;
  color: #1e40af !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.guest-cta-btn--primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.guest-cta-btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.guest-cta-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Guest sidebar card */
.points-card--guest {
  text-align: center;
  padding: 24px 20px !important;
  align-items: center;
}

.guest-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #c2410c;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
}

.points-card--guest h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.2px;
}

.guest-card__art {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.guest-card__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 0 18px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.guest-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.guest-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.guest-card__btn--login {
  background: #ffffff !important;
  color: #0056D2 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border: none !important;
}

.guest-card__btn--login:hover {
  background: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.guest-card__btn--register {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(4px);
}

.guest-card__btn--register:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .store-shell {
    padding: 12px 10px;
  }
  .store-banner {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .store-banner h1 {
    font-size: 19px;
  }
  .guest-welcome-banner {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .guest-welcome-banner__title {
    font-size: 18px;
  }
  .guest-welcome-banner__desc {
    font-size: 13px;
  }
  .guest-welcome-banner__cta {
    flex-direction: column;
    width: 100%;
  }
  .guest-cta-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .guest-welcome-banner::after {
    font-size: 70px;
    right: 8px;
    bottom: -10px;
    opacity: 0.12;
  }
  .product-card {
    border-radius: 14px;
  }
  .product-body {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  .store-shell {
    padding: 10px 6px;
  }
  .category-card {
    padding: 10px 8px;
    gap: 6px;
  }
  .category-card a {
    padding: 6px 10px;
    font-size: 12px;
  }
  .product-head h3 {
    font-size: 14px;
  }
  .product-btn {
    padding: 9px 12px;
    font-size: 13px;
  }
}

