.hero-section {
  position: relative;
  height: 620px;
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0)
  );
}

.hero-content {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 560px;
  color: var(--color-white);
  z-index: 2;
}

.hero-subtitle {
  font-weight: 700;
  letter-spacing: 2px;
  color: #f1d6ca;
  margin-bottom: 14px;
}

.hero-content h1 {
  font-size: 54px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 17px;
  margin-bottom: 28px;
  color: #f5f5f5;
}

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 340px;
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.06));
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-info {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
}

.category-info h3 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 5px;
}

.category-info p {
  margin-bottom: 0;
  color: #f1f1f1;
}

.brand-story {
  background-color: var(--color-bg);
  padding: 65px 0;
}

.brand-story-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.brand-story-inner span {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 700;
}

.brand-story-inner h2 {
  font-size: 36px;
  margin: 12px 0 18px;
  font-weight: 800;
}

.brand-story-inner p {
  color: var(--color-muted);
  font-size: 17px;
}

/* =========================
   Fabric materials
   ========================= */

.fabric-section {
  background-color: #fffaf0;
  padding: 70px 0 78px;
}

.fabric-heading {
  margin-bottom: 38px;
}

.fabric-heading h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #4a2c2a;
  margin-bottom: 14px;
  white-space: nowrap;
}

.fabric-heading-line {
  width: 78px;
  height: 2px;
  background-color: #4a2c2a;
  margin: 0 auto;
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.fabric-card {
  position: relative;
  height: 230px;
  border: none;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background-color: transparent;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.fabric-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

.fabric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.16);
  z-index: 1;
}

.fabric-card:hover img {
  transform: scale(1.06);
}

.fabric-card span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  min-width: 96px;
  padding: 10px 22px;
  border-radius: 999px;
  background-color: #713030;
  color: var(--color-white);
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

/* Fabric popup */
.fabric-popup {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background-color: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.fabric-popup.active {
  display: flex;
}

.fabric-popup-content {
  position: relative;
  width: min(520px, 100%);
  height: 620px;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--color-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.fabric-popup-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fabric-popup-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
  z-index: 1;
}

.fabric-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fabric-popup-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: var(--color-white);
}

.fabric-popup-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.fabric-popup-info p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
  color: #f5f5f5;
}

.fabric-popup-info ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 0;
}

.fabric-popup-info li {
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 22px;
}

.lookbook-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--color-white);
}

.lookbook-item.big {
  grid-row: span 2;
}

.lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

.lookbook-item:hover img {
  transform: scale(1.06);
}

.lookbook-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.05));
}

.lookbook-item div {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
}

.lookbook-item h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 5px;
}

.lookbook-item p {
  margin-bottom: 0;
  color: #eeeeee;
}

.search-wrapper {
  position: relative;
  flex: 1;
}

.search-wrapper input {
  width: 100%;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  z-index: 2000;
  display: none;
  overflow: hidden;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--color-border);
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover {
  background-color: var(--color-light);
}

.suggest-item img {
  width: 55px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.suggest-info h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.suggest-info p {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0;
}

.suggest-empty {
  padding: 14px;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

.auth-section,
.cart-section,
.checkout-section {
  padding: 70px 0;
  background-color: var(--color-bg);
}

.auth-box,
.cart-box,
.checkout-box,
.order-summary-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.auth-box {
  max-width: 520px;
  margin: 0 auto;
}

.auth-box h2,
.cart-box h2,
.checkout-box h2,
.order-summary-box h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.auth-box p,
.cart-box p,
.checkout-box p {
  color: var(--color-muted);
}

.form-group-custom {
  margin-bottom: 18px;
}

.form-group-custom label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--color-primary);
}

.form-group-custom input,
.form-group-custom textarea,
.form-group-custom select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
}

.form-group-custom input:focus,
.form-group-custom textarea:focus,
.form-group-custom select:focus {
  border-color: var(--color-secondary);
}

.form-error {
  display: block;
  color: var(--color-accent);
  font-size: 13px;
  margin-top: 5px;
  min-height: 18px;
}

.cart-table img {
  width: 75px;
  height: 95px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-total {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-accent);
}

.empty-cart {
  text-align: center;
  color: var(--color-muted);
  padding: 35px 0;
}

.auth-link {
  color: var(--color-secondary);
  font-weight: 700;
}

.main-footer p strong {
  color: var(--color-white);
}

.main-footer .col-lg-3 p {
  margin-bottom: 16px;
}

.main-footer .col-lg-3 a {
  color: #6da5ff;
  font-weight: 600;
}

.main-footer .col-lg-3 a:hover {
  color: var(--color-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  background-color: transparent;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-icon-btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.header-icon-btn:hover {
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.header-search {
  position: relative;
}

.search-box-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  width: 380px;
  display: none;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  z-index: 2500;
}

.search-box-dropdown.active {
  display: flex;
}

.search-box-dropdown .search-wrapper {
  flex: 1;
}

.search-box-dropdown input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}

.search-box-dropdown input:focus {
  border-color: var(--color-secondary);
}

.search-box-dropdown button#btnSearch {
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  padding: 0 18px;
  margin-left: 8px;
  font-weight: 600;
}

.cart-link span {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 11px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  position: relative;
}

.menu-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  background-color: transparent;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-icon-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.menu-icon-btn:hover {
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.side-menu {
  position: absolute;
  top: 120%;
  left: 0;
  width: 260px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-fast);
}

.side-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.side-menu-header h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 0;
}

.side-menu-header button {
  border: none;
  background-color: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-primary);
}

.side-menu-list {
  padding: 10px 0;
}

.side-menu-list > li > a {
  display: block;
  padding: 12px 18px;
  color: var(--color-primary);
  font-weight: 700;
  transition: var(--transition-fast);
}

.side-menu-list > li > a:hover {
  background-color: var(--color-light);
  color: var(--color-secondary);
}

.side-submenu {
  display: none;
  background-color: var(--color-light);
  padding: 6px 0;
}

.side-submenu.active {
  display: block;
}

.side-submenu li a {
  display: block;
  padding: 10px 32px;
  color: var(--color-text);
  font-size: 14px;
  transition: var(--transition-fast);
}

.side-submenu li a:hover {
  color: var(--color-secondary);
  padding-left: 38px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin-right: auto;
  margin-left: 12px;
}

@media screen and (max-width: 768px) {
  .side-menu {
    width: 240px;
  }

  .brand {
    margin-left: 8px;
  }
}

