.gift-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--base-bg)
}

.user-info .profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    display: flex;
    transition: all 0.2s ease-in-out
}

.user-info .profile-pic:hover {
    transform: scale(1.1)
}

.user-info .profile-pic img {
    border-radius: 50%;
    object-fit: contain
}

.cart-btn {
    padding: 16px;
    --btn-radius: 14px;
    width: auto;
    height: 52px;
    margin: 8px 20px;
    max-width: 140px;
    min-width: 110px;
    box-shadow: 0 8px 20px #ff2fa459
}

.mini-cart {
    position: absolute;
    left: 30px;
    width: 90%;
    max-width: 560px;
    height: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 1000;
    overflow: hidden
}

.mini-cart .content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px
}

.mini-cart .content tr:hover {
    background-color: var(--soft-color-hover) !important
}

.borderless-table td {
    vertical-align: middle
}

.mini-cart .footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--white)
}

.cart-wrapper:hover .mini-cart {
    opacity: 1;
    visibility: visible
}

.login-btn {
    --btn-color: var(--text-color);
    --btn-color-hover: inherit;
    --btn-border-color: inherit;
    --btn-border-color-hover: inherit;
    --btn-bg: inherit;
    --btn-bg-hover: #e4e3e7;
    padding: 16px;
    --btn-radius: 14px;
    max-width: 140px;
    width: auto;
    height: auto;
    margin: 10px 20px;
    box-shadow: none
}

.blue-theme {
    background-color: #ecf8fc;
    color: var(--blue);
    border-radius: 6px
}

.gift-footer {
    background-color: var(--white)
}

footer .logo {
    max-width: 226px
}

.footer-divider {
    position: relative;
    border-left: 1px solid var(--border-color)
}

footer .title {
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color)
}

footer .links li {
    margin-bottom: 8px
}

footer .links a {
    transition: .2s;
    font-size: var(--font-size-m);
    font-weight: 800
}

footer .links a:hover {
    color: var(--primary-hover)
}

.enamad {
    max-width: 110px
}

footer .copyright {
    border-top: 1px solid var(--border-color)
}

.box.blue {
    background-color: #5463bc
}

.box.blue .list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    margin: 0 auto 8px;
    text-align: right
}

.box.blue .list li a {
    color: var(--white) !important;
    font-size: var(--font-size-m)
}

.box.gift-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 34px;
    padding-right: 34px
}

.gift-card .media {
    width: 100%;
    max-width: 260px;
    object-fit: contain
}

.gift-card .title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin: 0 0 14px 0;
    color: var(--text-color)
}

.primary-badge {
    background: var(--primary);
    color: var(--white)
}

.gift-card .desc {
    color: var(--subtext-color);
    margin: 0 0 18px 0;
    max-width: 420px
}

.gift-card-list {
    overflow-x: auto;
    flex-wrap: nowrap
}

.gift-card-list .main-desc {
    display: none
}

.main-desc-box {
    opacity: 0;
    visibility: hidden
}

.main-desc-box:empty {
    padding: 0
}

.main-desc-box.show {
    opacity: 1;
    visibility: visible
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0
    }
    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        animation-timing-function: ease-in
    }
    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1
    }
    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg)
    }
    to {
        transform: perspective(400px)
    }
}

.flipInX {
    backface-visibility: visible !important;
    animation-name: flipInX;
    animation-duration: .9s
}

.gift-card-item.active .gift-wrapper:before {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 50%;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--gray-light);
    transform: translateX(50%)
}

.btn-link-soft {
    --btn-color: var(--subtext-color);
    --btn-color-hover: inherit;
    --btn-bg: var(--soft-color);
    --btn-bg-hover: var(--soft-color-hover);
    --btn-radius: 14px;
    border: none;
    box-shadow: none;
    padding: 4px 16px;
    font-size: var(--font-size-m);
    font-weight: 300;
    text-align: center;
    line-height: 35px
}

.btn-link-soft .btn-icon {
    font-size: var(--font-size-xl);
    vertical-align: middle;
    margin-inline-start: 4px
}

.products-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: auto;
    scrollbar-color: #cfcfcf #f1f1f1
}

.box.product-card {
    padding: 12px;
    flex-shrink: 0
}

.product-card .media img {
    border-radius: 12px
}

