.web__container {
    flex: 1;

    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    z-index: 100;
    /* cố định khi cuộn */
    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid black;
    background-color: var(--card-bg);
}

.navbar__logo {
    text-decoration: none;
    transition: all ease 0.3s;
    height: 100%;

    display: flex;
    align-items: center;
}

.navbar__logo:hover {
    transform: translateY(-2px);
}

.navbar__logo img {
    height: 75%;
    object-fit: cover;
    border-radius: 20px;
}

.navbar__menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar__menu-item {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--text-main-grey);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;

    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar__menu-item i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.navbar__menu-item:hover {
    color: var(--primary-blue);
    background: var(--blue-05);
    transform: translateY(-2px);
}

.navbar__menu-item:hover i {
    transform: scale(1.1);
}


.navbar__auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    color: var(--text-main-grey);
    font-size: 2rem;

    cursor: pointer;

    transition: all 0.3s ease;
}

.navbar__auth:hover {
    transform: translateY(-2px);
}

.navbar__shop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    ;
}

.navbar__cart {
    color: var(--text-main-grey);
    font-size: 2rem;
    cursor: pointer;

    transition: all 0.3s ease;

}

.navbar__cart:hover {
    transform: translateY(-2px);
}

/* User */
.user-info {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.user-info__trigger {
    display: flex;
    align-items: center;
    gap: 5px;

    color: var(--text-main);
    font-size: 1.8rem;

    background-color: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 20px;

    transition: all 0.3s ease;
}

.user-info__name b {
    color: var(--error);
}

.user-info__arrow {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.user-info__trigger:hover {
    transform: translateY(-2px);
}

.user-info.active .user-info__arrow {
    transform: rotate(180deg);
}

/* Menu con (Dropdown) */
.user-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    width: 220px;

    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;

    z-index: 100;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;

    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.user-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.user-dropdown__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.user-dropdown__item--logout {
    color: #ff4d4d;
}

.user-dropdown__item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.user-dropdown__item--logout:hover {
    background: rgba(255, 77, 77, 0.1);
}

.user-dropdown__item--logout i {
    color: #ff4d4d;
}


/* Hero Section */
/* Hero Section */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.hero--home {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--navbar-height));
    background-color: var(--primary-blue);
    background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    overflow: hidden;
    padding: 20px;
    z-index: 1;
}

.hero--index {
    width: 100%;
    min-height: calc(100vh - var(--navbar-height));
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--background-color);
}

.hero__info {
    margin: 0 50px 15px 50px;
}

.info__greeting {
    color: var(--apple-black);
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.info__weather {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    color: var(--text-sub-grey);
    font-size: 2.2rem;
    font-weight: 600;

    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 8px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: inline-flex;
    margin: 15px 0;
}

.info__desc {
    color: #444;
    font-size: 1.8rem;
    font-weight: 500;
}

.config-form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--apple-black);
    max-width: 1200px;
    margin: 0 auto;
}