/* =========================
   Best seller slider
   ========================= */

.best-seller-section {
  background-color: var(--color-white);
}

.best-seller-slider {
  width: 100%;
  height: 620px;
  overflow: hidden;
  position: relative;
}

.best-seller-track {
  width: 100%;
  height: 100%;
  display: flex;
  transform: translateX(0);
  transition: transform 0.75s ease;
}

.best-seller-slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  color: var(--color-white);
}

.best-seller-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.best-seller-slide picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: 0.55s ease;
}

.best-seller-slide:hover picture img {
  transform: scale(1.05);
}

.best-seller-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62),
    rgba(0, 0, 0, 0.28),
    rgba(0, 0, 0, 0.05)
  );
  z-index: 1;
}

.best-seller-content {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
  z-index: 2;
}

.best-seller-content span {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f1d6ca;
  margin-bottom: 12px;
}

.best-seller-content h3 {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 12px;
  color: var(--color-white);
}

.best-seller-content p {
  font-size: 20px;
  line-height: 1.6;
  color: #f5f5f5;
  margin-bottom: 28px;
}

.best-seller-content > button {
  border: none;
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 13px 32px;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.best-seller-content > button:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* =========================
   Product category carousel
   ========================= */

.category-carousel-section {
  background-color: var(--color-white);
  padding-bottom: 70px;
}

.category-carousel {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
}

/* Category card base */
.category-carousel-card {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  border: none;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  color: var(--color-white);
  background-color: transparent;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.65s ease,
    width 0.65s ease,
    opacity 0.65s ease,
    filter 0.65s ease;
}

/* Image portrait style */
.category-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: 0.55s ease;
}

.category-carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08));
  z-index: 1;
}

.category-carousel-card:hover img {
  transform: scale(1.04);
}

/* Active center card */
.category-carousel-card.is-active {
  width: 36%;
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translateX(-50%) scale(1);
}

/* Left card */
.category-carousel-card.is-left {
  width: 30%;
  z-index: 2;
  opacity: 0.72;
  filter: brightness(0.78);
  transform: translateX(-126%) scale(0.9);
}

/* Right card */
.category-carousel-card.is-right {
  width: 30%;
  z-index: 2;
  opacity: 0.72;
  filter: brightness(0.78);
  transform: translateX(26%) scale(0.9);
}

/* Hide content on side cards */
.category-carousel-card:not(.is-active) .category-carousel-content {
  opacity: 0;
  pointer-events: none;
}

/* Card content */
.category-carousel-content {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  text-align: left;
  z-index: 2;
  transition: var(--transition-fast);
}

.category-carousel-content span {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f1d6ca;
  margin-bottom: 8px;
}

.category-carousel-content h3 {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--color-white);
  margin-bottom: 18px;
}

.category-carousel-link {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 11px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.category-carousel-link:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* =========================
   Footer
   ========================= */

/* Footer social icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-primary);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 0 !important;
  transition: var(--transition-fast);
}

.footer-social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-social-icon:hover {
  background-color: var(--color-secondary);
  color: var(--color-white) !important;
  transform: translateY(-3px);
}

/* Footer contact */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d5d5d5;
  font-size: 14px;
  line-height: 1.4;
}

.footer-contact-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Footer brand */
.footer-brand h2 {
  margin-bottom: 8px;
}

.footer-slogan {
  color: #f1d6ca;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-brand-img {
  width: 260px;
  height: 95px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

/* Footer links desktop */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* Sau khi bỏ Chính sách, nhóm link footer gọn hơn */
.footer-links .footer-main-link {
  margin-bottom: 0;
}

.footer-category-svg-links {
  margin-top: 2px;
}

/* Main footer links */
.footer-main-link {
  display: inline-block;
  color: var(--color-white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  transition: var(--transition-fast);
}

.footer-main-link:hover {
  color: var(--color-secondary);
  padding-left: 4px;
}

/* Small product links under Sản phẩm */
.footer-product-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 4px;
}

.footer-product-links a {
  display: inline-block;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 400;
  transition: var(--transition-fast);
}

.footer-product-links a:hover {
  color: var(--color-secondary);
  padding-left: 0;
}

/* Footer contact title */
.footer-contact-title {
  margin-bottom: 14px;
}

.products-hero {
  padding: 60px 0 28px;
  background-color: var(--color-bg);
}

.products-hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.products-hero-inner span {
  display: inline-block;
  color: var(--color-secondary);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.products-hero-inner h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 54px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.products-hero-inner p {
  color: var(--color-muted);
  font-size: 16px;
  margin-bottom: 0;
}

/* =========================
   Products category icon filter
   Style nhẹ, sang, hợp shop thời trang
   ========================= */

.products-filter-section {
  padding: 18px 0 16px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.category-icon-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.category-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: transparent;
  border: none;
  padding: 0;
}

.category-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid #cfc7bf;
  background-color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  transition: 0.25s ease;
}

.category-icon-circle img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;

  /* icon đen rõ hơn */
  filter: brightness(0);
  opacity: 1;
  transition: 0.25s ease;
}

/* Hover: nhẹ, không đen nguyên cục */
.category-icon-link:hover .category-icon-circle {
  background-color: #f4f4f2;
  border-color: #9a948d;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.category-icon-link:hover .category-icon-circle img {
  opacity: 1;
}

/* Active: danh mục đang chọn */
.category-icon-link.active .category-icon-circle {
  background-color: #eeeeeb;
  border: 1.5px solid #8f8982;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.category-icon-link.active .category-icon-circle img {
  opacity: 0.95;
  filter: brightness(0);
}

.products-list-section {
  padding: 42px 0 70px;
}

.shop-product-item {
  display: block;
  color: var(--color-primary);
}

.shop-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-light);
}

.shop-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition:
    opacity 0.35s ease,
    transform 0.45s ease;
}

.shop-product-img-main {
  opacity: 1;
  z-index: 1;
}

.shop-product-img-hover {
  opacity: 0;
  z-index: 2;
}

.shop-product-item:hover .shop-product-img-main {
  opacity: 0;
  transform: scale(1.04);
}

.shop-product-item:hover .shop-product-img-hover {
  opacity: 1;
  transform: scale(1.04);
}

.shop-product-info {
  padding: 14px 4px 0;
}

.shop-product-info h3 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-primary);
  margin-bottom: 7px;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-product-info p {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0;
}

