/* =========================
   RESPONSIVE - MELANIE MIRA
   ========================= */

/* Tablet */
@media screen and (max-width: 992px) {
  .main-header {
    padding: 12px 0;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }

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

  .brand img {
    width: 58px;
    height: 58px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-icon-btn,
  .menu-icon-btn {
    width: 38px;
    height: 38px;
  }

  .header-icon-btn svg {
    width: 23px;
    height: 23px;
  }

  .menu-icon-btn svg {
    width: 26px;
    height: 26px;
  }

  .search-box-dropdown {
    width: 330px;
    right: 0;
  }

  .hero-section {
    height: 520px;
  }

  .hero-content {
    left: 6%;
    max-width: 460px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .best-seller-content {
    left: 45px;
    max-width: 430px;
  }

  .best-seller-content h3 {
    font-size: 38px;
    letter-spacing: 0;
  }

  .product-image img {
    height: 340px;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* Top bar */

  .top-bar-marquee {
    padding: 4px 0;
  }

  .top-bar-track span {
    font-size: 12px;
    letter-spacing: 1.2px;
  }

  /* Header */
  .main-header {
    padding: 10px 0;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

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

  .brand img {
    width: 52px;
    height: 52px;
    object-fit: cover;
  }

  .header-actions {
    gap: 4px;
  }

  .header-icon-btn,
  .menu-icon-btn {
    width: 36px;
    height: 36px;
  }

  .header-icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .menu-icon-btn svg {
    width: 25px;
    height: 25px;
  }

  .cart-link span {
    top: -2px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
  }

  /* Side menu */
  .side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    border-radius: 0;
    transform: translateX(-100%);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }

  .side-menu.active {
    transform: translateX(0);
  }

  .side-menu-header {
    padding: 16px 18px;
  }

  .side-menu-list > li > a {
    padding: 14px 18px;
    font-size: 16px;
  }

  .side-submenu li a {
    padding: 12px 34px;
    font-size: 15px;
  }

  /* Search dropdown */
  .search-box-dropdown {
    position: fixed;
    top: 82px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 10px;
    z-index: 3500;
  }

  .search-box-dropdown input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .search-box-dropdown button#btnSearch {
    padding: 0 14px;
    font-size: 14px;
  }

  .search-suggest {
    max-height: 330px;
    overflow-y: auto;
  }

  .suggest-item img {
    width: 50px;
    height: 64px;
  }

  .suggest-info h5 {
    font-size: 14px;
    line-height: 1.3;
  }

  .suggest-info p {
    font-size: 13px;
  }

  /* Cart / auth / checkout */
  .auth-section,
  .cart-section,
  .checkout-section {
    padding: 42px 0;
  }

  .auth-box,
  .cart-box,
  .checkout-box,
  .order-summary-box {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .cart-table {
    font-size: 14px;
  }

  .cart-table img {
    width: 60px;
    height: 78px;
  }

  .cart-total {
    font-size: 20px;
  }

  /* Footer */
  .main-footer {
    padding: 42px 0 22px;
  }

  .main-footer h3 {
    font-size: 24px;
  }

  .main-footer h4 {
    margin-top: 10px;
  }

  .main-footer p,
  .main-footer a {
    font-size: 14px;
  }

  .footer-bottom {
    margin-top: 25px;
  }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  .brand img {
    width: 48px;
    height: 48px;
  }

  .hero-section {
    height: 430px;
  }

  .hero-content h1,
  .hero-font-cormorant h1 {
    font-size: 36px;
  }

  .best-seller-content h3 {
    font-size: 38px;
  }

  .best-seller-content p {
    font-size: 15px;
  }

  .product-image img {
    height: 230px;
  }

  .search-box-dropdown {
    top: 76px;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 42px 0;
  }

  .section-heading {
    margin-bottom: 18px;
    padding: 0 18px;
  }

  .section-heading span {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .section-heading h2 {
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  .section-heading p {
    font-size: 14px;
    line-height: 1.5;
  }

  .featured-banner-section {
    padding-top: 34px;
  }
}

/* Product category carousel mobile */
@media screen and (max-width: 768px) {
  .category-carousel-section {
    padding-top: 20px !important;
    padding-bottom: 44px;
  }

  .category-carousel-section .section-heading {
    margin-bottom: 10px;
    padding: 0 18px;
  }

  .category-carousel-section .section-heading h2 {
    margin-bottom: 0;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

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

  .category-carousel-card {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    border-radius: 22px;
  }

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

  .category-carousel-card.is-left {
    width: 58%;
    z-index: 2;
    opacity: 0.58;
    filter: brightness(0.75);
    transform: translateX(-108%) scale(0.86);
  }

  .category-carousel-card.is-right {
    width: 58%;
    z-index: 2;
    opacity: 0.58;
    filter: brightness(0.75);
    transform: translateX(8%) scale(0.86);
  }

  .category-carousel-card:not(.is-active) .category-carousel-content {
    opacity: 0;
    pointer-events: none;
  }

  .category-carousel-card img {
    object-fit: cover;
    object-position: center top;
  }

  .category-carousel-content {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .category-carousel-content span {
    font-size: 13px;
    letter-spacing: 1.8px;
    margin-bottom: 6px;
  }

  .category-carousel-content h3 {
    font-size: 42px;
    letter-spacing: 0;
    margin-bottom: 14px;
  }

  .category-carousel-link {
    padding: 9px 22px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .category-carousel {
    height: 470px;
  }

  .category-carousel-card.is-active {
    width: 72%;
  }

  .category-carousel-card.is-left {
    width: 62%;
    transform: translateX(-106%) scale(0.85);
  }

  .category-carousel-card.is-right {
    width: 62%;
    transform: translateX(6%) scale(0.85);
  }

  .category-carousel-content h3 {
    font-size: 36px;
  }
  .category-carousel-section {
    padding-top: 18px !important;
  }

  .category-carousel-section .section-heading {
    margin-bottom: 8px;
  }

  .category-carousel-section .section-heading h2 {
    font-size: 32px;
  }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
  .category-carousel-card.is-left {
    width: 54%;
    transform: translateX(-132%) scale(0.82);
  }

  .category-carousel-card.is-right {
    width: 54%;
    transform: translateX(32%) scale(0.82);
  }

  .category-carousel-content h3 {
    font-size: 34px;
  }

  .category-carousel-content p {
    font-size: 14px;
  }
}

/* =========================
   Product detail responsive
   ========================= */

/* Tablet and small desktop */
@media screen and (max-width: 992px) {
  .product-detail-page {
    height: auto;
    overflow: visible;
  }

  .product-detail-layout {
    display: block;
    height: auto;
    overflow: visible;
  }

  .product-detail-gallery {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .product-detail-image-item {
    height: auto;
    min-height: auto;
  }

  .product-detail-image-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .product-detail-info {
    height: auto;
    border-left: none;
    overflow: visible;
  }

  .product-detail-sticky {
    position: static;
    top: auto;
    min-height: auto;
    height: auto;
    padding: 36px 22px 50px;
    overflow: visible;
    display: block;
  }

  .product-detail-top h1 {
    max-width: none;
  }

  /* Recommended products */
  .recommend-box {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
  }

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

  .recommend-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

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

  .recommend-item h4 {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    margin: 8px 0 4px;

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

  .recommend-item p {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .product-detail-gallery {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-detail-gallery::-webkit-scrollbar {
    display: none;
  }

  .product-detail-image-item {
    min-width: 100%;
    width: 100%;
    height: 620px;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .product-detail-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }

  .product-detail-sticky {
    padding: 28px 18px 44px;
  }

  .product-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
  }

  .product-detail-top h1 {
    max-width: none;
    min-width: 0;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-detail-top span {
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
    padding-top: 0;
  }

  .product-detail-line {
    margin: 16px 0 24px;
  }

  .size-options {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .product-detail-actions {
    gap: 10px;
  }

  .product-action-icon {
    width: 50px;
    height: 50px;
  }

  .product-buy-btn {
    height: 50px;
  }

  /* Mobile accordion */
  .detail-toggle {
    cursor: pointer;
  }

  .detail-toggle-icon {
    display: inline-block;
  }

  .detail-panel {
    display: none;
  }

  .product-detail-accordion.active .detail-panel {
    display: block;
  }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  .product-detail-image-item {
    height: 540px;
  }

  .product-detail-top h1 {
    max-width: none;
    font-size: 17px;
  }

  .product-detail-top span {
    font-size: 16px;
  }
}

/* Footer mobile shop style */
@media screen and (max-width: 768px) {
  .main-footer {
    text-align: left;
    padding: 40px 0 22px;
  }

  .main-footer .container {
    padding-left: 22px;
    padding-right: 22px;
  }

  /* Brand */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand h2 {
    font-size: 30px;
    margin-bottom: 8px;
  }

  .footer-slogan {
    font-size: 19px;
    margin-bottom: 18px;
    text-align: left;
  }

  .footer-brand-img {
    width: 280px;
    max-width: 100%;
    height: 105px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 28px;
  }

  /* Main footer links */
  .footer-links {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
  }

  .footer-main-links-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    flex-wrap: wrap;
  }

  .footer-main-link {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
  }

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

  /* Small product links */
  .footer-product-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 22px;
    margin-top: -4px;
    margin-bottom: 4px;
  }

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

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

  /* Contact */
  .footer-contact-title {
    display: inline-block;
    margin-bottom: 14px;
  }

  .footer-socials {
    justify-content: flex-start;
    gap: 16px;
    margin: 8px 0 24px;
  }

  .footer-social-icon {
    width: 50px;
    height: 50px;
  }

  .footer-social-icon svg {
    width: 23px;
    height: 23px;
  }

  .footer-contact-list {
    align-items: flex-start;
    gap: 12px;
  }

  .footer-contact-item {
    width: 100%;
    max-width: 430px;
    justify-content: flex-start;
    padding: 10px 16px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
  }

  .footer-contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .footer-contact-item span:last-child {
    text-align: left;
    font-size: 14px;
  }

  .footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 14px;
  }
}
/* Fabric materials mobile */
@media screen and (max-width: 768px) {
  .fabric-section {
    padding: 42px 0 54px;
  }

  .fabric-heading h2 {
    font-size: 26px;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  .fabric-heading-line {
    width: 58px;
  }

  .fabric-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 14px;
  }

  .fabric-card {
    height: 190px;
    border-radius: 16px;
  }

  .fabric-card span {
    min-width: 86px;
    padding: 8px 18px;
    font-size: 16px;
  }

  .fabric-popup {
    padding: 16px;
  }

  .fabric-popup-content {
    height: 560px;
    border-radius: 16px;
  }

  .fabric-popup-info {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .fabric-popup-info h3 {
    font-size: 30px;
  }

  .fabric-popup-info p {
    font-size: 14px;
  }

  .fabric-popup-info li {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .fabric-section {
    padding-bottom: 48px;
  }

  .fabric-card {
    height: 170px;
  }

  .fabric-popup-content {
    height: 520px;
  }
}

/* Recommended products mobile */
@media screen and (max-width: 768px) {
  .recommend-box {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
  }

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

  .recommend-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

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

  .recommend-item {
    flex: 0 0 46%;
    width: 46%;
    scroll-snap-align: start;
  }

  .recommend-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
  }

  .recommend-item h4 {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    margin: 8px 0 4px;

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

  .recommend-item p {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  .recommend-item {
    flex: 0 0 58%;
    width: 58%;
  }

  .recommend-item img {
    height: 210px;
  }
}

/* Home overlay header mobile */
@media screen and (max-width: 768px) {
  .home-header-overlay {
    top: 22px;
    padding: 8px 0;
  }

  .home-header-overlay .brand img {
    width: 52px;
    height: 52px;
  }

  .home-header-overlay .search-box-dropdown {
    top: 76px;
  }
  .language-current {
    height: 32px;
    gap: 4px;
    padding: 0 2px;
  }

  .language-badge {
    min-width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .language-arrow {
    font-size: 14px;
  }
}
@media screen and (max-width: 768px) {
  .shop-product-item:active .shop-product-img-main {
    opacity: 0;
    transform: scale(1.04);
  }

  .shop-product-item:active .shop-product-img-hover {
    opacity: 1;
    transform: scale(1.04);
  }
}
@media screen and (max-width: 768px) {
  .shipping-method-box {
    padding: 16px;
  }

  .shipping-method-box h4 {
    font-size: 15px;
  }

  .shipping-method-box p {
    font-size: 14px;
  }

  .payment-option-top {
    align-items: flex-start;
  }

  .payment-icons {
    gap: 5px;
  }

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

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

  .payment-option-desc {
    font-size: 14px;
    padding: 14px 18px;
  }
}
@media screen and (max-width: 768px) {
  .auth-simple-page {
    height: 100vh;
    overflow: hidden;
    padding: 28px 18px 22px;
  }

  .auth-simple-logo {
    margin-bottom: clamp(70px, 12vh, 100px);
  }

  .auth-simple-logo img {
    width: 145px;
  }

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

  .auth-simple-box h1 {
    font-size: 26px;
  }

  .auth-social-btn {
    height: 50px;
  }
}

@media screen and (max-width: 480px) {
  .auth-simple-logo {
    margin-bottom: 58px;
  }

  .auth-simple-box h1 {
    font-size: 24px;
  }

  .auth-check-row {
    font-size: 14px;
  }

  .auth-privacy {
    bottom: 18px;
  }
}

/* =========================
   Checkout drawer responsive
   ========================= */

@media screen and (max-width: 768px) {
  .checkout-modal-panel {
    width: 92%;
  }

  .checkout-modal-header {
    padding: 14px 16px;
  }

  .checkout-modal-header h3 {
    font-size: 18px;
  }

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

  .checkout-modal-body {
    padding: 16px;
  }

  .checkout-qr-box {
    align-items: flex-start;
  }

  .checkout-qr-fake {
    width: 108px;
    height: 108px;
    min-width: 108px;
  }

  .checkout-modal .checkout-summary-item {
    grid-template-columns: 54px 1fr;
  }

  .checkout-modal .checkout-summary-img img {
    width: 50px;
    height: 70px;
  }
  .checkout-modal .checkout-right,
  .checkout-modal .checkout-left {
    width: 100%;
  }

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

  .checkout-modal .checkout-discount-row button {
    height: 48px;
  }
}

@media screen and (max-width: 480px) {
  .checkout-modal-panel {
    width: 100%;
  }

  .checkout-modal-header p {
    display: none;
  }

  .checkout-qr-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .checkout-qr-fake {
    width: 130px;
    height: 130px;
    min-width: 130px;
  }
}
/* =========================
   Products category icons mobile
   Căn giữa 4 icon, đồng bộ style với desktop
   ========================= */

@media screen and (max-width: 768px) {
  .products-filter-section {
    padding: 12px 0 10px !important;
  }

  .products-filter-section .container {
    max-width: 100%;
  }

  .category-icon-filter {
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .category-icon-link {
    min-width: auto !important;
  }

  .category-icon-circle {
    width: 66px !important;
    height: 66px !important;
  }

  .category-icon-circle img {
    width: 30px !important;
    height: 30px !important;
  }
}

@media screen and (max-width: 480px) {
  .category-icon-filter {
    gap: 16px !important;
  }

  .category-icon-circle {
    width: 60px !important;
    height: 60px !important;
  }

  .category-icon-circle img {
    width: 28px !important;
    height: 28px !important;
  }
}
/* =========================
   Best seller controls mobile
   Mobile chỉ hiện dots, nằm sát cạnh dưới banner
   ========================= */

@media screen and (max-width: 768px) {
  .best-seller-slider > .best-seller-slider-control {
    left: 0;
    right: 0;
    bottom: 12px;

    margin-top: 0;
    justify-content: center;
    gap: 0;
  }

  /* Mobile ẩn mũi tên, chỉ giữ dots + vuốt */
  .best-seller-slider > .best-seller-slider-control .slider-arrow {
    display: none;
  }

  .best-seller-slider > .best-seller-slider-control .slider-dots {
    gap: 8px;
  }

  .best-seller-slider > .best-seller-slider-control .slider-dot {
    width: 7px;
    height: 7px;
  }

  /* Nút Xem chi tiết nhỏ gọn hơn trên mobile */
  .best-seller-content > button {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
  }

  /* Nút Xem thêm trong Product Category nhỏ gọn hơn trên mobile */
  .category-carousel-link {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 480px) {
  .best-seller-slider > .best-seller-slider-control {
    bottom: 10px;
  }

  .best-seller-content > button,
  .category-carousel-link {
    padding: 6px 13px;
    font-size: 12px;
  }
}

/* =========================
   Footer category/contact icon spacing mobile
   Đồng bộ khoảng cách chữ Sản phẩm / Liên hệ với icons bên dưới
   ========================= */

@media screen and (max-width: 768px) {
  /* Nhóm icon Bộ / Váy / Áo */
  .footer-category-svg-links {
    justify-content: flex-start;
    gap: 16px;

    /* Sau khi bỏ Chính sách, khoảng cách footer gọn hơn */
    margin-top: 10px;
    margin-bottom: 28px;
  }

  .footer-category-svg-link {
    width: 50px;
    height: 50px;
  }

  .footer-category-svg-link img {
    width: 26px;
    height: 26px;
  }

  /* Chữ Liên hệ */
  .footer-contact-title {
    margin-bottom: 14px;
  }

  /* Nhóm icon Facebook / TikTok / Instagram */
  .footer-socials {
    margin-top: 0;
    margin-bottom: 24px;
  }
}
/* =========================
   Home extra banners mobile
   ========================= */

@media screen and (max-width: 768px) {
  .home-extra-banner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
  }

  /* Banner ngang trên mobile vẫn full ngang, không chừa trắng 2 bên */
  .home-horizontal-banner {
    aspect-ratio: 2 / 1;
  }

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

  /* Banner dọc trên mobile */
  .home-vertical-banner {
    padding: 0;
    margin: 0;
    line-height: 0;
  }

  .home-vertical-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* =========================
   Best seller mobile full width fix
   Banner Best Seller full ngang giống Hero
   ========================= */

@media screen and (max-width: 768px) {
  .best-seller-section {
    padding-bottom: 0 !important;
    overflow: hidden;
  }

  .best-seller-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .best-seller-track {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }

  .best-seller-slide {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .best-seller-slide picture {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .best-seller-slide picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
  }

  .best-seller-section + .home-vertical-banner {
    margin-top: 0 !important;
  }
}

/* =========================
   Mobile hero banner
   Khung tự cao theo ảnh mobile
   Không cắt ảnh, không dư khung trên dưới
   ========================= */

@media screen and (max-width: 768px) {
  .hero-banner-responsive {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-color: transparent !important;
    line-height: 0;
  }

  .hero-track {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    align-items: flex-start;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.75s ease;
  }

  .hero-slide {
    width: 100%;
    min-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
  }

  .hero-slide picture {
    width: 100%;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
  }

  .hero-slide picture img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center top !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
  }

  .hero-banner-responsive .hero-content {
    left: 0 !important;
    right: 0 !important;
    bottom: 12px !important;
    top: auto !important;
    width: 100%;
    max-width: none;
    transform: none !important;
  }

  .hero-slider-control {
    margin-top: 0 !important;
  }
}
/* =========================
   Home video banner mobile
   Video hoạt động như banner: tự chạy, lặp lại, không tương tác
   ========================= */

@media screen and (max-width: 768px) {
  .home-video-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    line-height: 0;

    pointer-events: none;
    user-select: none;
  }

  .home-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;

    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .home-video-banner + .home-horizontal-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
/* =========================
   Index mobile section title spacing
   Mobile: khoảng cách trên tiêu đề = khoảng cách dưới tiêu đề
   Áp dụng cho:
   BEST SELLER / DANH MỤC SẢN PHẨM / ĐA DẠNG CHẤT LIỆU
   ========================= */

@media screen and (max-width: 768px) {
  /* BEST SELLER */
  .best-seller-section {
    padding-top: 32px !important;
    padding-bottom: 0 !important;
  }

  .best-seller-section .section-heading {
    margin: 0 auto 32px !important;
    padding: 0 16px !important;
  }

  /* DANH MỤC SẢN PHẨM */
  .category-carousel-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .category-carousel-section .section-heading {
    margin: 0 auto 32px !important;
    padding: 0 16px !important;
  }

  /* ĐA DẠNG CHẤT LIỆU */
  .fabric-section {
    padding-top: 32px !important;
    padding-bottom: 54px !important;
  }

  .fabric-heading {
    margin: 0 auto 32px !important;
    padding: 0 16px !important;
  }

  /* Style chung cho 3 tiêu đề */
  .best-seller-section .section-heading h2,
  .category-carousel-section .section-heading h2,
  .fabric-heading h2 {
    margin: 0 !important;
    font-size: 26px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
  }

  .fabric-grid {
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 480px) {
  .best-seller-section {
    padding-top: 28px !important;
  }

  .best-seller-section .section-heading {
    margin-bottom: 28px !important;
  }

  .category-carousel-section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .category-carousel-section .section-heading {
    margin-bottom: 28px !important;
  }

  .fabric-section {
    padding-top: 28px !important;
    padding-bottom: 48px !important;
  }

  .fabric-heading {
    margin-bottom: 28px !important;
  }

  .best-seller-section .section-heading h2,
  .category-carousel-section .section-heading h2,
  .fabric-heading h2 {
    font-size: 24px !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
  }
}

/* =========================
   Login page responsive final
   ========================= */

@media screen and (max-width: 768px) {
  .auth-page-body {
    overflow: hidden;
  }

  .auth-page-body .auth-simple-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 26px 18px 22px;
  }

  .auth-page-body .auth-simple-logo {
    margin-bottom: clamp(58px, 10vh, 88px);
  }

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

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

  .auth-page-body .auth-simple-box h1 {
    font-size: 25px;
    margin-bottom: 6px;
  }

  .auth-page-body .auth-simple-box > p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .auth-page-body .auth-social-btn {
    height: 50px;
  }

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

  .auth-page-body .auth-check-row {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 16px;
  }

  .auth-page-body .auth-note {
    font-size: 12px;
    white-space: normal;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-page-body .auth-privacy {
    bottom: 14px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .auth-page-body .auth-simple-page {
    padding-top: 22px;
  }

  .auth-page-body .auth-simple-logo {
    margin-bottom: 48px;
  }

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

  .auth-page-body .auth-simple-box h1 {
    font-size: 24px;
  }

  .auth-page-body .auth-check-row {
    font-size: 13px;
  }

  .auth-page-body .auth-note {
    font-size: 11.5px;
    line-height: 1.45;
  }
}
/* =========================
   Customer profile responsive
   ========================= */

@media screen and (max-width: 768px) {
  .profile-page-body {
    overflow: auto;
  }

  .profile-page {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .profile-container {
    width: calc(100% - 32px);
    height: auto;
    min-height: 100dvh;
    padding: 24px 0 22px;
  }

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

  .profile-logo img {
    width: 135px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .profile-sidebar {
    display: flex;
    gap: 18px;
    padding-top: 0;
  }

  .profile-sidebar-link {
    font-size: 18px;
    margin-bottom: 0;
  }

  .profile-content {
    max-width: 100%;
  }

  .profile-card {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    gap: 6px;
  }

  .profile-card strong {
    text-align: left;
  }

  .profile-marketing-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .profile-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .profile-footer {
    gap: 14px;
    padding-top: 36px;
  }
}
/* =========================
   Profile address responsive
   ========================= */

@media screen and (max-width: 768px) {
  .address-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-address-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
/* Checkout payment result responsive */
@media screen and (max-width: 768px) {
  .checkout-payment-box {
    padding: 18px 2px 28px;
  }

  .checkout-payment-box > h3 {
    font-size: 24px;
  }

  .checkout-payment-box .checkout-qr-box {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .checkout-payment-qr-col {
    width: 100%;
    min-height: 170px;
  }

  #checkoutPaymentQrImage {
    width: 150px;
  }

  .checkout-payment-box .checkout-qr-info {
    text-align: left;
  }
}

@media screen and (max-width: 480px) {
  .checkout-payment-box > h3 {
    font-size: 22px;
  }

  .checkout-payment-box > p {
    font-size: 13px;
  }

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

  .checkout-payment-qr-col {
    min-height: 160px;
  }

  #checkoutPaymentQrImage {
    width: 140px;
  }

  #btnCheckoutPaymentClose {
    min-height: 52px;
  }
}
/* =========================
   Size guide modal responsive
   ========================= */

@media screen and (max-width: 768px) {
  .size-guide-row {
    justify-content: flex-end;
    margin-top: 12px;
  }

  .size-guide-btn {
    font-size: 13px;
  }

  .size-guide-modal {
    padding: 14px;
  }

  .size-guide-modal-box {
    width: min(88vw, 390px);
    max-height: calc(100dvh - 28px);
    border-radius: 16px;
  }

  .size-guide-modal-img {
    max-height: calc(100dvh - 28px);
    border-radius: 16px;
  }

  .size-guide-modal-close {
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
}

@media screen and (max-width: 480px) {
  .size-guide-modal {
    padding: 12px;
  }

  .size-guide-modal-box {
    width: 92vw;
  }

  .size-guide-modal-close {
    top: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.92);
  }
}