.product-card .title {
    margin: 8px 0;
    color: var(--title-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.product-card .price {
    font-size: var(--font-size-m);
    margin: 8px 0;
    font-weight: 800
}

.text-muted {
    color: var(--text-muted)
}

.c-link {
    color: var(--link)
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: var(--font-size-m);
    margin-bottom: 14px
}

.badge.info-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #2a30354d;
    backdrop-filter: blur(6px);
    color: var(--white);
    white-space: nowrap
}

.info-badge .flag {
    width: 24px;
    height: auto;
    object-fit: cover;
    border-radius: 2px
}

.product-card .actions {
    text-align: center;
    padding: 24px 0 4px
}

.product-card .actions .quantity {
    margin: auto
}

.btn-buy-now {
    --btn-bg: #35c77a;
    --btn-radius: 999px;
    --btn-bg-hover: #62d5a1;
    --btn-border-color: #35c77a;
    --btn-border-color-hover: #62d5a1;
    line-height: 32px;
    padding: 0 18px;
    font-size: var(--font-size-m);
    box-shadow: 0 4px 10px #35c77a59
}

.gift-wrapper {
    padding: 0 0 15px;
    position: relative
}

.box.category-card {
    transition: transform .2s ease, box-shadow .2s ease;
    text-align: center
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px #0000000f
}

.media {
    position: relative;
    margin-bottom: 24px
}

.category-card .media img {
    width: 100%;
    border-radius: 1rem
}

.category-card .title {
    font-weight: 800;
    font-size: var(--font-size-l)
}

#gift-highlight .media img {
    border-radius: 0.5rem
}

#gift-highlight .content-header {
    border-bottom: 1px solid var(--border-color)
}

#gift-highlight .regions img {
    width: 32px;
    border-radius: 4px;
    height: 23px
}

.btn-primary {
    --btn-radius: 8px;
    padding: 12px 16px
}

.box.pink {
    background: #e2bfc3;
    padding: 0
}

.support-info li {
    margin-bottom: 10px;
    line-height: 1.9
}

.support-info a:hover, .contact-cooperation a:hover {
    text-decoration: underline !important
}

#contact-us .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px
}

.social-icon {
    --btn-color: var(--link);
    --btn-radius: 22px;
    --btn-bg: var(--white);
    --btn-bg-hover: var(--white);
    --btn-color-hover: var(--link);
    --btn-border-color: transparent;
    --btn-border-color-hover: var(--light-border);
    padding: 14px;
    width: 86px;
    height: 86px;
    transition: transform 0.3s ease
}

#contact-us .social-links .social-icon i {
    margin-bottom: 8px
}

#contact-us .social-links .social-icon:hover {
    transform: scale(1.1)
}

header .home, header .back {
    font-size: var(--font-size-l);
    color: var(--text-color);
    transition: color .2s ease;
    padding: 10px 0
}

header .home:hover, header .back:hover {
    color: var(--primary)
}

.gift-product-content {
    background: var(--white);
    border-radius: 24px;
    border: 2px solid var(--light-border);
    padding: 32px
}

.text-desc {
    font-size: var(--font-size-l)
}

.info-bar {
    background-color: #f5f4f4;
    border-radius: 12px;
    border: 1px solid var(--light-border)
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative
}

#gift-product-form .form-group input {
    display: none
}

#gift-product-form .form-group.regions {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px
}

#gift-product-form .form-group.regions label {
    padding: 8px 12px;
    background: #f3f3f3;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
    color: var(--text-muted);
    text-align: center
}

#gift-product-form .form-group.regions label img {
    margin-left: 8px;
    font-weight: bold;
    width: 30px;
    border-radius: 4px
}

#gift-product-form .form-group.regions input:checked + label {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary)
}

#gift-product-form .form-group.regions input:checked + label img {
    display: none
}

#gift-product-form .form-group.amounts {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px
}

#gift-product-form .form-group.amounts label {
    text-align: center;
    padding: 12px 0;
    background: var(--soft-color);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-muted);
    font-size: var(--font-size-m)
}

#gift-product-form .form-group.amounts input:checked + label {
    background: var(--primary-lighter);
    color: var(--primary)
}

.currency .total {
    font-size: var(--font-size-xl)
}

.btn-outline-primary {
    box-shadow: 0 8px 20px var(--primary-lighter);
    padding: 16px;
    border: 1px solid var(--primary)
}

.payment-box {
    background-color: #ff9372;
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.sort-toggle {
    --btn-color: #1e88ff;
    --btn-color-hover: #1e88ff;
    --btn-bg: transparent;
    --btn-bg-hover: #eef6ff;
    --btn-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: none;
    padding: 14px 18px
}

.sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 180px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .2s ease;
    z-index: 10;
}

.sort-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: right;
    font-size: 14px;
    cursor: pointer
}