.products-empty {
  display: none;
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
  padding: 35px 0;
}
/* =========================
   Product detail page
   ========================= */

.product-detail-page {
  background-color: var(--color-white);
  overflow: visible;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: stretch;
}

/* Left product images */
.product-detail-gallery {
  width: 100%;
  background-color: var(--color-white);
}

.product-detail-image-item {
  width: 100%;
  min-height: calc(100vh - 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
}

.product-detail-image-item img {
  width: 100%;
  height: calc(100vh - 104px);
  object-fit: contain;
  object-position: center center;
  background-color: var(--color-white);
}

/* Right product information */
.product-detail-info {
  border-left: 1px solid var(--color-border);
  background-color: var(--color-white);
}

/* Right side sticky */
.product-detail-sticky {
  position: sticky;
  top: 104px;
  min-height: calc(100vh - 104px);
  padding: 28px 42px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--color-white);
}

/* Main product info */
.product-detail-main {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
}

/* Name and price */
.product-detail-top {
  order: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.product-detail-top h1 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0;
  max-width: 72%;
}

.product-detail-top span {
  color: var(--color-primary);
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.product-detail-line {
  order: 2;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin: 14px 0 16px;
}

/* Product detail */
.product-detail-accordion {
  order: 4;
  border-top: none;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 14px;
}

.detail-toggle {
  width: 100%;
  border: none;
  background-color: transparent;
  color: var(--color-primary);
  padding: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  text-align: left;
  cursor: default;
}

.detail-toggle-icon {
  display: none;
  font-size: 22px;
  line-height: 1;
}

.detail-panel {
  padding: 0 0 12px;
}

.detail-panel ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 0;
}

.detail-panel li {
  color: var(--color-primary);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 3px;
}

/* Size selector */
.product-size-box {
  order: 3;
  margin-bottom: 18px;
}

.product-size-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.product-size-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary);
  min-width: auto;
  margin-right: 0;
}

.size-options {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.size-option {
  width: auto;
  height: auto;
  border: none;
  background-color: transparent;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 800;
  padding: 4px 2px;
  line-height: 1;
  transition: var(--transition-fast);
}

.size-option:hover,
.size-option.active {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 5px;
  background-color: transparent;
}

.size-message {
  color: var(--color-muted);
  font-size: 13px;
  margin: 9px 0 0;
}

/* Size guide link */
.size-guide-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.size-guide-btn {
  border: none;
  background-color: transparent;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-guide-btn:hover {
  color: var(--color-secondary);
}

/* =========================
   Size guide modal
   Ảnh bảng size 900x1200
   Popup gọn kiểu shop thời trang
   ========================= */

.size-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 6500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background-color: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(2px);
}

.size-guide-modal.active {
  display: flex;
}

.size-guide-modal-box {
  position: relative;
  width: min(430px, calc(100vw - 56px));
  max-height: calc(100dvh - 56px);
  padding: 0;
  background-color: transparent;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.size-guide-modal-img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 56px);
  display: block;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  background-color: var(--color-white);
}

/* Nút đóng nổi ra ngoài ảnh cho gọn */
.size-guide-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.size-guide-modal-close:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Action buttons */
.product-detail-actions {
  order: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.product-action-icon {
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-primary);
  background-color: var(--color-white);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.product-action-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.product-action-icon:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.product-buy-btn {
  flex: 1;
  height: 50px;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 800;
  transition: var(--transition-fast);
}

.product-buy-btn:hover {
  background-color: var(--color-secondary);
}

/* =========================
   Recommend products
   ========================= */

.recommend-box {
  width: 100%;
  max-width: 620px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.recommend-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.recommend-list {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.recommend-list::-webkit-scrollbar {
  display: none;
}

.recommend-item {
  flex: 0 0 135px;
  width: 135px;
  color: var(--color-primary);
}

.recommend-item img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  object-position: center top;
  background-color: var(--color-light);
}

.recommend-item h4 {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin: 7px 0 3px;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-item p {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
}
/* Hero banner responsive */
.hero-banner-responsive {
  position: relative;
  height: calc(100vh - 24px);
  min-height: 680px;
  overflow: hidden;
  background-color: var(--color-white);
}

.hero-banner-responsive picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner-responsive picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-banner-responsive::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.02));
  z-index: 1;
}

.hero-banner-responsive .hero-content {
  position: absolute;
  left: 50%;
  bottom: 58px;
  top: auto;
  transform: translateX(-50%);
  z-index: 2;
  max-width: none;
  width: auto;
  text-align: center;
}

/* =========================
   Hero slider
   ========================= */

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-track {
  width: 100%;
  height: 100%;
  display: flex;
  transform: translateX(0);
  transition: transform 0.75s ease;
}

.hero-slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* =========================
   Cart side modal
   ========================= */

.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.32);
  z-index: 5000;
  display: none;
}

.cart-modal-overlay.active {
  display: block;
}

.cart-side-modal {
  position: fixed;
  top: 0;
  right: -430px;
  width: 430px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 5001;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
}

.cart-side-modal.active {
  right: 0;
}

/* Header */
.cart-modal-header {
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cart-modal-header h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* Clear button */
.cart-clear-btn {
  width: fit-content;
  border: none;
  background-color: transparent;
  color: var(--color-muted);
  font-size: 14px;
  margin: 22px 0 14px 16px;
  padding: 0;
  cursor: pointer;
}

/* Cart list */
.cart-modal-list {
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
}

.cart-modal-item {
  display: grid;
  grid-template-columns: 95px 1fr;
  border-bottom: 1px solid var(--color-border);
}

.cart-modal-img {
  border-right: 1px solid var(--color-border);
  padding: 8px;
}

.cart-modal-img img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  object-position: center top;
}

.cart-modal-info {
  display: flex;
  flex-direction: column;
}

.cart-modal-name-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--color-border);
}

.cart-modal-name-price h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 0;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-modal-product-text {
  min-width: 0;
}

.cart-modal-product-text p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 4px 0 0;
}

.cart-modal-name-price span {
  font-size: 14px;
  color: var(--color-muted);
  white-space: nowrap;
}

.cart-modal-quantity {
  margin-top: auto;
  height: 36px;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
}

.cart-modal-quantity button {
  height: 100%;
  border: none;
  background-color: transparent;
  color: var(--color-primary);
  font-size: 20px;
  cursor: pointer;
}