.config-form__group {
    width: 32%;
    min-width: 250px;
    height: 115px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.config-form__group:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.config-form__group:last-of-type {
    width: 66%;
}

.config-form__heading {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.config-form__options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.config-form__input {
    display: none;
}

.config-form__input--age {
    background: #f1f3f5;
    border: 1px solid #ced4da;
    border-radius: 50px;
    padding: 8px 15px;
    color: var(--apple-black);
    font-size: 1.6rem;
    font-weight: 600;
    width: 100px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

.config-form__input--age:focus {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(33, 118, 255, 0.2);
}

.config-form__input--age::placeholder {
    color: #adb5bd;
    font-size: 1.3rem;
}

/* Hide spin buttons for numeric input */
.config-form__input--age::-webkit-inner-spin-button,
.config-form__input--age::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.config-form__label {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.config-form__label:hover {
    background: #e9ecef;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.config-form__input:checked+.config-form__label {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(33, 118, 255, 0.3);
}

.config-form__label--color {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #eee;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.config-form__input:checked+.config-form__label--color {
    transform: scale(1.25);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--primary-blue), 0 2px 2px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.config-form__textarea {
    width: 100%;
    height: 100px;
    padding: 15px;

    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;

    color: var(--apple-black);
    font-size: 1.5rem;
    resize: none;
    outline: none;

    transition: all 0.3s ease;
}

.config-form__textarea:focus {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(33, 118, 255, 0.1);
}

.config-form__textarea::placeholder {
    color: #999;
    font-style: italic;
}

.confirm__button {
    width: 100%;
    max-width: 280px;
    height: 54px;
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(33, 118, 255, 0.25);
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirm__button:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(33, 118, 255, 0.35);
}

.confirm__button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.4);
}

.result {
    height: calc(100vh - var(--navbar-height));
    min-height: 550px;
    padding: 0;
    position: relative;
    background-color: var(--background-color);
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    animation: slideUpFade 0.8s ease-out forwards;
}

.result.is-loading {
    overflow: hidden;
}

/* Class được add bằng JS (hoặc sửa JS để đổi sang flex thay vì block) */
.result.active {
    display: flex !important;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result__container {
    width: 95%;
    max-width: 950px;
    height: 85%;
    max-height: 650px;
    margin: auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.result__visual {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.visual-item {
    flex: 1;
    width: 100%;
    min-height: 0;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.visual-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.result__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--apple-black);
    padding-left: 10px;
}

.result__tag {
    display: inline-block;
    background: #e9f2ff;
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border: 1px solid rgba(33, 118, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result__title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 8px 0 15px;
    color: var(--apple-black);
}

.result__desc {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-sub-grey);
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    position: relative;
    border-left: 4px solid var(--primary-blue);
}

.result__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.item-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 1.3rem;
    color: var(--apple-black);
    font-weight: 500;
}

.item-box:hover {
    background: #ffffff;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.item-icon {
    font-size: 1.8rem;
    color: var(--primary-blue);
    width: 25px;
    text-align: center;
}

.result__actions {
    display: flex;
    gap: 15px;
}

.result__actions button:first-child {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 118, 255, 0.3);
}

.result__actions button:last-child {
    background-color: transparent;
    color: var(--apple-black);
    border: 2px solid var(--border-color);
}

.result__actions button:last-child:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.actions__button {
    flex: 1;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    font-size: 1.6rem;
    text-transform: none;
    letter-spacing: 0;
}

.actions__button.is-saved {
    background-color: #ff4d4d !important;

    transform: scale(0.95);
}

#loadingProgress {
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    margin-top: 0;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    position: relative;
    z-index: 50;
}

.result-loading__box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    max-width: 550px;
    width: 90%;
    text-align: center;
}

.result-loading__spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #6C63FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px auto;
}