.sort-item:hover {
    background: #f5f7fa
}

.comment-sort.active .sort-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.comment-sort.active .icon-chevron {
    transform: rotate(180deg)
}

.box.gray {
    background: #f2f2f2;
    border-radius: 10px;
    padding: 14px 16px
}

.box.gray .box.gray {
    background: #e6e6e6;
    margin-top: 14px
}

.box.gray .name, .box.gray .comment {
    margin-bottom: 6px
}

.box.gray .date {
    font-size: var(--font-size-m);
    color: var(--link)
}

.step-list {
    list-style: disc inside
}

.step-list li {
    line-height: 1.9;
    font-size: var(--font-size-l)
}

.tutorial-faq-header {
    display: flex;
    margin-bottom: 24px;
    align-items: center;
    gap: 8px
}

article ol {
    padding-right: 24px;
    margin-bottom: 24px;
    list-style-type: decimal
}

article ol li {
    line-height: 1.9;
    margin-bottom: 8px
}

article p {
    text-align: justify;
    font-size: var(--font-size-l)
}

article h2 {
    color: var(--link)
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: var(--font-size-l);
    color: var(--link)
}

.bottom-navigation {
    position: fixed;
    width: 100%;
    bottom: 0;
    right: 0;
    padding: 14px 10px;
    box-shadow: var(--box-shadow);
    display: none;
    background: var(--white)
}

.back-to {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 16px;
    cursor: pointer;
    border-radius: 4px
}

.back-to:hover {
    background: var(--gray-light)
}

[data-toggle="portal"] i {
    pointer-events: none
}

[data-toggle="portal"] {
    cursor: pointer
}

.portal {
    background: white;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-light);
    z-index: var(--on-overlay);
    position: fixed;
    border-radius: 20px;
    visibility: hidden;
    transform: rotateY(90deg);
    transition: all 0.2s ease-in-out
}

.portal.show {
    visibility: visible;
    transform: rotateY(0)
}

.portal-list {
    font-size: 12px
}

.portal-list li:not(:last-child) {
    border-bottom: 1px solid var(--gray-light)
}

.portal-list > li a, .portal-list > li span {
    padding: 16px 30px;
    display: flex;
    align-items: center
}

.portal-list > li .icon {
    font-size: 16px;
    margin-left: 10px
}

.portal-list > li:hover {
    background-color: var(--gray-light)
}

.portal-list > li:first-child {
    border-radius: 20px 20px 0 0
}

.portal-list > li:last-child {
    border-radius: 0 0 20px 20px
}



.modal-btn_login {
    width: 100%;
    font-size: 20px
}

.modal-btn_login .btn {
    font-size: clamp(14px, 0.95rem, 16px)
}


#login-password, #login-otp {
    display: none
}

.counter-otp, .resend-otp {
    display: none
}

.counter-otp .btn {
    --btn-color: var(--blue);
    --btn-border-color: var(--blue);
    background-color: var(--white);
    border-radius: 4px;
    font-size: 12px
}

.counter-otp .btn:hover {
    --btn-color-hover: var(--white);
    --btn-border-color-hover: var(--blue);
    background-color: var(--blue)
}

[data-stepcontent].active {
    display: block !important
}

.cart-br-bottom {
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 16px
}

.product-remove {
    font-size: 17px;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center
}

.product-remove:hover {
    background-color: var(--gray-light)
}

.current-cart .cart-total, .current-cart .cart-total .amount:after {
    color: var(--desc)
}

.check-out .item {
    font-size: 12px;
    color: var(--desc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0
}

.separator {
    height: 30px;
    width: 100%;
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}

.separator::before, .separator::after {
    content: '';
    width: 30px;
    height: 30px;
    background-color: var(--base-bg);
    border-radius: 50%;
    position: absolute
}

.separator::before {
    right: -12px
}

.separator::after {
    left: -12px
}

.separator .dashed {
    height: 1px;
    width: 100%;
    border-bottom: 1px dashed var(--gray-light)
}

.current-cart .timeline {
    --timeline-color: var(--gray-light);
    --step-color: var(--gray);
    background: var(--white);
    padding: 16px 20px 30px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    direction: ltr;
    border-radius: 4px 4px 0 0
}

.current-cart .timeline-item:has(~.active) {
    --timeline-color: var(--success);
    --step-color: var(--success)
}

.current-cart .timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    color: var(--step-color);
    margin-bottom: 20px
}

.current-cart .timeline .timeline-item:not(:first-child) {
    width: clamp(36px, 6rem, 200px);
    flex-grow: 1
}