.cart-modal-quantity span {
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

/* Bottom */
.cart-modal-bottom {
  border-top: 1px solid var(--color-border);
}

.cart-modal-total {
  height: 74px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-modal-total span {
  font-size: 14px;
  color: var(--color-primary);
}

.cart-modal-total strong {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 500;
}

.cart-modal-checkout {
  width: 100%;
  height: 58px;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cart-modal-checkout:hover {
  background-color: var(--color-secondary);
}

/* Empty cart */
.cart-modal-empty {
  padding: 30px 16px;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .cart-side-modal {
    width: 88%;
    right: -88%;
  }

  .cart-modal-item {
    grid-template-columns: 88px 1fr;
  }

  .cart-modal-img img {
    height: 118px;
  }

  .cart-modal-name-price h4 {
    font-size: 13px;
  }

  .cart-modal-name-price span {
    font-size: 13px;
  }
}
/* =========================
   Checkout page - LSoul style
   ========================= */

.checkout-page {
  background-color: var(--color-white);
  padding: 70px 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 70px;
  align-items: start;
}

/* Left form */
.checkout-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.checkout-title-row h2,
.checkout-discount h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
}

.checkout-title-row p {
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 0;
}

.checkout-title-row a {
  color: var(--color-muted);
}

.checkout-field {
  margin-bottom: 14px;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
  width: 100%;
  border: none;
  background-color: #f7f7f7;
  color: var(--color-primary);
  padding: 18px 20px;
  font-size: 14px;
  outline: none;
}

.checkout-field textarea {
  resize: none;
}

.checkout-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 26px;
  color: var(--color-primary);
  font-size: 14px;
}

.checkout-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.checkout-submit-btn {
  width: 100%;
  height: 56px;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 800;
  margin-top: 10px;
  transition: var(--transition-fast);
}

.checkout-submit-btn:hover {
  background-color: var(--color-secondary);
}

/* Right summary */
.checkout-right {
  position: sticky;
  top: 40px;
}

.checkout-summary {
  border-top: 1px solid var(--color-border);
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.checkout-summary-img img {
  width: 64px;
  height: 92px;
  object-fit: cover;
  object-position: center top;
}

.checkout-summary-info {
  min-width: 0;
}

.checkout-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.checkout-summary-top h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 8px;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkout-summary-top strong {
  font-size: 14px;
  color: var(--color-primary);
  white-space: nowrap;
}

.checkout-summary-info p {
  font-size: 13px;
  color: var(--color-muted);
  text-align: right;
  margin-bottom: 4px;
}

.checkout-discount {
  margin-top: 34px;
}

.checkout-discount h3 {
  margin-bottom: 18px;
}

.checkout-discount-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
}

.checkout-discount-row input {
  border: none;
  background-color: #f7f7f7;
  padding: 18px 20px;
  outline: none;
  font-size: 14px;
}

.checkout-discount-row button {
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 800;
}

.checkout-money {
  margin-top: 28px;
  border-top: 1px solid var(--color-border);
}

.checkout-money-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 14px;
}

.checkout-total-row {
  border-bottom: none;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 800;
}

.checkout-total-row strong {
  font-size: 18px;
}

.checkout-empty {
  padding: 26px 0;
  color: var(--color-muted);
  font-size: 14px;
}

.checkout-empty a {
  color: var(--color-primary);
  font-weight: 800;
}

/* Checkout mobile */
@media screen and (max-width: 768px) {
  .checkout-page {
    padding: 36px 0;
  }

  .checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .checkout-left {
    order: 2;
  }

  .checkout-right {
    order: 1;
    position: static;
  }

  .checkout-title-row {
    display: block;
  }

  .checkout-title-row h2 {
    margin-bottom: 8px;
  }

  .checkout-two-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-discount-row {
    grid-template-columns: 1fr;
  }

  .checkout-discount-row button {
    height: 50px;
  }
}
/* =========================
   Checkout shipping and payment
   ========================= */

.checkout-shipping-method {
  margin-top: 30px;
}

.checkout-shipping-method h2,
.checkout-payment-method h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.shipping-method-box {
  border: 1px solid #2f5df5;
  border-radius: 10px;
  background-color: #f4f6ff;
  padding: 18px 20px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shipping-method-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.shipping-method-box p {
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 0;
}

.shipping-method-box strong {
  font-size: 16px;
  color: var(--color-primary);
  white-space: nowrap;
}

.checkout-payment-method {
  margin-top: 36px;
}

.checkout-payment-method > p {
  color: var(--color-muted);
  margin-bottom: 18px;
}

.payment-option {
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-white);
}

.payment-option + .payment-option {
  border-top: none;
}

.payment-option.active {
  border-color: #2f5df5;
  background-color: #f4f6ff;
}

.payment-option-top {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payment-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-left strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.45;
}

.payment-radio {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background-color: var(--color-white);
  position: relative;
  flex: 0 0 auto;
}

.payment-option.active .payment-radio {
  border-color: #2f5df5;
  background-color: #2f5df5;
}

.payment-option.active .payment-radio::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-white);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.payment-icons span {
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-white);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
}

.payment-option-desc {
  display: none;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background-color: #f7f7f7;
  color: var(--color-primary);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.payment-option.active .payment-option-desc {
  display: block;
}
/* =========================
   Simple auth page
   ========================= */

.auth-simple-page {
  height: 100vh;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 34px 16px 24px;
}

.auth-simple-logo {
  margin-top: 4px;
  margin-bottom: clamp(92px, 15vh, 145px);
}

.auth-simple-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-simple-logo img {
  width: 170px;
  height: auto;
  object-fit: contain;
}

.auth-simple-box {
  width: 100%;
  max-width: 430px;
}

.auth-simple-box h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.auth-simple-box > p {
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.auth-social-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 24px;
}

.auth-social-btn {
  width: 100%;
  height: 52px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-social-btn:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.auth-google {
  color: var(--color-primary);
}

.google-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.auth-divider span {
  height: 1px;
  background-color: var(--color-border);
}

.auth-divider p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.auth-email-box {
  height: 58px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: var(--transition-fast);
}

.auth-email-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.auth-email-box input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 15px;
  color: var(--color-primary);
}

.auth-email-box button {
  width: 58px;
  height: 100%;
  border: none;
  background-color: transparent;
  color: var(--color-primary);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  color: var(--color-primary);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.auth-check-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex: 0 0 auto;
}

.auth-note {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 24px;
  text-align: center;
}

.auth-note a {
  color: var(--color-muted);
  text-decoration: underline;
}

.auth-privacy {
  position: absolute;
  bottom: 18px;
  color: #2563eb;
  font-size: 14px;
}

.auth-privacy:hover {
  color: var(--color-primary);
}
/* =========================
   Home slider controls
   Dùng chung cho Hero + Best Seller
   ========================= */

.slider-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 14px;
  position: relative;
  z-index: 5;
}