.result-loading__text {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* ===== Giao diện trang chủ mới ===== */
.section-title {
    font-size: 3.8rem;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 800;
    text-align: center;
}

.section-subtitle {
    font-size: 1.8rem;
    color: #666;
    margin: 30px auto 50px auto !important;
    text-align: center !important;
    max-width: 800px;
    display: block !important;
    line-height: 1.2;
}

section {
    padding: 80px 20px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    scroll-margin-top: var(--navbar-height);
}

section.hero--home {
    min-height: calc(100vh - 80px);
}

/* Hero Section Mới */
.hero--home .hero__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__title {
    font-size: 6.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero__subtitle {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    line-height: 1.5;
    margin-bottom: 48px;
}

.hero__btn {
    background: #ffffff;
    color: #2176ff;
    padding: 16px 40px;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero__btn:hover {
    transform: translateY(-4px);
    background: #f8f9fa;
    color: #1a5bcc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Background Shapes */
.hero--home .hero__shape {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    opacity: 0.5;
}

.hero--home .hero__shape--1 {
    width: 400px;
    height: 400px;
    background: #3B82F6;
    top: -230px;
    left: -100px;
    border-radius: unset;
    transform: rotate(33deg);
}

.hero--home .hero__shape--2 {
    width: 300px;
    height: 300px;
    background: #3B82F6;
    top: 10%;
    right: -50px;
}

.hero--home .hero__shape--3 {
    width: 500px;
    height: 500px;
    background: #3B82F6;
    bottom: -150px;
    left: 20%;
    opacity: 0.3;
}

/* Divider removed */

/* Features Section */
.feature-card {
    padding: 40px;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease;
    border: none;
    box-shadow: none;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card__icon-wrapper {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card__icon {
    font-size: 2.8rem;
    background: transparent;
    width: auto;
    height: auto;
    line-height: normal;
}

.feature-card--ai {
    background-color: #e9f2ff;
}

.feature-card--ai .feature-card__icon {
    color: #2176ff;
}

.feature-card--wardrobe {
    background-color: #ecfdf3;
}

.feature-card--wardrobe .feature-card__icon {
    color: #12b76a;
}

.feature-card--store {
    background-color: #fffcf0;
}

.feature-card--store .feature-card__icon {
    color: #f79009;
}

.feature-card__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.feature-card__desc {
    font-size: 1.6rem;
    color: #4a4a4a;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .order-card {
        padding: 20px;
    }

    .order-card__header {
        flex-direction: column;
        gap: 15px;
    }

    .order-item {
        gap: 15px;
    }

    .order-item__img-wrapper {
        width: 60px;
        height: 60px;
    }

    .order-item__price {
        font-size: 1.4rem;
    }
}

/* Shop Page - Premium Monochrome Light */
.shop-page {
    background-color: var(--background-color);
    padding: 50px 0 80px;
    min-height: 100vh;
}

.shop-page__header {
    margin-bottom: 30px;
    text-align: center;
}

.shop-page__title {
    font-size: 4rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 24px;
    line-height: 1.2;
}

.shop-page__subtitle {
    font-size: 1.8rem;
    color: #86868b;
}

.shop-page__content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.shop-filter {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e1e1e1;
}

.shop-filter:last-child {
    border-bottom: none;
}

.shop-filter__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.shop-filter__list {
    list-style: none;
    padding: 0;
}

.shop-filter__item {
    font-size: 1.5rem;
    color: #666;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding-left: 15px;
}

.shop-filter__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #d2d2d7;
    border-radius: 50%;
}

.shop-filter__item:hover {
    color: #000;
    padding-left: 20px;
}

.shop-filter__item.active {
    color: #000;
    font-weight: 700;
    padding-left: 20px;
}

.shop-filter__item.active::before {
    background: #000;
    width: 6px;
    height: 6px;
}

.shop-filter__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-filter__size {
    padding: 8px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
}

.shop-filter__size:hover {
    border-color: #000;
    background: #f5f5f7;
}

.shop-filter__size.active {
    background-color: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

.shop-filter__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shop-filter__clear {
    background: none;
    border: none;
    color: #4338ca;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.shop-filter__clear:hover {
    opacity: 1;
    text-decoration: underline;
}

.shop-filter__price {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-filter__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    color: #444;
    cursor: pointer;
}

.shop-filter__checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000;
}

.shop-main {
    flex: 1;
}

.shop-toolbar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    border: 1px solid #e1e1e1;
    align-items: center;
}

.shop-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f7;
    padding: 0 20px;
    border-radius: 12px;
}

.shop-search__icon {
    font-size: 1.6rem;
    color: #86868b;
}

.shop-search__input {
    width: 100%;
    height: 45px;
    background: none;
    border: none;
    outline: none;
    font-size: 1.5rem;
    color: #1d1d1f;
}

.shop-sort__select {
    height: 45px;
    padding: 0 20px;
    border-radius: 12px;
    background: #f5f5f7;
    border: none;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    outline: none;
}

.shop-grid {
    margin: 0 -10px;
}

/* Hide Mobile Filter elements on Desktop */
.shop-mobile-filter-btn,
.shop-sidebar__close,
.shop-sidebar-overlay {
    display: none !important;
}

@media (max-width: 1024px) {
    .shop-sidebar {
        display: none;
    }
}

/* How It Works Section */
.how-it-works {
    background: rgba(0, 0, 0, 0.05);
    /* Lighter background */
    width: 100%;
}

.how-it-works__container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.how-it-works__line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 300px;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.how-it-works__icon {
    position: absolute;
    top: 48%;
    right: calc(-13% + 4px);
    transform: translateY(-50%) rotate(15deg);
    /* Xoay nhẹ cho tự nhiên */
    font-size: 28px;
    color: #6C63FF;
    z-index: 2;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
    transform: rotate(90deg);
}

.how-it-works__steps {
    position: relative;
    z-index: 1;
}

.step-card {
    padding: 30px 20px;
    position: relative;
    text-align: center;
    background: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 20px;
    margin: 50px 15px 0;
    /* Add horizontal margin to expose the wavy line between cards */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.2);
}

.step-card--middle {
    margin-top: 150px;
    /* Push middle card down to follow wavy line */
}

.step-card__number {
    width: 60px;
    height: 60px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin: -60px auto 20px;
    /* Pull number up to overlap border */
    box-shadow: 0 5px 15px rgba(255, 101, 132, 0.4);
    border: 4px solid var(--glass-bg);
}

.step-card__title {
    font-size: 2.2rem;
    color: var(--text-main-grey);
    margin-bottom: 12px;
    line-height: 1.2;
}

.step-card__desc {
    font-size: 1.5rem;
    color: var(--text-main-grey);
    line-height: 1.6;
}

.reason-card {
    padding: 30px;
    text-align: center;
}

.reason-card__icon {
    font-size: 5rem;
    color: #FF6584;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.reason-card:hover .reason-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.reason-card__title {
    font-size: 2rem;
    color: var(--text-main-grey);
    margin-bottom: 15px;
}

.reason-card__desc {
    font-size: 1.5rem;
    color: var(--text-main-grey);
    line-height: 1.5;
}

/* Footer */
/* Footer */
.footer {
    background-color: #0d1117;
    padding: 80px 0 40px;
    color: #8b949e;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__content {
    margin-bottom: 60px;
}

.footer__brand {
    padding-right: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700;
}

.footer__logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.footer__slogan {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 300px;
}

.footer__social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #8b949e;
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__social-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer__heading {
    color: #2f81f7;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: capitalize;
}

/* Link sản phẩm gợi ý */
.item-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
    cursor: default;
}

