:root {
  --pink: #e91e63;
  --pink-dark: #be185d;
  --rose-soft: #fff1f2;
  --dark: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #fff1f2;
  --white: #ffffff;
  --green: #16a34a;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --amber-text: #92400e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.customer-app {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  padding-bottom: 92px;
}

.customer-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ffe4e6;
  backdrop-filter: blur(10px);
  padding: 12px 14px 10px;
}

.customer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.customer-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f43f5e, #e91e63);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.3);
  font-size: 20px;
  font-weight: 900;
}

.customer-brand-title {
  min-width: 0;
}

.customer-brand-title h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  color: #be185d;
  letter-spacing: -0.3px;
}

.customer-brand-title p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-cart-button {
  position: relative;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--pink);
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.26);
  cursor: pointer;
}

.customer-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 900;
}

.customer-search {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffe4e6;
  background: #fff1f2;
  border-radius: 18px;
  padding: 10px 12px;
}

.customer-search span {
  color: #94a3b8;
}

.customer-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--dark);
}

.customer-search input::placeholder {
  color: #94a3b8;
}

.customer-tabs-wrap {
  margin-top: 10px;
  border: 1px solid #ffe4e6;
  border-radius: 20px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

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

.customer-tab {
  border: 0;
  border-radius: 15px;
  padding: 8px 5px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.customer-tab.active {
  background: var(--pink);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(233, 30, 99, 0.24);
}

.customer-main {
  padding: 14px 12px 22px;
}

.customer-notice {
  margin-bottom: 12px;
  border: 1px solid var(--amber-border);
  background: var(--amber-bg);
  color: var(--amber-text);
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.customer-love-code {
  margin-bottom: 12px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.customer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 10px;
}

.customer-section-title h2 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

.customer-section-title span {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
}

.customer-empty {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #64748b;
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

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

.customer-product-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #ffe4e6;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.customer-product-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #ffe4e6, #fffbeb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb7185;
  font-size: 28px;
  font-weight: 900;
}

.customer-product-body {
  padding: 10px;
}

.customer-product-name {
  min-height: 38px;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 850;
}

.customer-product-desc {
  min-height: 32px;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.customer-product-price {
  margin: 8px 0 0;
  color: #be185d;
  font-size: 14px;
  font-weight: 900;
}

.customer-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.customer-small-btn {
  border: 0;
  border-radius: 14px;
  padding: 9px 7px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.customer-small-btn.light {
  background: #f1f5f9;
  color: #334155;
}

.customer-small-btn.pink {
  background: var(--pink);
  color: #ffffff;
}

.customer-bottom-cart {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 40;
  width: calc(100% - 28px);
  max-width: 402px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 18px;
  background: #0f172a;
  color: #ffffff;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--pink);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.btn.secondary {
  background: white;
  color: var(--dark);
  border: 1px solid var(--border);
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.card {
  margin-top: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.db-ok {
  color: #15803d;
  font-weight: 800;
}

.db-bad {
  color: #b91c1c;
  font-weight: 800;
}

.container {
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 14px;
}

.login-box {
  max-width: 420px;
  margin: 24px auto;
  background: white;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

label {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
}

@media (min-width: 760px) {
  body {
    background: #ffe4e6;
  }
}

/* =========================
   PHP 1.3.1 - Tinh chỉnh thẩm mỹ mobile
   Chỉ làm mềm màu, gọn khoảng cách, giữ bố cục cũ
========================= */

:root {
  --pink: #e91e63;
  --pink-dark: #be185d;
  --rose-soft: #fff7f9;
  --bg: #fff7f9;
  --dark: #111827;
  --muted: #718096;
  --border: #edf2f7;
}

html,
body {
  background: linear-gradient(
    90deg,
    #fff7f9 0%,
    #ffffff 28%,
    #ffffff 72%,
    #fff7f9 100%
  );
}

.customer-app {
  max-width: 430px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(190, 24, 93, 0.08);
}

.customer-header {
  padding: 10px 14px 9px;
  border-bottom: 1px solid #fff1f2;
  background: rgba(255, 255, 255, 0.98);
}

.customer-logo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 13px;
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(233, 30, 99, 0.22);
}

.customer-brand-title h1 {
  font-size: 16px;
  letter-spacing: -0.2px;
}

.customer-brand-title p {
  font-size: 11.5px;
  margin-top: 3px;
}

.customer-cart-button {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(233, 30, 99, 0.2);
}

.customer-cart-badge {
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
}

.customer-search {
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 16px;
  background: #fff8fa;
  border-color: #ffe4e6;
}

.customer-search input {
  font-size: 13.5px;
}

.customer-tabs-wrap {
  margin-top: 9px;
  border-radius: 18px;
  padding: 5px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

.customer-tabs {
  gap: 5px;
}

.customer-tab {
  border-radius: 13px;
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 750;
}

.customer-tab.active {
  box-shadow: 0 6px 14px rgba(233, 30, 99, 0.2);
}

.customer-main {
  padding: 13px 12px 20px;
}

.customer-notice,
.customer-love-code {
  margin-bottom: 10px;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 12.8px;
  line-height: 1.42;
}

.customer-notice {
  background: #fffaf0;
  border-color: #fdecc8;
  color: #8a4b0f;
}

.customer-love-code {
  background: #fff7f9;
  border-color: #ffd6df;
  color: #b11245;
}

.customer-section-title {
  margin: 12px 0 9px;
}

.customer-section-title h2 {
  font-size: 14.5px;
}

.customer-section-title span {
  font-size: 11.5px;
}

.customer-empty {
  border-radius: 17px;
  padding: 20px 16px;
  background: #fbfcfe;
  border-color: #e8eef6;
  font-size: 13.5px;
  color: #718096;
}

.customer-bottom-cart {
  bottom: 12px;
  max-width: 402px;
  border-radius: 17px;
  padding: 14px 16px;
  font-size: 14.5px;
  background: #111827;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.22);
}

@media (min-width: 760px) {
  body {
    background: linear-gradient(
      90deg,
      #fff1f2 0%,
      #ffffff 28%,
      #ffffff 72%,
      #fff1f2 100%
    );
  }
}

/* ===== PHP 1.3.2 - chỉnh sát file gốc hơn ===== */

.customer-header {
  padding: 12px 12px 10px;
}

.customer-header-row {
  align-items: flex-start;
}

.customer-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 14px;
  font-size: 18px;
}

.customer-brand-title h1 {
  font-size: 15px;
  margin-top: 1px;
}

.customer-brand-title p {
  font-size: 11px;
  margin-top: 4px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.customer-cart-button {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(233, 30, 99, 0.18);
}

.customer-cart-badge {
  min-width: 17px;
  height: 17px;
  top: -3px;
  right: -3px;
  font-size: 10px;
}

.customer-search {
  margin-top: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  background: #fff6f8;
}

.customer-search-icon {
  font-size: 18px;
  line-height: 1;
}

.customer-search input {
  font-size: 14px;
}

.customer-tabs-wrap {
  margin-top: 8px;
  padding: 8px 8px 10px;
  border-radius: 18px;
}

.customer-tabs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

.customer-tabs-toggle {
  border: 0;
  background: transparent;
  color: #e91e63;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.customer-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.customer-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.customer-tab {
  flex: 0 0 auto;
  min-width: 92px;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #f1f5f9;
}

.customer-tab.active {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}

.customer-notice {
  margin-bottom: 12px;
}

.customer-bottom-cart {
  max-width: 396px;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
}

/* =========================
   PHP 1.3.3 - Header + tab sát bản gốc hơn
========================= */

.customer-header {
  padding: 12px 14px 10px;
}

.customer-header-row {
  align-items: center;
}

.customer-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 14px;
  font-size: 18px;
}

.customer-brand-title h1 {
  font-size: 16px;
  color: #d4145a;
  letter-spacing: -0.25px;
}

.customer-brand-title p {
  font-size: 11.5px;
  color: #64748b;
}

.customer-cart-button {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #ec1f64;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(236, 31, 100, 0.25);
}

.customer-cart-icon {
  display: block;
  font-size: 18px;
  line-height: 1;
  transform: translateY(1px);
}

.customer-cart-badge {
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  background: #0f172a;
  border: 2px solid #ffffff;
}

.customer-search {
  margin-top: 9px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 16px;
  background: #fff7f9;
  border-color: #ffdce5;
}

.customer-search-icon {
  font-size: 15px;
  opacity: 0.85;
}

.customer-search input {
  font-size: 13px;
}

.customer-search input::placeholder {
  color: #94a3b8;
}

.customer-tabs-wrap {
  margin-top: 9px;
  padding: 6px 7px 5px;
  border-radius: 20px;
  border-color: #ffe1e9;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.customer-tabs-head {
  display: none;
}

.customer-tabs-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  overflow: hidden;
  padding-bottom: 0;
}

.customer-tab {
  min-width: 0;
  border: 1px solid #eef2f7;
  border-radius: 15px;
  background: #ffffff;
  color: #334155;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.055);
}

.customer-tab.active {
  background: #ec1f64;
  border-color: #ec1f64;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(236, 31, 100, 0.2);
}

.customer-tab-extra {
  display: none;
}

.customer-tabs-wrap.is-expanded .customer-tab-extra {
  display: block;
}

.customer-tabs-more {
  width: 100%;
  margin-top: 3px;
  border: 0;
  background: transparent;
  color: #ec1f64;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  padding: 2px 0 0;
}

.customer-tabs-arrow {
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}

.customer-tabs-wrap.is-expanded .customer-tabs-arrow {
  transform: rotate(180deg) translateY(1px);
}

.customer-bottom-cart {
  bottom: 12px;
  width: calc(100% - 32px);
  max-width: 400px;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 850;
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

.customer-bottom-cart::first-letter {
  font-size: 15px;
}

/* PHP 1.3.3.1 - canh giữa nút xem giỏ hàng */
.customer-bottom-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.customer-bottom-cart-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.customer-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.customer-detail-card {
  background: #ffffff;
  border: 1px solid #ffd6e4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.08);
}

.customer-detail-gallery {
  padding: 12px;
}

.customer-detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ec, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.customer-detail-image-empty {
  color: #fb7185;
  font-size: 44px;
  font-weight: 1000;
}

.customer-detail-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
}

.customer-detail-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: #fff1f2;
  cursor: pointer;
}

.customer-detail-thumb.active {
  border-color: #ec1f6f;
}

.customer-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.customer-detail-info {
  padding: 4px 16px 18px;
}

.customer-detail-category {
  display: inline-flex;
  margin: 0 0 8px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff1f2;
  color: #be185d;
  font-size: 12px;
  font-weight: 900;
}

.customer-detail-info h1 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
}

.customer-detail-price {
  margin-top: 10px;
  color: #db0f5f;
  font-size: 22px;
  font-weight: 1000;
}

.customer-detail-short {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.customer-buy-box {
  margin-top: 16px;
  border-top: 1px solid #ffe1ec;
  padding-top: 14px;
}

.customer-option-group {
  margin-bottom: 14px;
}

.customer-option-title {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 1000;
}

.customer-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-option-pill {
  cursor: pointer;
}

.customer-option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-option-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #ffd0df;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.customer-option-pill input:checked + span {
  border-color: #ec1f6f;
  background: #ec1f6f;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(236, 31, 111, 0.22);
}

.customer-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.customer-detail-buy-btn,
.customer-detail-cart-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
}

.customer-detail-buy-btn {
  background: #ec1f6f;
  color: #ffffff;
}

.customer-detail-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
}

.customer-buy-note {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.customer-detail-desc {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #ffd6e4;
  border-radius: 20px;
  padding: 16px;
}

.customer-detail-desc h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 18px;
}

.customer-detail-desc div {
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
}

/* PHP 1.5.0.5.1 - Khóa ảnh chi tiết sản phẩm không tràn khung mobile */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.customer-app,
.customer-main,
.customer-detail-card,
.customer-detail-gallery,
.customer-detail-main-image {
  max-width: 100%;
  box-sizing: border-box;
}

.customer-app,
.customer-main {
  overflow-x: hidden;
}

.customer-detail-card {
  width: 100%;
  overflow: hidden;
}

.customer-detail-gallery {
  width: 100%;
  padding: 12px;
}

.customer-detail-main-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ec, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-detail-main-image img,
.customer-detail-main-image > img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
}

.customer-detail-thumbs {
  max-width: 100%;
  overflow-x: auto;
}

/* PHP 1.5.0.5.2 - Chặn ảnh chi tiết làm vỡ khung mobile */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.customer-app {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden !important;
}

.customer-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.customer-detail-card,
.customer-detail-gallery,
.customer-detail-main-image {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.customer-detail-main-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.customer-detail-thumbs {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.customer-detail-thumb {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  overflow: hidden !important;
}

.customer-detail-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* PHP 1.5.0.5.3 - Gallery ảnh sản phẩm kiểu shop chuyên nghiệp */

.customer-detail-card {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #ffd6e4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.08);
  box-sizing: border-box;
}

.customer-detail-gallery {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.customer-detail-main-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #f3d7df;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  box-sizing: border-box;
}

.customer-detail-main-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.customer-detail-image-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb7185;
  font-size: 44px;
  font-weight: 1000;
  background: linear-gradient(135deg, #ffe4ec, #fff7ed);
}

.customer-detail-thumbs {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.customer-detail-thumb {
  flex: 0 0 auto !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  padding: 0 !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  cursor: pointer;
  box-sizing: border-box;
}

.customer-detail-thumb img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.customer-detail-thumb.active {
  border-color: #ec1f6f !important;
  box-shadow: 0 0 0 2px rgba(236, 31, 111, 0.15);
}

.customer-detail-thumb:hover {
  border-color: #f472b6 !important;
}

.customer-detail-info {
  padding: 4px 16px 18px;
  box-sizing: border-box;
}

.customer-detail-category {
  display: inline-flex;
  margin: 0 0 8px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff1f2;
  color: #be185d;
  font-size: 12px;
  font-weight: 900;
}

.customer-detail-info h1 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.3;
}

.customer-detail-price {
  margin-top: 10px;
  color: #db0f5f;
  font-size: 22px;
  font-weight: 1000;
}

.customer-detail-short {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

/* PHP 1.5.0.5.4 - Ảnh đúng tỷ lệ + nút mua cố định */

.customer-detail-main-image {
  background: #ffffff !important;
}

.customer-detail-main-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  background: #ffffff !important;
}

.customer-detail-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #ffffff !important;
}

.customer-detail-actions {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 80;
  width: min(390px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 214, 228, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.customer-detail-buy-btn,
.customer-detail-pay-btn {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
  white-space: nowrap;
}

.customer-detail-buy-btn {
  background: #ec1f6f !important;
  color: #ffffff !important;
}

.customer-detail-pay-btn {
  background: #0f172a;
  color: #ffffff;
}

.customer-detail-cart-btn,
.customer-buy-note {
  display: none !important;
}

.customer-detail-desc {
  margin-bottom: 92px;
}

/* PHP 1.6.0.2 - Thông báo giỏ hàng */

.customer-alert {
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.customer-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.customer-alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* PHP 1.6.0.2.1 - Trang thanh toán / giỏ hàng */

.customer-checkout-head {
  margin-bottom: 14px;
}

.customer-checkout-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
}

.customer-checkout-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.customer-cart-list {
  display: grid;
  gap: 12px;
}

.customer-cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #ffd6e4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.07);
}

.customer-cart-item-image {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff1f2;
  border: 1px solid #ffe1ec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

.customer-cart-item-image span {
  color: #ec1f6f;
  font-weight: 1000;
}

.customer-cart-item-body {
  min-width: 0;
}

.customer-cart-item-body h2 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
}

.customer-cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.customer-cart-item-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff1f2;
  color: #be185d;
  font-size: 12px;
  font-weight: 900;
}

.customer-cart-item-price {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.customer-cart-item-total {
  margin-top: 4px;
  color: #db0f5f;
  font-size: 16px;
  font-weight: 1000;
}

.customer-checkout-summary {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #0f172a;
  color: #ffffff;
}

.customer-checkout-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.customer-checkout-summary span {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

.customer-checkout-summary strong {
  font-size: 16px;
  font-weight: 1000;
}

.customer-checkout-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #ec1f6f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
}

.customer-checkout-summary p {
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

/* PHP 1.6.0.3 - Tăng giảm giỏ hàng + thông tin khách mua */

.customer-cart-qty-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.customer-cart-qty-form button {
  width: 34px;
  height: 34px;
  border: 1px solid #ffd0df;
  border-radius: 999px;
  background: #ffffff;
  color: #be185d;
  font-size: 18px;
  font-weight: 1000;
  cursor: pointer;
}

.customer-cart-qty-form strong {
  min-width: 26px;
  text-align: center;
  color: #0f172a;
  font-size: 15px;
  font-weight: 1000;
}

.customer-cart-qty-form .customer-cart-remove {
  width: auto;
  height: 34px;
  padding: 0 12px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
}

.customer-clear-cart-form {
  margin-top: 12px;
  text-align: right;
}

.customer-clear-cart-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.customer-checkout-form-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #ffd6e4;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.07);
}

.customer-checkout-form-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.3;
}

.customer-checkout-form-card > p {
  margin: 6px 0 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.customer-checkout-form {
  display: grid;
  gap: 12px;
}

.customer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.customer-form-field label,
.customer-love-code-box label {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 1000;
}

.customer-form-field label span {
  color: #e11d48;
}

.customer-form-field input,
.customer-form-field textarea,
.customer-love-code-row input {
  width: 100%;
  border: 1px solid #ffd0df;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.customer-form-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.customer-form-field input:focus,
.customer-form-field textarea:focus,
.customer-love-code-row input:focus {
  border-color: #ec1f6f;
  box-shadow: 0 0 0 3px rgba(236, 31, 111, 0.12);
}

.customer-love-code-box {
  border: 1px dashed #f9a8d4;
  border-radius: 18px;
  padding: 12px;
  background: #fff7fb;
}

.customer-love-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.customer-love-code-row button {
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.customer-love-code-row button:hover {
  transform: translateY(-1px);
}

.customer-love-code-row.is-love-code-ready button,
.customer-love-code-row button.is-love-code-ready {
  background: linear-gradient(135deg, #ec1f6f, #f43f5e);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(236, 31, 111, 0.14), 0 14px 26px rgba(236, 31, 111, 0.28);
  animation: customer-love-code-glow 1.25s ease-in-out infinite alternate;
}

.customer-love-code-row input.has-love-code {
  border-color: #ec1f6f;
  box-shadow: 0 0 0 3px rgba(236, 31, 111, 0.10);
}

.customer-love-code-message {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 900;
}

.customer-love-code-message-success {
  color: #15803d;
}

.customer-love-code-message-error {
  color: #b91c1c;
}

.customer-checkout-summary .customer-discount-negative {
  color: #86efac;
}

@keyframes customer-love-code-glow {
  from {
    box-shadow: 0 0 0 3px rgba(236, 31, 111, 0.14), 0 12px 22px rgba(236, 31, 111, 0.24);
    transform: translateY(0) scale(1);
  }

  to {
    box-shadow: 0 0 0 7px rgba(236, 31, 111, 0.26), 0 18px 34px rgba(236, 31, 111, 0.44);
    transform: translateY(-1px) scale(1.03);
  }
}

.customer-love-code-box p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

@media (max-width: 420px) {
  .customer-form-row {
    grid-template-columns: 1fr;
  }
}

/* PHP 1.6.0.3.1 - Tổng thanh toán xuống đáy + chọn địa chỉ CSV */

.customer-checkout-summary-bottom {
  margin-top: 14px;
  margin-bottom: 18px;
}

.customer-form-field select {
  width: 100%;
  border: 1px solid #ffd0df;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.customer-form-field select:focus {
  border-color: #ec1f6f;
  box-shadow: 0 0 0 3px rgba(236, 31, 111, 0.12);
}

.customer-form-field select:disabled {
  background: #f8fafc;
  color: #94a3b8;
}

.customer-checkout-summary .customer-checkout-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #ec1f6f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
}

.customer-checkout-form-card {
  margin-bottom: 0;
}

.customer-form-hint {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

/* PHP 1.6.0.3.5 - Modal đặt hàng thành công */

.customer-success-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.customer-success-modal {
  width: min(390px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #ffd6e4;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.customer-success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ec1f6f;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 14px 28px rgba(236, 31, 111, 0.28);
}

.customer-success-modal h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.25;
}

.customer-success-thanks {
  margin: 10px 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.customer-success-code {
  margin-bottom: 14px;
  border-radius: 16px;
  padding: 12px;
  background: #fff1f2;
  color: #be185d;
  font-size: 14px;
  font-weight: 900;
}

.customer-success-info {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #ffe1ec;
  text-align: left;
}

.customer-success-info div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #ffe1ec;
}

.customer-success-info div:last-child {
  border-bottom: 0;
}

.customer-success-info span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.customer-success-info strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.customer-success-items {
  margin-top: 14px;
  text-align: left;
}

.customer-success-items h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 15px;
}

.customer-success-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #ffd0df;
}

.customer-success-item span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.customer-success-item small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.customer-success-item strong {
  color: #ec1f6f;
  font-size: 13px;
  font-weight: 1000;
}

.customer-success-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  border-radius: 999px;
  background: #ec1f6f;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 1000;
}

@media (max-width: 420px) {
  .customer-success-modal {
    padding: 18px;
  }

  .customer-success-info div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* =========================
   PHP 1.7.0.5.1 - Giao diện đăng nhập quản trị
========================= */

.login-admin-page {
  min-height: 100vh;
  padding: 32px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(244, 63, 94, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(233, 30, 99, 0.08),
      transparent 34%
    ),
    linear-gradient(90deg, #fff7f9 0%, #ffffff 30%, #ffffff 70%, #fff7f9 100%);
}

.login-admin-box {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.login-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-decoration: none;
}

.login-admin-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f43f5e, #e91e63);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.26);
}

.login-admin-brand strong {
  display: block;
  color: #d4145a;
  font-size: 17px;
  line-height: 1.15;
}

.login-admin-brand small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.login-admin-box h1 {
  margin: 0;
  font-size: 25px;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.login-admin-desc {
  margin: 14px 0 18px;
  color: #66758f;
  line-height: 1.55;
}

.login-admin-box label {
  display: block;
  margin-top: 14px;
  margin-bottom: 7px;
  font-weight: 800;
  color: #0f172a;
}

.login-admin-box input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
}

.login-admin-box input:focus {
  border-color: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.notice-error {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.notice-success {
  border-color: #bbf7d0 !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
}

.login-admin-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-admin-actions a {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.login-admin-db {
  margin-top: 18px;
  color: #334155;
}

@media (max-width: 520px) {
  .login-admin-page {
    align-items: flex-start;
    padding-top: 22px;
  }

  .login-admin-box {
    padding: 22px;
    border-radius: 20px;
  }

  .login-admin-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================
   PHP 1.7.0.5.2 - Giao diện đăng nhập quản trị mới
========================= */

.admin-login-v2-page {
  min-height: 100vh;
  padding: 24px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(244, 63, 94, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 78%,
      rgba(236, 72, 153, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, #fff7fa 0%, #ffffff 46%, #fff1f5 100%);
}

.admin-login-v2-card {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.12),
    0 8px 22px rgba(236, 72, 153, 0.08);
}

.admin-login-v2-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.admin-login-v2-logo {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fb7185, #e91e63);
  color: #ffffff;
  font-size: 23px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(233, 30, 99, 0.28);
}

.admin-login-v2-shop {
  color: #be185d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.admin-login-v2-slogan {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.admin-login-v2-title {
  margin-bottom: 20px;
}

.admin-login-v2-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.admin-login-v2-title p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.admin-login-v2-notice {
  margin-bottom: 15px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  border: 1px solid transparent;
}

.admin-login-v2-notice-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-login-v2-notice-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.admin-login-v2-notice-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.admin-login-v2-form {
  margin-top: 4px;
}

.admin-login-v2-field {
  margin-bottom: 15px;
}

.admin-login-v2-field label {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.admin-login-v2-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  padding: 0 16px;
  color: #0f172a;
  font-size: 15px;
  outline: none;
  transition: 0.18s ease;
}

.admin-login-v2-field input::placeholder {
  color: #94a3b8;
}

.admin-login-v2-field input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.11);
}

.admin-login-v2-row {
  margin: -3px 0 18px;
  display: flex;
  justify-content: flex-end;
}

.admin-login-v2-row a {
  color: #db2777;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.admin-login-v2-row a:hover {
  text-decoration: underline;
}

.admin-login-v2-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f43f5e, #db2777);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(219, 39, 119, 0.25);
}

.admin-login-v2-submit:hover {
  transform: translateY(-1px);
}

.admin-login-v2-bottom {
  margin-top: 20px;
  text-align: center;
}

.admin-login-v2-bottom a {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.admin-login-v2-bottom a:hover {
  color: #db2777;
}

.admin-login-v2-db-error {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 14px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 520px) {
  .admin-login-v2-page {
    align-items: flex-start;
    padding-top: 22px;
  }

  .admin-login-v2-card {
    padding: 24px;
    border-radius: 24px;
  }

  .admin-login-v2-title h1 {
    font-size: 27px;
  }
}

 .customer-love-code-row.is-love-code-ready button,
.customer-love-code-row button.is-love-code-ready,
.customer-love-code-apply.is-love-code-ready {
  background: linear-gradient(135deg, #ec1f6f, #f43f5e) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(236, 31, 111, 0.18), 0 16px 32px rgba(236, 31, 111, 0.38) !important;
  animation: customer-love-code-glow 0.95s ease-in-out infinite alternate;
}

/* PHP 1.11.0.6 — Fix chắc chắn nút Áp dụng đổi đỏ khi có mã gửi thương */
.customer-love-code-row.is-love-code-ready > button.customer-love-code-apply,
.customer-love-code-row button.customer-love-code-apply.is-love-code-ready,
button.customer-love-code-apply.is-love-code-ready,
button[data-love-code-apply].is-love-code-ready {
  background: linear-gradient(135deg, #f43f5e, #ec1f6f) !important;
  color: #ffffff !important;
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.18), 0 14px 30px rgba(244, 63, 94, 0.42) !important;
  opacity: 1 !important;
  filter: none !important;
}


/* PHP 1.12.0 — hiển thị giá giảm theo link mã yêu thương / CTV */
.customer-aff-code-banner {
  margin: 10px 0 0;
  border: 1px solid #fecdd3;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f2, #fff7fb);
  color: #be123c;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  box-shadow: 0 10px 24px rgba(244, 63, 94, .10);
}

.customer-aff-code-banner strong {
  font-size: 13px;
  font-weight: 1000;
}

.customer-aff-code-banner span,
.customer-aff-code-banner em {
  color: #9f1239;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  font-style: normal;
}

.customer-aff-price-original,
.customer-aff-price-sale,
.customer-aff-price-note,
.customer-price-normal {
  display: block;
}

.customer-aff-price-original {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
  text-decoration: line-through;
  line-height: 1.35;
}

.customer-aff-price-sale {
  color: #db0f5f;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.35;
}

.customer-detail-price .customer-aff-price-sale {
  font-size: 25px;
}

.customer-aff-price-note {
  margin-top: 2px;
  color: #be123c;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

/* Làm đẹp giá giảm theo link mã yêu thương / CTV */
.customer-aff-price-box {
  margin-top: 8px !important;
  padding: 12px 14px !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #fff1f2, #fff7fb) !important;
  display: grid !important;
  gap: 7px !important;
  box-shadow: 0 12px 28px rgba(236, 31, 111, 0.08) !important;
}

.customer-aff-price-original,
.customer-aff-price-sale,
.customer-aff-price-note {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.customer-aff-price-original span,
.customer-aff-price-sale span {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.customer-aff-price-original del {
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: line-through !important;
}

.customer-aff-price-sale strong {
  color: #db0f5f !important;
  font-size: 22px !important;
  font-weight: 1000 !important;
  white-space: nowrap !important;
}

.customer-aff-price-note {
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  color: #be123c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.customer-aff-price-note b {
  color: #db0f5f !important;
  font-weight: 1000 !important;
}

.customer-aff-price-note em {
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: #ffe4ec !important;
  color: #be123c !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

/* Trên trang chi tiết sản phẩm */
.customer-detail-price {
  margin-top: 12px !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.customer-detail-price .customer-aff-price-box {
  max-width: 360px !important;
}

.customer-detail-price .customer-aff-price-sale strong {
  font-size: 24px !important;
}

/* Trên thẻ sản phẩm ngoài trang chủ cho gọn hơn */
.customer-product-price .customer-aff-price-box {
  padding: 8px 10px !important;
  border-radius: 14px !important;
  gap: 5px !important;
}

.customer-product-price .customer-aff-price-original span,
.customer-product-price .customer-aff-price-sale span,
.customer-product-price .customer-aff-price-note {
  font-size: 11px !important;
}

.customer-product-price .customer-aff-price-original del {
  font-size: 12px !important;
}

.customer-product-price .customer-aff-price-sale strong {
  font-size: 15px !important;
}

/* Trong giỏ hàng / thanh toán cho đỡ chiếm chỗ */
.customer-cart-item-price .customer-aff-price-box {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