.slider-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.86);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--color-white);
  transform: scale(1.25);
  opacity: 1;
}

/* Mobile chỉ cần dots + vuốt, ẩn mũi tên cho gọn */
@media screen and (max-width: 768px) {
  .slider-control {
    margin-top: 10px;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dot {
    width: 7px;
    height: 7px;
  }

  .hero-slider-control {
    justify-content: center;
  }

  .best-seller-slider-control {
    justify-content: flex-start;
  }
}

/* =========================
   Product detail add cart animation
   Hiệu ứng quăng sản phẩm vào icon giỏ hàng
   ========================= */

.fly-cart-img {
  position: fixed;
  z-index: 9999;
  width: 80px;
  height: 100px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.75s ease,
    opacity 0.75s ease;
}

.cart-bump {
  animation: cartBump 0.35s ease;
}

@keyframes cartBump {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.22);
  }

  100% {
    transform: scale(1);
  }
}

/* Modal mua ngay: chỉ hiện sản phẩm hiện tại */
.buy-now-modal .cart-clear-btn {
  display: none;
}

/* =========================
   Cart modal summary
   ========================= */

.cart-modal-summary-line {
  padding: 0 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

.cart-modal-summary-line strong {
  font-weight: 700;
}

.buy-now-quantity-text {
  margin-top: auto;
  height: 36px;
  border-top: 1px solid var(--color-border);
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: var(--color-muted);
  font-size: 14px;
}
/* =========================
   Checkout drawer modal
   Thanh toán dạng panel trượt từ bên phải
   ========================= */

.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  background-color: rgba(0, 0, 0, 0.42);
}

.checkout-modal-overlay.active {
  display: block;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 6001;
  display: none;
  justify-content: flex-end;
  pointer-events: none;
}

.checkout-modal.active {
  display: flex;
}

.checkout-modal-panel {
  width: 460px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--color-white);
  border-left: 1px solid var(--color-border);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  pointer-events: auto;

  display: flex;
  flex-direction: column;
}

.checkout-modal.active .checkout-modal-panel {
  transform: translateX(0);
}

.checkout-modal-header {
  height: auto;
  min-height: 70px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-white);

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.checkout-modal-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.checkout-modal-header p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 0;
}

.checkout-modal-header button {
  border: none;
  background-color: transparent;
  color: var(--color-muted);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  padding-top: 3px;
}

.checkout-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.checkout-modal-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

/* Cho tóm tắt đơn hàng lên trước */
.checkout-modal .checkout-right {
  order: 1;
  position: static;
  width: 100%;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid var(--color-border);
  background-color: #fafafa;
}

.checkout-modal .checkout-left {
  order: 2;
  width: 100%;
  box-sizing: border-box;
}

/* Trong drawer không cần dòng đăng nhập */
.checkout-modal .checkout-title-row {
  display: block;
  margin-bottom: 14px;
}

.checkout-modal .checkout-title-row h2,
.checkout-modal .checkout-discount h3,
.checkout-modal .checkout-shipping-method h2,
.checkout-modal .checkout-payment-method h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-primary);
}

.checkout-modal .checkout-title-row p {
  display: none;
}

.checkout-modal .checkout-field {
  margin-bottom: 10px;
}

.checkout-modal .checkout-field input {
  padding: 14px 15px;
  font-size: 14px;
}

/* Tóm tắt sản phẩm gọn hơn */
.checkout-modal .checkout-summary {
  border-top: none;
}

.checkout-modal .checkout-summary-item {
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px 0;
}

.checkout-modal .checkout-summary-img img {
  width: 52px;
  height: 74px;
}

.checkout-modal .checkout-summary-top h4 {
  font-size: 13px;
  line-height: 1.35;
}

.checkout-modal .checkout-summary-top strong {
  font-size: 13px;
}

.checkout-modal .checkout-summary-info p {
  font-size: 12px;
}

/* Mã giảm giá trong checkout modal */
.checkout-modal .checkout-discount {
  display: block;
  margin-top: 18px;
  margin-bottom: 18px;
}

.checkout-modal .checkout-discount h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.checkout-modal .checkout-discount-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

.checkout-modal .checkout-discount-row input {
  width: 100%;
  border: none;
  background-color: #f7f7f7;
  color: var(--color-primary);
  padding: 14px 15px;
  font-size: 14px;
  outline: none;
}

.checkout-modal .checkout-discount-row button {
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-modal .checkout-discount-row button:hover {
  background-color: var(--color-secondary);
}

.checkout-modal .checkout-money {
  margin-top: 12px;
}

.checkout-modal .checkout-money-row {
  font-size: 13px;
  padding: 8px 0;
}

.checkout-modal .checkout-total-row {
  font-size: 17px;
}

.checkout-modal .checkout-total-row strong {
  font-size: 18px;
  color: var(--color-accent);
}

/* Vận chuyển */
.checkout-modal .checkout-shipping-method {
  margin-top: 18px;
}

.checkout-modal .shipping-method-box {
  padding: 14px;
  border-radius: 8px;
}

.checkout-modal .shipping-method-box h4 {
  font-size: 14px;
}

.checkout-modal .shipping-method-box p {
  font-size: 13px;
}

.checkout-modal .shipping-method-box strong {
  font-size: 13px;
}

/* Thanh toán QR */
.checkout-modal .checkout-payment-method {
  margin-top: 22px;
}

.checkout-modal .checkout-payment-method > p {
  font-size: 13px;
  margin-bottom: 12px;
}

.checkout-modal .payment-option-top {
  padding: 13px 14px;
}

.checkout-modal .payment-left strong {
  font-size: 14px;
}

.checkout-modal .payment-icons span {
  min-width: 34px;
  height: 26px;
  font-size: 11px;
}

.checkout-modal .payment-option-desc {
  padding: 12px 14px;
  font-size: 13px;
}

/* QR box gọn */
.checkout-qr-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--color-border);
  background-color: #fafafa;

  display: flex;
  align-items: center;
  gap: 14px;
}

