.web__background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -2;
}

.web__background--overlay {
    background-color: var(--glass-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: -1;
}

.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: #fff;
}

.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__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);
    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: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;

    transition: all 0.3s ease;
}

.user-info__name b {
    color: red;
}

.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 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.hero__info {
    margin: 50px;
}

.info__greeting {
    color: var(--text-main);
    font-size: 4rem;
    font-weight: 700;
}

.info__weather {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-sub);
    font-size: 2.5rem;
    font-weight: 500;

    margin: 25px 0 10px 0;
}

.info__desc {
    color: var(--text-sub);
    font-size: 2rem;
    margin: 15px 0 10px 0;
}

.config-form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;

    color: var(--text-main);

    max-width: 1200px;
    margin: 0 auto;
}

.config-form__group {
    width: 30%;
    min-width: 250px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

.config-form__group:last-of-type {
    width: 50%;
}

.config-form__heading {
    font-size: 2rem;
    margin-bottom: 10px;
}

.config-form__options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    height: 25px;
}

.config-form__input {
    display: none;
}

.config-form__input--age {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px 15px;
    color: var(--text-main);
    font-size: 1.4rem;
    width: 80px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

.config-form__input--age:focus {
    border-color: #6C63FF;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.config-form__input--age::placeholder {
    color: var(--text-main);
    font-size: 1.2rem;
}

/* 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: 6px 12px;
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);

    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.config-form__label:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.config-form__input:checked+.config-form__label {
    background-color: white;
    color: black;

    border-color: transparent;

    font-weight: 700;

    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);

    transform: scale(1.05);
}

.config-form__label--color {
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    border: none;
    position: relative;
}

.config-form__input:checked+.config-form__label--color {
    transform: scale(1.2);
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    background-image: none;
}

.config-form__textarea {
    width: 100%;
    height: 80px;
    padding: 15px;

    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    color: var(--text-main);
    font-size: 1.6rem;
    resize: none;
    outline: none;

    transition: all 0.3s ease;
}

.config-form__textarea:focus {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

.config-form__textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.confirm__button {
    width: 100%;
    max-width: 300px;

    background-color: var(--button-bg);

    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);

    margin-top: 20px;
}

.confirm__button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.4);
}

/* Result Section */
.result {
    min-height: calc(100vh - 70px);
    position: relative;

    /* Dùng flex để dễ dàng căn giữa theo cả dọc và ngang */
    display: none; /* Ẩn mặc định */
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    animation: slideUpFade 0.8s ease-out forwards;
}

/* 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: 100%;
    max-width: 1000px;
    margin: 0 auto;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

    display: flex;
    gap: 40px;
    align-items: flex-start;

}

.result__visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visual-item {
    width: 100%;
    height: 250px;

    background-color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.visual-item:hover img {
    transform: scale(1.1);
}

.result__content {
    flex: 1.2;
    color: var(--text-main);
}

.result__tag {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: #6C63FF;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.result__title {
    font-size: 3.2rem;
    background: linear-gradient(45deg, #fff, #E0E0E0);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 20px;
}

.result__desc {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-sub);
    margin-bottom: 30px;
    font-style: italic;
    border-left: 3px solid #6C63FF;
    padding-left: 15px;
}

.result__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.item-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.3s;
}

.item-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

.item-icon {
    font-size: 1.8rem;
    color: #FF6584;
    width: 25px;
    text-align: center;
}

.result__actions {
    display: flex;
    gap: 15px;
}

.result__actions button:first-child {
    background-color: var(--button-bg);

    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.result__actions button:last-child {
    background-color: transparent;

    border: 2px solid white;

    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.actions__button {
    flex: 1;
}

.actions__button.is-saved {
    background-color: #ff4d4d !important;

    transform: scale(0.95);
}

/* Result Loading */
#loadingProgress {
    width: 100%;
    height: calc(100vh - 70px);

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 0;
    background-color: transparent;
}

.result-loading__box {
    background-color: #f9f9f9;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.result-loading__spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.result-loading__text {
    font-size: 16px;
    color: #555;
    font-weight: 600;
    margin: 0;
    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.5rem;
    color: var(--text-main-grey);
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
}

section {
    padding: 60px 20px;
}

/* Hero Section Mới */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 40px 20px;
    animation: slideUpFade 0.8s ease-out forwards;
    text-align: center;
}

.hero__title {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-main-grey);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero__subtitle {
    font-size: 2rem;
    color: var(--text-main-grey);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero__btn {
    padding: 15px 40px;
    font-size: 1.8rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.hero__btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(108, 99, 255, 0.4);
}

/* Divider */
.section-divider {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.5), transparent);
    margin: 60px auto;
}

/* Features Section */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.3);
}

.feature-card__icon {
    font-size: 5rem;
    color: #6C63FF;
    margin-bottom: 25px;
    background: rgba(108, 99, 255, 0.1);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
}