.item-link.is-clickable:hover {
    color: #2f81f7;
    text-decoration: underline;
    cursor: pointer;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__item {
    margin-bottom: 16px;
}

.footer__link {
    color: #8b949e;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.4;
}

.footer__link span {
    display: block;
    font-size: 1.2rem;
    opacity: 0.6;
    margin-top: 4px;
}

.footer__link:hover {
    color: #ffffff;
}

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copyright,
.footer__author {
    font-size: 1.3rem;
    color: #484f58;
}

@media (max-width: 739px) {
    .footer {
        padding: 50px 20px 30px;
    }

    .footer__brand {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Trang bộ sưu tập */
.wardrobe__header {
    text-align: center;
    margin-bottom: 20px;
}

/* Trang Bộ sưu tập (Wardrobe) - Premium Monochrome */
.wardrobe-page {
    background-color: var(--background-color);
    min-height: 100vh;
    padding: 50px 0 100px;
    /* Đồng bộ hoàn toàn với trang Cửa hàng */
}

.wardrobe__header {
    text-align: center;
    margin-bottom: 30px;
    /* Đồng bộ margin-bottom với shop-page__header */
}

.wardrobe__title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--apple-black);
    margin-bottom: 20px;
}

.wardrobe__subtitle {
    font-size: 1.6rem;
    color: var(--apple-grey);
}

/* Thẻ trang phục đã phối */
.wardrobe-card {
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
}

.wardrobe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.wardrobe-card__gallery {
    display: flex;
    height: 180px;
    background-color: #fbfbfd;
    padding: 10px;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.wardrobe-card__img {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.wardrobe-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.wardrobe-card:hover .wardrobe-card__img img {
    transform: scale(1.05);
}

.wardrobe-card__body {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wardrobe-card__main {
    flex: 1;
}

.wardrobe-card__name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--apple-black);
    margin-bottom: 8px;
    /* Tăng margin nhẹ */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.wardrobe-card__desc {
    margin-bottom: 10px;
}

.wardrobe-card__desc p {
    font-size: 1.3rem;
    color: var(--apple-grey);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wardrobe-card__desc p span {
    font-weight: 600;
    color: var(--text-sub-grey);
}

.wardrobe-card__date {
    font-size: 1.2rem;
    color: var(--apple-grey);
    opacity: 0.8;
}

.wardrobe-card__btn-delete {
    width: 36px;
    height: 36px;
    border: none;
    background-color: #f5f5f7;
    color: var(--error);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 10px;
}

.wardrobe-card__btn-delete:hover {
    background-color: #ffe4e4;
    transform: scale(1.1);
}

/* Trạng thái trống */
.wardrobe-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--apple-grey);
}

.wardrobe-empty i {
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.wardrobe-empty p {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--apple-black);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Trang bán hàng */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e8e8ed;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.12);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8ed;
    background: #ffffff;
}

.cart-drawer__header h2 {
    color: #1d1d1f;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.cart-close-btn {
    background: #f5f5f7;
    border: none;
    color: #1d1d1f;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    background: #ff4d4d;
    color: #ffffff;
    transform: rotate(90deg);
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background-color: #f5f5f7;
}

/* Trống hàng */
.cart-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #6e6e73;
}