.checkout-qr-fake {
  position: relative;
  width: 118px;
  height: 118px;
  min-width: 118px;
  background:
    linear-gradient(90deg, #111 7px, transparent 7px) 0 0 / 16px 16px,
    linear-gradient(#111 7px, transparent 7px) 0 0 / 16px 16px,
    #ffffff;
  border: 8px solid #ffffff;
  outline: 1px solid var(--color-border);

  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-qr-fake strong {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 900;

  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: #111;
  border: 5px solid #ffffff;
  outline: 4px solid #111;
}

.qr-top-left {
  top: 8px;
  left: 8px;
}

.qr-top-right {
  top: 8px;
  right: 8px;
}

.qr-bottom-left {
  left: 8px;
  bottom: 8px;
}

.checkout-qr-info h4 {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 5px;
}

.checkout-qr-info p {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.checkout-qr-amount {
  color: var(--color-primary) !important;
  margin-top: 6px;
}

.checkout-qr-amount strong {
  color: var(--color-accent);
  font-size: 14px;
}

/* Nút đặt hàng dính dưới cho dễ bấm */
.checkout-modal .checkout-submit-btn {
  position: sticky;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 54px;
  margin-top: 18px;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 800;
}

.checkout-modal .checkout-submit-btn:hover {
  background-color: var(--color-secondary);
}

/* Success */
.checkout-success-box {
  display: none;
  max-width: 360px;
  margin: 70px auto;
  padding: 0 12px;
  text-align: center;
  color: var(--color-primary);
}

.checkout-success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: #e7f7eb;
  color: #1f8f3a;
  font-size: 38px;
  font-weight: 900;

  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-success-box h3 {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 10px;
}

.checkout-success-box p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.checkout-success-total {
  color: var(--color-primary) !important;
  font-weight: 700;
}

.checkout-success-total strong {
  color: var(--color-accent);
}

#btnCheckoutSuccessClose {
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  height: 48px;
  padding: 0 24px;
  font-weight: 800;
  margin-top: 12px;
}

#btnCheckoutSuccessClose:hover {
  background-color: var(--color-secondary);
}

/* =========================
   Product detail image zoom desktop
   Click ảnh để zoom, rê chuột để xem chi tiết
   ========================= */

@media screen and (min-width: 993px) {
  .product-detail-image-item {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
  }

  .product-detail-image-item img {
    transition: transform 0.18s ease;
    transform-origin: center center;
    will-change: transform;
  }

  .product-detail-image-item.is-zoomed {
    cursor: zoom-out;
  }

  .product-detail-image-item.is-zoomed img {
    transform: scale(2.2);
  }
}
/* =========================
   Home hero controls - Style 1
   Mũi tên gần dots, gọn và nhẹ hơn
   ========================= */

/* Đưa cụm điều khiển xuống sát cạnh dưới banner */
.hero-banner-responsive .hero-content {
  left: 0;
  right: 0;
  bottom: 14px;
  top: auto;
  width: 100%;
  max-width: none;
  transform: none;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

/* Cụm mũi tên + dots */
.hero-slider-control {
  margin-top: 0;
  gap: 16px;
  pointer-events: auto;
}

/* Mũi tên mảnh, không có vòng tròn */
.hero-slider-control .slider-arrow {
  width: 46px;
  height: 46px;

  border: none;
  border-radius: 0;
  background-color: transparent;

  color: rgba(255, 255, 255, 0.48);
  font-family: "Cormorant Garamond", serif;
  font-size: 58px;
  font-weight: 300;
  line-height: 1;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-slider-control .slider-arrow:hover {
  border: none;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.82);
  transform: none;
}

/* Dots nằm giữa */
.hero-slider-control .slider-dots {
  gap: 9px;
}

.hero-slider-control .slider-dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: transparent;
  opacity: 0.85;
}

.hero-slider-control .slider-dot.active {
  background-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.25);
  opacity: 1;
}
/* =========================
   Best seller controls
   Dots + mũi tên đặt sát cạnh dưới banner giống Hero
   ========================= */

/* Best Seller slider là khung cha để đặt controls */
.best-seller-slider {
  position: relative;
}

/* Cụm mũi tên + dots của Best Seller */
.best-seller-slider > .best-seller-slider-control {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 5;

  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  pointer-events: auto;
}

/* Mũi tên Best Seller - kiểu 1: mảnh, nhẹ, không vòng tròn */
.best-seller-slider > .best-seller-slider-control .slider-arrow {
  width: 46px;
  height: 46px;

  border: none;
  border-radius: 0;
  background-color: transparent;

  color: rgba(255, 255, 255, 0.48);
  font-family: "Cormorant Garamond", serif;
  font-size: 58px;
  font-weight: 300;
  line-height: 1;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: var(--transition-fast);
}

.best-seller-slider > .best-seller-slider-control .slider-arrow:hover {
  border: none;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.82);
  transform: none;
}

/* Dots Best Seller */
.best-seller-slider > .best-seller-slider-control .slider-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.best-seller-slider > .best-seller-slider-control .slider-dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: transparent;
  opacity: 0.85;
}

.best-seller-slider > .best-seller-slider-control .slider-dot.active {
  background-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.25);
  opacity: 1;
}

/* =========================
   Home buttons compact
   Thu nhỏ nút Xem chi tiết / Xem thêm cho gọn trên ảnh
   ========================= */

/* Nút Xem chi tiết trong Best Seller */
.best-seller-content > button {
  width: auto;
  min-width: 0;
  height: auto;

  padding: 8px 18px;
  border-radius: 999px;

  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

/* Nút Xem thêm trong Product Category Carousel */
.category-carousel-link {
  width: fit-content;
  min-width: 0;

  padding: 8px 18px;
  border-radius: 999px;

  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}
/* =========================
   Footer category SVG icons
   Dùng ảnh SVG cho Bộ / Váy / Áo, không hiển thị chữ
   ========================= */

.footer-category-svg-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -2px;
}

/* Icon danh mục trong footer: kích thước tương đương icon liên hệ */
.footer-category-svg-link {
  width: 42px;
  height: 42px;
  margin-bottom: 0 !important;
  border-radius: 50%;
  background-color: var(--color-white);

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  transition: var(--transition-fast);
}

/* Ảnh SVG bên trong */
.footer-category-svg-link img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

/* Hiệu ứng hover giống nhóm icon liên hệ */
.footer-category-svg-link:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