.feature-card__title {
    font-size: 2.4rem;
    color: var(--text-main-grey);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card__desc {
    font-size: 1.5rem;
    color: var(--text-main-grey);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    background: rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    padding: 80px 20px;
}

.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: linear-gradient(135deg, #FF6584, #6C63FF);
    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;
}

.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 {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 70px;

    margin-top: auto;

    color: var(--text-muted);

    display: flex;
    align-items: center;
    justify-content: space-around;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer__contact__github {
    color: var(--text-main);
    text-decoration: none;
    font-size: 3rem;

    transition: all 0.3s ease;
    ;
}

.footer__contact__github:hover {
    transform: scale(1.2);
}

.footer__contact__team {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__contact__mail {
    position: relative;

    font-size: 1.6rem;

    transition: all 0.3s ease;
}

.footer__contact__mail:hover {
    color: #fff;
    cursor: pointer;
    transform: translateY(-1px);
}

.copy-tooltip {
    position: absolute;
    top: -10px;
    right: calc(86% - 1px);

    background-color: #fff;

    color: #000;
    font-size: 1.2rem;
    font-weight: 600;

    padding: 5px 12px;

    border-radius: 4px;
    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

    pointer-events: none;

    z-index: 10;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
    top: -40px;
}

.copy-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;

    transform: translateX(-50%);

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
}

/* Trang bộ sưu tập */
.wardrobe__header {
    text-align: center;
    margin-bottom: 20px;
}

.wardrobe__title {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.wardrobe-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 12px 0 24px;
}

.wardrobe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.wardrobe-card__images {
    display: flex;
    align-self: center;
    justify-content: center;
    height: 160px;
    background: #fff;
    padding: 8px;
    gap: 8px;
}

.wardrobe-card__images img {
    width: 50%;
    border-radius: 6px;
    object-fit: cover;
}

.wardrobe-card__info {
    padding: 15px;
}

.wardrobe-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.wardrobe-card__title {
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.wardrobe-card__delete {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.wardrobe-card__delete:hover {
    transform: scale(1.2);
}

.wardrobe-card__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wardrobe-card__items li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-sub);
    font-size: 1.3rem;
}

.wardrobe-card__items li span {
    font-size: 1.4rem;
}

.wardrobe-card__items li p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 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: 400px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-drawer__header h2 {
    color: var(--text-main);
    font-size: 2rem;
    margin: 0;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2.4rem;
    cursor: pointer;
    transition: 0.3s;
}

.cart-close-btn:hover {
    color: #ff4d4d;
    transform: rotate(90deg);
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Trống hàng */
.cart-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-sub);
}

.cart-empty .empty-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.btn-shopping {
    background: transparent;
    border: 2px solid #6C63FF;
    color: #6C63FF;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-shopping:hover {
    background: #6C63FF;
    color: white;
}

/* Có hàng */
.cart-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
}

.cart-item__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item__info {
    flex: 1;
    color: var(--text-main);
}

.cart-item__name {
    font-size: 1.4rem;
    margin: 0 0 5px;
    font-weight: 500;
}

.cart-item__meta {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin-bottom: 5px;
}

.cart-item__price {
    font-size: 1.5rem;
    color: #FF6584;
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    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: white;
    text-align: center;
    font-weight: bold;
}

.cart-item__remove {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    transition: 0.3s;
}

.cart-item__remove:hover {
    transform: scale(1.2);
}

.cart-drawer__footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    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 rgba(108, 99, 255, 0.3);
}

/* Trang shop */
.shop__header {
    text-align: center;
    margin-bottom: 20px;
}

.shop__title {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.shop__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    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: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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;
}

.product-card__price {
    color: #FF6584;
    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);
}

/* Badge số lượng trên icon giỏ hàng */
.navbar__cart {
    position: relative;
}

.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 */
.detail-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.detail__image {
    width: 600px;
    height: 600px;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.detail__image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.detail__info {
    color: var(--text-main);
    padding: 0 20px;
}

.detail__name {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.detail__price {
    font-size: 2.8rem;
    font-weight: bold;
    color: #FF6584;
    margin-bottom: 25px;
}

.detail__desc {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid #6C63FF;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--text-main);
    line-height: 1.8;
}

.detail__size {
    margin-bottom: 30px;
}

.detail__label {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.size-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover:not(.disabled) {
    border-color: #6C63FF;
    color: #6C63FF;
    transform: translateY(-2px);
}

.size-btn.active {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.size-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
    text-decoration: line-through;
}

.detail__qty {
    margin-bottom: 40px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qty-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    width: 50px;
    height: 45px;
    pointer-events: none;
}

.stock-info {
    font-size: 1.4rem;
    color: #FF6584;
    font-style: italic;
}

.detail__buy-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 12px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 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: #6C63FF;
    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: #6C63FF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.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;
    }
}