.current-cart .timeline .timeline-item:not(:first-child):before {
    content: '';
    width: 90%;
    height: 2px;
    display: inline-block;
    background: var(--timeline-color);
    margin: 0 4px
}

.current-cart .timeline .timeline-item:after {
    content: attr(data-title);
    position: absolute;
    font-size: 12px;
    bottom: -20px;
    right: 0;
    transform: translateX(calc(50% / 2))
}

.current-cart .timeline-item .timeline-icon {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    color: var(--white);
    font-size: 14px
}

.current-cart .timeline .timeline-item .timeline-icon .icon {
    min-width: 30px;
    height: 30px;
    display: inline-block;
    border-radius: 50%;
    background: var(--step-color);
    line-height: 34px;
    text-align: center;
    margin: auto
}

.current-cart .timeline .timeline-item.active {
    --timeline-color: var(--success);
    --step-color: var(--success)
}

.payment-fixed {
    position: fixed;
    bottom: 0;
    background: var(--white);
    padding: 20px;
    right: 0
}

.payment-fixed .btn {
    display: none;
    width: 100%
}

.payment-fixed .btn.active, .payment-fixed .btn.show {
    display: block
}

.pb-100 {
    padding-bottom: 100px
}


.tab-contents {
    height: 90vh
}

.tab-content {
    height: 100%;
    width: 100%
}

@media (max-width: 1023px) {
    .current-cart .box {
        border-radius: 0
    }

    .separator::before, .separator::after {
        display: none
    }
}

@media (min-width: 1023px) {
    #gift-product-panel {
        position: sticky;
        top: 0;
        align-self: flex-start
    }
}

@media (max-width: 992px) {
    .gift-card {
        padding: 22px
    }

    .box.blue {
        padding: 14px
    }

    .gift-card .media {
        width: 194px
    }

    .gift-card .title {
        font-size: var(--font-size-l)
    }

    .gift-card .desc {
        max-width: 100%
    }

    .footer-divider {
        border: none
    }
}

@media (min-width: 768px) {
    .box.pink .media img {
        width: 100%
    }

    .info-list {
        flex-direction: row;
        justify-content: space-between
    }

    .info-item {
        justify-content: center;
        flex: 1;
        position: relative
    }

    .info-item-divider::after {
        content: "";
        position: absolute;
        left: -12px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 28px;
        background: rgba(0, 0, 0, .1)
    }

    .section-title {
        font-size: 1.5rem
    }

    .section-subtitle {
        font-size: 1.2rem
    }

    .section-description {
        font-size: 0.9rem
    }

    .important-notes li {
        font-size: 0.9rem
    }
}

@media (max-width: 767px) {
    .gift-header {
        background: var(--white);
        border-bottom: 1px solid var(--gray-light)
    }

    .bottom-navigation {
        display: block
    }

    .bottom-navigation .list {
        display: flex
    }

    .bottom-navigation .list .item {
        flex-grow: 1;
        text-align: center;
        list-style: none;
        cursor: pointer
    }

    .bottom-navigation .list .item .icon {
        font-size: 18px;
        color: var(--gray-dark)
    }

    .bottom-navigation .list .item .txt {
        font-size: 12px;
        color: var(--gray-dark)
    }

    body {
        padding-bottom: 70px
    }

    .current-cart .card-item {
        position: relative
    }

    .current-cart .card-item .product-remove {
        position: absolute;
        top: 0;
        left: 0
    }

    .current-cart .mobile-prices {
        position: absolute;
        bottom: 4px;
        left: 0
    }

    .current-cart table.borderless-table td.no-title::before {
        content: none !important;
        display: none;
        display: inline-block
    }

    .current-cart .quantity {
        max-width: none
    }

    .current-cart table div[data-title] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between
    }

    .current-cart table div[data-title]::before {
        content: attr(data-title) ' :';
        font-weight: 500;
        color: #666;
        margin-left: 15px;
        padding: 3px;
        text-align: start
    }

    .current-cart .quantity .plus, .current-cart .quantity .minus {
        padding: 6px
    }

    .current-cart .quantity input {
        padding: 2px 20px
    }

}

@media (max-width: 576px) {
    .gift-card {
        flex-direction: column;
        text-align: center
    }

    .gift-card-media {
        width: 100%
    }

    .btn-link-soft {
        width: 100%
    }
}

@media (max-width: 559px) {
    .mini-cart {
        left: -4px;
        width: 100vw;
        padding: 5px !important
    }
}