/* Nếu SVG là màu đen, hover sẽ làm icon nổi hơn */
.footer-category-svg-link:hover img {
  filter: brightness(0) invert(1);
}
/* =========================
   Home extra banners
   Video ngang, banner ngang, banner dọc giữa Hero và Best Seller
   ========================= */

.home-extra-banner {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-white);
}

/* Banner ngang: ảnh 3780x1890, tỉ lệ 2:1 */
.home-horizontal-banner {
  aspect-ratio: 2 / 1;
}

.home-horizontal-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* Banner dọc: full ngang giống mobile, không bị bó nhỏ ở desktop */
.home-vertical-banner {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: var(--color-white);
  line-height: 0;
}

.home-vertical-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}
/* =========================
   Home video banner
   ========================= */

.home-video-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: var(--color-white);
  line-height: 0;

  /* Video chỉ đóng vai trò banner, không tương tác */
  pointer-events: none;
  user-select: none;
}

.home-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background-color: var(--color-white);

  /* Không cho click/chạm/kéo video */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Ẩn tối đa controls mặc định của trình duyệt mobile */
.home-video::-webkit-media-controls {
  display: none !important;
}

.home-video::-webkit-media-controls-panel {
  display: none !important;
}

.home-video::-webkit-media-controls-play-button {
  display: none !important;
}

/* =========================
   Auth pages final layout
   Dùng cho login.html và verify-email.html
   ========================= */

.auth-page-body {
  overflow: hidden;
}