.cart-empty .empty-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.4;
    color: #6e6e73;
}

.cart-empty p {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #6e6e73;
}

.btn-shopping {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-shopping:hover {
    background: var(--primary-blue);
    color: white;
}

/* Có hàng */
.cart-item {
    display: flex;
    gap: 15px;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    border: 1px solid #e8e8ed;
}

.cart-item__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item__info {
    flex: 1;
    color: #1d1d1f;
}

.cart-item__name {
    font-size: 1.4rem;
    margin: 0 0 5px;
    font-weight: 600;
    color: #1d1d1f;
}

.cart-item__meta {
    font-size: 1.2rem;
    color: #6e6e73;
    margin-bottom: 5px;
}

.cart-item__price {
    font-size: 1.5rem;
    color: #e53030;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-item__config {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.cart-item__select-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    /* Đảm bảo nhóm chiếm hết chiều rộng parent */
}

.cart-item__label {
    font-size: 1.1rem;
    color: var(--apple-grey);
    text-transform: uppercase;
    font-weight: 600;
    min-width: 40px;
    /* Tăng nhẹ để nhãn đều hơn */
}

.cart-item__select {
    background: rgba(0, 0, 0, 0.4);
    /* Nền tối hơn để chữ trắng nổi bật */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 1.2rem;
    color: #ffffff;
    /* Chữ trắng theo yêu cầu */
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    flex: 1;
    /* Cho phép select dài ra bằng nhau */
    max-width: 100px;
    /* Giới hạn để không quá dài trong drawer */
    appearance: none;
    /* Reset mặc định trình duyệt nếu cần */
    text-align: center;
}

.cart-item__select:hover {
    background: #ffffff;
    /* Nền trắng khi hover */
    color: #000000;
    /* Chữ đen khi hover */
    border-color: #ffffff;
}

.cart-item__select option:disabled {
    color: #999;
    background-color: #f5f5f7;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    background: var(--apple-bg);
    width: fit-content;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-item__qty input {
    width: 30px;
    background: transparent;
    border: none;
    color: #000;
    text-align: center;
    font-weight: bold;
}

.cart-item__remove {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--error);
    cursor: pointer;
    transition: 0.3s;
}

.cart-item__remove:hover {
    transform: scale(1.2);
}

.cart-drawer__footer {
    padding: 16px 24px;
    border-top: 1px solid #e8e8ed;
    background: #ffffff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1d1d1f;
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.cart-total span:last-child {
    color: #e53030;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--purple-30);
}

/* Trang shop */
.shop__header {
    text-align: center;
    margin-bottom: 20px;
}

.shop__title {
    font-size: 3.5rem;
    color: var(--text-main-grey);
    margin-bottom: 20px;
}

.shop__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all ease 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--button-bg);

    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.shop__products .col {
    margin-bottom: 24px;
}

.product-card {
    display: block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 101, 132, 0.5);
}

.product-card__img {
    height: 220px;
    background: #fff;
    overflow: hidden;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-card__img img {
    transform: scale(1.08);
}

.product-card__info {
    padding: 15px;
    text-align: center;
}

.product-card__name {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.product-card__price {
    color: var(--primary-pink);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-card__buy {
    display: inline-block;
    color: #fff;
    font-size: 1.4rem;
    border-bottom: 1px solid transparent;
    transition: all ease 0.3s;
    opacity: 0.7;
    cursor: pointer;
}

.product-card:hover .product-card__buy {
    opacity: 1;
    font-weight: 700;
}

/* Hiệu ứng ảnh bay */
.fly-item {
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Modal Chọn Cấu Hình Sản Phẩm */
.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    /* Hiện bằng JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.config-modal.active {
    display: flex;
    opacity: 1;
}

.config-modal__container {
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    border-radius: 28px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.config-modal.active .config-modal__container {
    transform: translateY(0);
}

.config-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f5f5f7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--apple-grey);
    transition: all 0.2s;
}

.config-modal__close:hover {
    background: #e9ecef;
    color: var(--apple-black);
    transform: rotate(90deg);
}

.config-modal__product {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.config-modal__img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    background: #fdfdfd;
}

.config-modal__info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--apple-black);
    margin-bottom: 8px;
}

.config-modal__price {
    font-size: 2rem;
    font-weight: 700;
    color: #e31b23;
}

.config-modal__group {
    margin-bottom: 20px;
}

.config-modal__label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: 12px;
    display: block;
}

.config-modal__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.config-size-btn {
    min-width: 50px;
    height: 48px;
    /* Tăng height phù hợp với apple style */
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.config-size-btn:hover {
    border-color: var(--apple-black);
}

.config-size-btn.active {
    background: var(--apple-black);
    color: #fff;
    border-color: var(--apple-black);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.config-size-btn.out-of-stock {
    background: #f5f5f7;
    color: #d1d1d6;
    border-color: #e5e5ea;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
    text-decoration: line-through;
}

.config-modal__colors {
    display: flex;
    gap: 15px;
}

.config-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--border-color);
    transition: all 0.2s;
    position: relative;
}

.config-color-btn.active {
    box-shadow: 0 0 0 2px var(--apple-black);
    transform: scale(1.1);
}

.config-color-btn.out-of-stock {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.config-color-btn.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ff3b30;
    transform: translate(-50%, -50%) rotate(45deg);
}

.config-modal__btn-confirm {
    width: 100%;
    height: 56px;
    background: var(--apple-black);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.config-modal__btn-confirm:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Badge số lượng trên icon giỏ hàng */
.navbar__cart {
    position: relative;
}

/* Vendor box under product image */
.product-vendor-box {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
    transition: all 0.3s ease;
}

.product-vendor-box:hover {
    border-color: var(--apple-black);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.product-vendor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vendor-label {
    font-size: 1.2rem;
    color: var(--apple-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.vendor-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--apple-black);
}

.btn-visit-shop {
    padding: 10px 20px;
    background: var(--apple-black);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-visit-shop i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-visit-shop:hover {
    background: #333;
    transform: translateX(3px);
}

.btn-visit-shop:hover i {
    transform: translateX(3px);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff4d4d;
    color: white;
    font-size: 1.2rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    display: none;
    /* Ẩn khi số lượng = 0 */
}

/* Trang chi tiết sản phẩm - Premium Monochrome */
.detail-page {
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Đổi từ center sang flex-start để dễ căn chỉnh lên trên */
    padding: 30px 0 100px;
    /* Giảm padding trên để sát mép hơn */
}

.detail-back {
    margin-bottom: 15px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.detail-back__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    color: var(--apple-grey);
    text-decoration: none;
    transition: all 0.3s;
}

.detail-back__link:hover {
    color: var(--apple-black);
    transform: translateX(-5px);
}

.product-detail {
    background-color: #fff;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    padding: 30px;
    /* Thu nhỏ padding từ 60px xuống 30px */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    max-width: 1000px;
    /* Giới hạn chiều rộng để khối thông tin nhỏ lại */
    margin: 0 auto;
    /* Căn giữa màn hình */
    width: 100%;
}

.product-detail__gallery {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-detail__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--background-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-detail__image:hover img {
    transform: scale(1.08);
}

.product-detail__content {
    padding-left: 30px;
    /* Giảm padding trái */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-detail__title {
    font-size: 3.2rem;
    /* Thu nhỏ tiêu đề */
    font-weight: 800;
    color: var(--apple-black);
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.product-detail__price {
    font-size: 2.6rem;
    /* Thu nhỏ giá */
    font-weight: 700;
    color: #e31b23;
    margin-bottom: 25px;
}

.product-detail__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.product-detail__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-detail__meta-item .label {
    font-size: 1.2rem;
    color: var(--apple-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-detail__meta-item .value {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--apple-black);
}

.product-detail__meta-item .value.status {
    color: var(--warning);
}

.product-detail__separator {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 25px;
}

.product-detail__colors {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.color-btn-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.color-btn-item:hover {
    transform: scale(1.15);
}

.color-btn-item.selected {
    box-shadow: 0 0 0 2px var(--apple-black);
    transform: scale(1.15);
}

.color-btn-item.out-of-stock {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.color-btn-item.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ff3b30;
    transform: translate(-50%, -50%) rotate(45deg);
}

.product-detail__option {
    margin-bottom: 25px;
}

.product-detail__label {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--apple-black);
    margin-bottom: 15px;
}

.product-detail__description {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
    border: 1px solid #eee;
}

.product-detail__text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--apple-grey);
}

.product-detail__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.size-btn-item {
    min-width: 60px;
    height: 45px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--apple-black);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.size-btn-item:hover {
    border-color: var(--apple-black);
    transform: translateY(-2px);
}

.size-btn-item.selected {
    background-color: var(--apple-black);
    color: #fff;
    border-color: var(--apple-black);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.size-btn-item.out-of-stock {
    background: #f5f5f7;
    color: #d1d1d6;
    border-color: #e5e5ea;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
    text-decoration: line-through;
}

.product-detail__qty {
    display: flex;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    background-color: #f5f5f7;
    border-radius: 14px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background-color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #fff;
}

.qty-input, 
.qty-control input[type=number] {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--apple-black);
    appearance: none;
    -moz-appearance: textfield; /* Firefox */
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button,
.qty-control input[type=number]::-webkit-inner-spin-button,
.qty-control input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail__actions {
    margin-top: 40px;
}

.btn-add-cart {
    width: 100%;
    height: 64px;
    background-color: #e31b23;
    /* Màu đỏ nổi bật */
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-add-cart:hover {
    background-color: #c41219;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(227, 27, 35, 0.25);
}

.btn-add-cart i {
    font-size: 2rem;
}

@media (max-width: 991px) {
    .detail-page {
        padding: 40px 0;
    }

    .product-detail {
        padding: 40px 30px;
        border-radius: 24px;
    }

    .product-detail__content {
        padding-left: 0;
        margin-top: 30px;
    }

    .product-detail__title {
        font-size: 3.2rem;
    }
}

/* Personal Info Page Styles */
.profile {
    padding: 100px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #6C63FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.profile-title-group h2 {
    font-size: 2.4rem;
    color: #333;
    margin-bottom: 5px;
}

.profile-title-group p {
    font-size: 1.4rem;
    color: #777;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section__title {
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.profile-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-input-group label {
    font-size: 1.4rem;
    color: #555;
    font-weight: 600;
}

.profile-input {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    color: #333;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    outline: none;
}

.profile-input:focus {
    border-color: var(--primary-purple);
    background: #fff;
    box-shadow: 0 0 0 3px var(--purple-05);
}

.profile-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.profile-actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.profile-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-btn--primary {
    background: #6C63FF;
    color: white;
}

.profile-btn--primary:hover {
    background: #5b54e0;
}

.profile-btn--secondary {
    background: #eee;
    color: #555;
}

.profile-btn--secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Scroll Navigation Button */
.scroll-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid #6C63FF;
}

.scroll-btn:hover {
    background: #6C63FF;
    transform: translateX(-50%) translateY(-5px);
}

.scroll-btn:hover i {
    color: #ffffff;
}

.scroll-btn i {
    font-size: 1.6rem;
    color: var(--primary-purple);
    transition: transform 0.4s ease;
}

.scroll-btn.up i {
    transform: rotate(180deg);
}

.scroll-btn.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Orders Page - Monochrome Light Style */
.orders-page {
    background-color: var(--background-color);
    padding: 50px 0 80px;
    /* Giảm từ 120px xuống 80px để đưa nội dung lên cao hơn */
    min-height: 100vh;
}

.orders-page__header {
    margin-bottom: 60px;
    /* Tăng từ 40px để tạo khoảng cách thoáng hơn với danh sách */
}

.orders-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.orders-page__back:hover {
    color: #000;
}

.orders-page__title {
    font-size: 3.5rem;
    /* Tăng nhẹ kích thước */
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 12px;
    /* Tăng khoảng cách với subtitle */
    line-height: 1.2;
}

.orders-page__subtitle {
    font-size: 1.6rem;
    color: #86868b;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.order-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
}

.order-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.order-card__id {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.order-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.4rem;
    color: #86868b;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Monochrome Status Styles */
.status-badge--pending {
    background: #f2f2f2;
    color: #666;
}

.status-badge--processing {
    background: #e8e8ed;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.status-badge--shipped {
    background: #000;
    color: #fff;
}

.status-badge--completed {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #1d1d1f;
}

.status-badge--cancelled {
    background: #fff;
    color: #86868b;
    border: 1px solid #d2d2d7;
    text-decoration: line-through;
}

.order-card__items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.order-item__img-wrapper {
    width: 80px;
    height: 80px;
    background: #fbfbfd;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.order-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item__info {
    flex: 1;
}

.order-item__name {
    font-size: 1.7rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
    /* Tăng khoảng cách với meta info */
    line-height: 1.4;
    /* Tăng line-height cho thoáng */
}

.order-item__meta {
    font-size: 1.4rem;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item__separator {
    opacity: 0.3;
}

.order-item__price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d1d1f;
}

.order-card__footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.order-card__total {
    text-align: right;
}

.order-card__total-label {
    font-size: 1.6rem;
    color: #86868b;
    margin-right: 10px;
}

.order-card__total-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #000;
}

.orders-empty {
    text-align: center;
    padding: 100px 0;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e1e1e1;
}

.orders-empty__icon {
    font-size: 6rem;
    color: #d2d2d7;
    margin-bottom: 20px;
}

.orders-empty__text {
    font-size: 1.8rem;
    color: #86868b;
    margin-bottom: 30px;
}

.orders-empty__btn {
    min-width: 200px;
    background: #000;
    color: #fff;
    border-radius: 50px;
}

/* Order Toolbar (Search & Filter) */
.order-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.order-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.order-search__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    font-size: 1.4rem;
}

.order-search__input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 12px;
    border: 1.5px solid #f0f0f2;
    background: #fafafa;
    font-size: 1.4rem;
    color: #1d1d1f;
    transition: all 0.3s ease;
    outline: none;
}

.order-search__input:focus {
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.order-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-filter__label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #86868b;
}

.order-filter__select {
    padding: 10px 15px;
    border-radius: 10px;
    border: 1.5px solid #f0f0f2;
    background: #fff;
    font-size: 1.4rem;
    color: #1d1d1f;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.order-filter__select:focus {
    border-color: #000;
}

@media (max-width: 768px) {
    .order-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .order-search {
        max-width: none;
    }

    .order-card {
        padding: 20px;
    }

    .order-card__header {
        flex-direction: column;
        gap: 15px;
    }

    .order-item {
        gap: 15px;
    }

    .order-item__img-wrapper {
        width: 60px;
        height: 60px;
    }

    .order-item__price {
        font-size: 1.4rem;
    }
}

/* =====================================================
   BỔ SUNG STYLE CHO TRANG PHỐI ĐỒ (style_outfits.php)
===================================================== */

.hero__location-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-choose-location {
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.btn-choose-location:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.forecast-dropdown {
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-size: 1.4rem;
    color: var(--apple-black);
    outline: none;
    cursor: pointer;
}

/* =====================================================
   MAP MODAL - ĐƯA VỀ CHUẨN MODAL HIỆN ĐẠI
===================================================== */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none; /* Ẩn mặc định */
    align-items: center;
    justify-content: center;
}

.map-modal.active {
    display: flex;
}

.map-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.map-modal__content {
    position: relative;
    width: 800px;
    max-width: 90%;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.map-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.map-modal__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--apple-black);
}

.map-modal__close {
    background: #f5f5f7;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.map-modal__close:hover {
    background: #ff3b30;
    color: #fff;
}

.map-modal__searchbox {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.map-modal__searchbox input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
}

.map-modal__searchbox button {
    padding: 0 20px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: var(--primary-blue);
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
}

.map-modal__map {
    height: 400px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.map-modal__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-modal__coords {
    font-size: 1.4rem;
    color: var(--apple-grey);
}

.map-modal__confirm {
    padding: 12px 30px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.map-modal__confirm:hover {
    background: #333;
}