.auth-page-body .auth-simple-page {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;

  padding: 32px 16px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-page-body .auth-simple-logo {
  margin-top: 0;
  margin-bottom: clamp(78px, 13vh, 125px);
}

.auth-page-body .auth-simple-logo img {
  width: 160px;
}

.auth-page-body .auth-simple-box {
  width: 100%;
  max-width: 430px;
}

.auth-page-body .auth-social-row {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 22px;
}

.auth-page-body .auth-social-btn {
  width: 100%;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page-body .google-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.auth-page-body .auth-divider {
  margin-bottom: 22px;
}

.auth-page-body .auth-email-box {
  height: 58px;
}

.auth-page-body .auth-check-row {
  margin-top: 18px;
}

.auth-page-body .auth-note {
  margin-top: 24px;
  margin-bottom: 0;

  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.auth-page-body .auth-note a {
  white-space: nowrap;
}

.auth-page-body .auth-privacy {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);

  font-size: 14px;
  color: #2563eb;
  white-space: nowrap;
}
/* =========================
   Verify email page
   ========================= */

.verify-email-box {
  max-width: 430px;
}

.verify-email-desc {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.verify-email-desc span {
  color: var(--color-muted);
}

.verify-email-desc a {
  color: #2563eb;
  margin-left: 10px;
  font-weight: 500;
}

.otp-input-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.otp-input {
  width: 100%;
  height: 64px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  outline: none;
  transition: var(--transition-fast);
}

.otp-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.verify-submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 22px;

  border: none;
  border-radius: 8px;

  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;

  font-size: 15px;
  font-weight: 800;
  line-height: 1;

  display: flex !important;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: var(--transition-fast);
}

.verify-submit-btn:hover {
  background-color: var(--color-secondary) !important;
}

.verify-submit-btn:active {
  transform: scale(0.98);
}

.resend-code-btn {
  display: block;
  margin: 18px auto 0;

  border: none;
  background-color: transparent;

  color: #2563eb;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: var(--transition-fast);
}

.resend-code-btn:hover {
  text-decoration: underline;
}
/* =========================
   Customer profile page
   ========================= */

.profile-page-body {
  overflow-x: hidden;
  overflow-y: auto;
}
.profile-page {
  min-height: 100dvh;
  background-color: var(--color-white);
  color: var(--color-primary);
  overflow-x: hidden;
}

.profile-container {
  width: min(1120px, calc(100% - 36px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px 0 18px;

  display: flex;
  flex-direction: column;
}

.profile-logo {
  margin-bottom: 24px;
}

.profile-logo a {
  display: inline-flex;
  align-items: center;
}

.profile-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.profile-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 70px;
  align-items: flex-start;
}

.profile-sidebar {
  padding-top: 68px;
}

.profile-sidebar-link {
  display: block;
  color: var(--color-muted);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-sidebar-link.active {
  color: var(--color-primary);
  font-weight: 800;
}

.profile-content {
  max-width: 680px;
}

.profile-top,
.profile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-top h1,
.profile-section-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
}

.profile-outline-btn {
  height: 40px;
  padding: 0 17px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.profile-outline-btn:hover {
  border-color: var(--color-primary);
}

.profile-card {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.04);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 0 18px;
}

.profile-info-card {
  margin-bottom: 28px;
}

.profile-card > span {
  color: var(--color-muted);
  font-size: 14px;
}

.profile-card strong {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.profile-empty-box {
  min-height: 58px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: #f7f7f7;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 18px;
  margin-bottom: 28px;
}

.profile-empty-box span {
  color: var(--color-muted);
  font-size: 18px;
}

.profile-empty-box p {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 0;
}

.marketing-title {
  margin-bottom: 14px;
}
.profile-marketing-card {
  margin-bottom: 28px;
}

.profile-marketing-label {
  color: var(--color-muted);
  font-size: 14px;
}

.profile-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  display: inline-block;
  margin-bottom: 0;
  cursor: pointer;
  overflow: hidden;
  font-size: 0;
}

.profile-switch input {
  display: none;
}

.profile-switch-slider {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 999px;
  background-color: #d6d6d6;
  transition: 0.25s ease;

  font-size: 0 !important;
  color: transparent !important;
  line-height: 0;
  overflow: hidden;
}

.profile-switch-slider::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-switch input:checked + .profile-switch-slider {
  background-color: #713030;
}

.profile-switch input:checked + .profile-switch-slider::after {
  transform: translateX(20px);
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-logout-btn {
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.profile-logout-btn:hover {
  border-color: var(--color-primary);
}

.profile-logout-all-btn {
  border: none;
  background-color: transparent;
  color: #2563eb;
  font-size: 14px;
  cursor: pointer;
}

.profile-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.profile-footer a {
  color: #2563eb;
  font-size: 13px;
  text-decoration: underline;
}
/* =========================
   Profile edit modal
   ========================= */

.profile-phone-card {
  margin-bottom: 28px;
}

.profile-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background-color: rgba(0, 0, 0, 0.5);
}

.profile-modal-overlay.active {
  display: flex;
}

.profile-modal {
  width: min(620px, 100%);
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  padding: 24px;
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.profile-modal-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
}

.profile-modal-header button {
  border: none;
  background-color: transparent;
  color: var(--color-muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.profile-modal-field {
  margin-bottom: 14px;
}

.profile-modal-field label {
  display: block;
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-modal-field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  color: var(--color-primary);
}

.profile-modal-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.profile-modal-field input:disabled {
  background-color: #f7f7f7;
  color: var(--color-muted);
}

.profile-modal-field small {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 6px;
}

.profile-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.profile-cancel-btn,
.profile-save-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.profile-cancel-btn {
  border: none;
  background-color: transparent;
  color: #2563eb;
}

.profile-save-btn {
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.profile-save-btn:hover {
  background-color: var(--color-secondary);
}
/* =========================
   Profile address section
   ========================= */
.profile-address-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.04);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.profile-address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.profile-address-card-header strong {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 800;
}

.address-default-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.profile-address-card p {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.profile-address-card p:last-child {
  margin-bottom: 0;
}

.address-modal {
  max-width: 680px;
}

.address-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.address-default-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
}

.address-default-row input {
  width: 18px;
  height: 18px;
}
/* =========================
   Address action buttons
   ========================= */

.address-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.address-action-btn {
  border: none;
  background-color: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.address-action-btn:hover {
  text-decoration: underline;
}

.address-delete-btn {
  color: #dc2626;
}
/* =========================
   Profile panels and orders
   ========================= */

.profile-sidebar-link {
  border: none;
  background-color: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.profile-panel {
  display: none;
}

.profile-panel.active {
  display: block;
}

.profile-order-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.04);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.profile-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.profile-order-top strong {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 800;
}

.profile-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-order-card p {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 5px;
}

.profile-order-card p:last-child {
  margin-bottom: 0;
}

.profile-order-total {
  color: var(--color-primary) !important;
  font-weight: 800;
}
/* =========================
   Order detail in profile
   ========================= */

.order-detail-btn {
  border: none;
  background-color: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
}

.order-detail-btn:hover {
  text-decoration: underline;
}

.order-detail-box {
  display: none;
  margin-top: 14px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

.order-detail-box.active {
  display: block;
}

.order-detail-content h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.order-product-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.order-product-row:last-child {
  border-bottom: none;
}

.order-product-row strong {
  font-size: 14px;
  font-weight: 800;
}

.order-product-row p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-muted);
}

.order-product-row span {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
/* =========================
   Product size stock state
   ========================= */

.size-option.disabled,
.size-option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.product-action-icon:disabled,
.product-buy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* =========================
   Cancel order button
   ========================= */

.order-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.order-cancel-btn {
  border: none;
  background-color: transparent;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.order-cancel-btn:hover {
  text-decoration: underline;
}
.order-paid-note {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #8a5a00;
  background: #fff7df;
  border: 1px solid #ffe1a3;
  border-radius: 999px;
  padding: 7px 12px;
}
/* =========================
   Order status colors
   ========================= */

.profile-order-status.status-pending {
  background-color: #eef4ff;
  color: #2563eb;
}

.profile-order-status.status-confirmed {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.profile-order-status.status-shipping {
  background-color: #fff7ed;
  color: #ea580c;
}

.profile-order-status.status-completed {
  background-color: #ecfdf5;
  color: #059669;
}

.profile-order-status.status-cancelled {
  background-color: #fef2f2;
  color: #dc2626;
}

.profile-order-status.status-default {
  background-color: #f3f4f6;
  color: #4b5563;
}
/* =========================
   Order filter
   ========================= */

.order-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.order-filter-btn {
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.order-filter-btn:hover,
.order-filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
/* =========================
   Checkout payment result screen
   Màn hình QR sau khi tạo đơn
   ========================= */

.checkout-payment-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 22px 30px;
  color: var(--color-primary);
}

.checkout-payment-box > h3 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 10px;
}

.checkout-payment-box > p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.checkout-payment-box .checkout-qr-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--color-border);
  background-color: #fafafa;

  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-payment-qr-col {
  width: 100%;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;
}

#checkoutPaymentQrImage {
  width: 400px;
  max-width: 100%;
  height: auto;
  display: block;
}

.checkout-payment-qr-empty {
  display: none;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.checkout-payment-box .checkout-qr-info h4 {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.checkout-payment-box .checkout-qr-info p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 9px;
}

.checkout-payment-box .checkout-qr-info strong {
  color: var(--color-primary);
  font-weight: 800;
  word-break: break-word;
}

.checkout-payment-waiting {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

#btnCheckoutPaymentClose {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#btnCheckoutPaymentClose:hover {
  background-color: var(--color-secondary);
}
.checkout-payment-status {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.checkout-payment-status-waiting {
  background-color: #f8fafc;
  color: #475569;
}

.checkout-payment-status-success {
  background-color: #ecfdf5;
  color: #047857;
}

.checkout-payment-status-error {
  background-color: #fef2f2;
  color: #dc2626;
}
@media screen and (max-width: 768px) {
  .checkout-payment-box {
    padding: 20px 14px 28px;
  }

  .checkout-payment-box .checkout-qr-box {
    padding: 14px;
  }

  .checkout-payment-qr-col {
    padding: 12px;
  }

  #checkoutPaymentQrImage {
    width: 300px;
  }
}
.profile-shipping-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background-color: #f8fafc;
  color: #111827;
}

.profile-shipping-box strong {
  display: block;
  margin-bottom: 8px;
}

.profile-shipping-box p {
  margin-bottom: 6px;
  color: #4b5563;
  line-height: 1.5;
}

.profile-tracking-code {
  color: #111827;
  letter-spacing: 0.5px;
}

.profile-tracking-guide {
  font-size: 13px;
  color: #6b7280;
}
.profile-shipping-summary {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
}

.profile-shipping-summary p {
  margin-bottom: 4px;
  color: #4b5563;
  line-height: 1.5;
}

.profile-shipping-summary strong {
  color: #111827;
}
.admin-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.admin-upload-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d7d7d7;
  background: #ffffff;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
}

.admin-upload-btn:hover {
  background: #f5f5f5;
}

.admin-upload-note {
  font-size: 13px;
  color: #666666;
}

.admin-upload-note.is-loading {
  color: #a16207;
}

.admin-upload-note.is-success {
  color: #15803d;
}

.admin-upload-note.is-error {
  color: #dc2626;
}
