.footer-margin_bottom_5 { margin-bottom: 5px; }
.footer-telegram { background-image: linear-gradient(266deg,#4e60d3,#4e60d3 35%,#4e60d3 68%,#4e60d3) !important; }
.footer-aparat { background-image: linear-gradient(266deg,#d52d88,#d52d88 35%,#d52d88 68%,#d52d88) !important; }
.btn_with_100 { width: 100%; }
.typeahead { right: 0px; text-align: right; }
.property_type_background { background: #d5dadd; width: 30%; height: 40px; padding: 10px; }
.property_value_background { background: #d5dadd; width: 65%; height: 40px; padding: 10px; }
.product-carousel div.inner-container { position: relative; }
.product-carousel .img-main { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

.login_box {
    border: none;
    border-radius: 20px;
    padding: 40px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    margin-top: 40px;
    margin-bottom: 60px;
}

header.main-header {
    padding-top: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 65%);
    border-bottom: 1px solid #edf2f7;
}
header.main-header .logo-area {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
}
header.main-header .search-area form.search input {
    height: 50px;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(10, 111, 181, .08);
    transition: all .2s ease;
}
header.main-header .search-area form.search input:focus {
    border-color: #0a86cc;
    box-shadow: 0 0 0 3px rgba(10, 134, 204, .12), 0 8px 24px rgba(10, 111, 181, .12);
}
header.main-header .search-area form.search button {
    height: 50px;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(180deg, #0a86cc 0%, #0d4f87 100%);
}
header.main-header .user-login a,
header.main-header .cart a.btn {
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}
header.main-header .cart a.btn {
    background: linear-gradient(180deg, #f25f7a 0%, #da3f61 100%);
    border: none;
}
header.main-header .cart a.btn span.count-cart {
    color: #da3f61;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
}

.home-modern {
    background: radial-gradient(circle at 10% 0%, rgba(10, 134, 204, 0.08), transparent 40%),
                radial-gradient(circle at 90% 10%, rgba(242, 95, 122, 0.07), transparent 35%),
                #f7fbff;
    padding-bottom: 24px;
    overflow-x: hidden;
}
.home-modern .card {
    border: 1px solid #e8f0f7;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(16, 56, 94, 0.06);
}
.home-modern .home-intro {
    display: flex;
    align-items: flex-start;
    margin: 4px 0 14px;
    padding: 18px;
    background: linear-gradient(130deg, #0b4f88 0%, #0d6aa9 55%, #0a86cc 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.home-modern .home-intro::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -70px;
    left: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.home-modern .home-intro__content,
.home-modern .home-intro__stats {
    position: relative;
    z-index: 2;
}
.home-modern .home-intro__tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    margin-bottom: 10px;
}
.home-modern .home-intro__title {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}
.home-modern .home-intro__desc {
    margin-bottom: 14px;
    opacity: 0.95;
    max-width: 680px;
    line-height: 2;
}
.home-modern .home-intro__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.home-modern .home-intro__badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 7px 12px;
    font-size: 13px;
}
.home-modern .home-intro__stats {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.home-modern .home-intro__stats .stat-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 10px 12px;
    text-align: center;
}
.home-modern .home-intro__stats .stat-item strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
}
.home-modern .home-intro__stats .stat-item span {
    font-size: 13px;
    opacity: 0.9;
}
.home-modern .modern-slider,
.home-modern .modern-product-widget,
.home-modern .modern-banner-ads .widget-banner,
.home-modern .between-banner-row .widget-banner {
    overflow: hidden;
}
.home-modern .modern-slider {
    margin-bottom: 18px;
}
.home-modern .modern-slider .carousel-item img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    display: block;
}
.home-modern .modern-banner-ads .widget-banner,
.home-modern .between-banner-row .widget-banner {
    transition: transform .3s ease, box-shadow .3s ease;
}
.home-modern .modern-banner-ads .widget-banner:hover,
.home-modern .between-banner-row .widget-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(8, 43, 76, 0.16);
}
.home-modern .modern-product-widget {
    padding: 0;
    margin-bottom: 12px;
}
.home-modern .modern-product-widget .card-header {
    padding: 14px 16px;
    border-bottom: 1px solid #edf3f9;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.home-modern .modern-product-widget .card-title span {
    font-size: 16px;
    font-weight: 700;
    color: #10385e;
}
.home-modern .modern-product-widget .view-all {
    border-radius: 999px;
    border: 1px solid #d7e8f6;
    padding: 6px 14px;
    color: #0b66a2;
    font-weight: 600;
    background: #fff;
}
.home-modern .product-carousel .item {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0 !important;
    transition: none;
}
.home-modern .product-carousel .item:hover {
    transform: none;
    box-shadow: none;
}
.home-modern .product-carousel .item .post-title {
    min-height: 44px;
}
.home-modern .product-carousel .item .post-title a {
    color: #10385e;
    font-size: 13px;
    line-height: 1.8;
}
.home-modern .product-carousel .item .price ins span {
    color: #0a7f3f;
    font-weight: 800;
}
.home-modern .category-row,
.home-modern .between-banner-row,
.home-modern .most-view-row {
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .home-modern .home-intro {
        flex-direction: column;
        padding: 18px;
        border-radius: 16px;
    }
    .home-modern .home-intro__title { font-size: 22px; }
    .home-modern .home-intro__stats { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .home-modern .home-intro__stats { grid-template-columns: 1fr; }
    .home-modern .home-intro__badges span { width: 100%; justify-content: center; }
}

html, body { overflow-x: hidden; }

.register-modern {
    border-radius: 24px;
    border: 1px solid #eef2f6;
    box-shadow: 0 20px 40px rgba(11, 60, 104, 0.08);
    background: #ffffff;
    direction: rtl;
    text-align: right;
}
.register-modern{
    position:relative;
    padding-top:70px;
}

.register-modern .register-header{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px dashed #e2e8f0;
}

.register-modern .logo{
    position:absolute;
    top:-35px;
    left:50%;
    transform:translateX(-50%);
    width:70px;
    height:70px;
    border-radius:18px;
    background:#fff;
    border:1px solid #e6edf5;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 15px 30px rgba(0,0,0,0.15);
    z-index:5;
}

.register-modern .logo img{
    max-width:40px;
    max-height:40px;
}


.register-modern .form-account,
.register-modern .form-account-row,
.register-modern .form-account-agree,
.register-modern .account-box-footer,
.register-modern .parent-btn {
    direction: rtl;
    text-align: right;
}

.register-modern .account-box-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 0;
    text-align: right;
}

.register-modern .message-light {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.6;
}
.register-modern .message-light i {
    font-size: 18px;
}

.register-modern .form-grid.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.register-modern .field-group { min-width: 0; }
.register-modern .field-group-full { grid-column: 1 / -1; }

.register-modern .form-account-title {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.register-modern .input-wrapper {
    position: relative;
    width: 100%;
}

.register-modern .icon-floating {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}

.register-modern .input-field {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #2d3748;
    padding-right: 42px;
    padding-left: 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.register-modern .input-field.select-custom {
    padding-right: 42px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
}

.register-modern .input-field.ltr-input {
    direction: ltr;
    text-align: left;
}

.register-modern .input-field.ltr-input::placeholder {
    text-align: left;
}

.register-modern .input-wrapper:focus-within .icon-floating {
    color: #3182ce;
}

.register-modern .input-field:focus {
    border-color: #3182ce;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
    outline: none;
}

.register-modern .legal-section {
    border: 1.5px dashed #cbd5e0;
    border-radius: 16px;
    padding: 20px;
    background: #fdfefe;
    margin: 24px 0;
}

.register-modern .legal-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #2b6cb0;
    margin-bottom: 16px;
    background: #ebf8ff;
    padding: 6px 12px;
    border-radius: 8px;
}

.register-modern .form-account-agree {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
    flex-wrap: wrap;
}

.register-modern .custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.register-modern .custom-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.register-modern .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.register-modern .custom-checkbox input:checked ~ .checkmark {
    background-color: #3182ce;
    border-color: #3182ce;
}

.register-modern .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.register-modern .custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.register-modern .agree-text {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
}

.register-modern .btn-link-border {
    color: #3182ce;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #3182ce;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.register-modern .btn-link-border:hover {
    color: #2b6cb0;
    border-bottom-style: solid;
}

.register-modern .register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px rgba(49, 130, 206, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}

.register-modern .register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(49, 130, 206, 0.35);
}

.register-modern .account-box-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    font-size: 14px;
    color: #718096;
}

.register-modern .login-link {
    font-size: 15px;
}

.register-modern .alert-danger {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 6px;
}

@media (max-width: 767px) {
    .register-modern {
        padding: 24px 20px;
        margin-top: 20px;
        border-radius: 16px;
    }
    .register-modern .form-grid.two-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .register-modern .account-box-title {
        font-size: 18px;
    }
    .register-modern .legal-section {
        padding: 16px;
        margin: 16px 0;
    }
    .register-modern .logo {
        width: 50px;
        height: 50px;
    }
    .register-modern .logo img {
        max-height: 30px;
        max-width: 30px;
    }
}


/* Home Page Redesign v3 - Avant */
.home-avant {
    background:
        radial-gradient(1200px 460px at 95% -5%, rgba(14, 116, 144, .20), transparent 65%),
        radial-gradient(900px 380px at 0% 10%, rgba(251, 146, 60, .14), transparent 60%),
        linear-gradient(180deg, #f5f8fc 0%, #f2f6fb 100%);
    padding-bottom: 34px;
    overflow-x: hidden;
}

.home-avant .container {
    max-width: 1320px;
}

.home-avant .card {
    border: 1px solid #dfe8f2;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(12, 39, 68, .05);
    overflow: hidden;
}

.home-avant .avant-hero {
    margin: 12px 0 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
    gap: 16px;
    background: linear-gradient(125deg, #0f172a 0%, #0c4a6e 45%, #0e7490 100%);
    color: #fff;
    position: relative;
}

.home-avant .avant-hero::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.home-avant .avant-hero > * {
    position: relative;
    z-index: 1;
}

.home-avant .avant-chip {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
    margin-bottom: 10px;
}

.home-avant .avant-hero h1 {
    font-size: 30px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #fff;
}

.home-avant .avant-hero p {
    max-width: 680px;
    font-size: 14px;
    line-height: 1.95;
    opacity: .95;
    margin-bottom: 14px;
}

.home-avant .avant-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-avant .avant-hero__actions .btn {
    border-radius: 12px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-avant .avant-hero__actions .btn-main {
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
}

.home-avant .avant-hero__actions .btn-soft {
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.home-avant .avant-hero__right {
    display: grid;
    gap: 10px;
}

.home-avant .metric-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .10);
    padding: 12px 14px;
}

.home-avant .metric-card span {
    display: block;
    font-size: 12px;
    opacity: .9;
    margin-bottom: 4px;
}

.home-avant .metric-card strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
}

.home-avant .avant-highlight {
    margin: 0 0 10px;
}

.home-avant .hero-slider {
    margin: 0;
    border-radius: 16px;
}

.home-avant .hero-slider .carousel-item img {
    height: clamp(170px, 24vw, 285px);
    object-fit: cover;
}

.home-avant .hero-slider .carousel-control-next,
.home-avant .hero-slider .carousel-control-prev {
    width: 34px;
    height: 34px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    margin: 0 8px;
    background: rgba(15, 23, 42, .35);
}

.home-avant .avant-aside {
    display: grid;
    gap: 10px;
}

.home-avant .trust-mini {
    padding: 10px;
    display: grid;
    gap: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-avant .trust-mini span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #24496f;
    padding: 7px 9px;
    border-radius: 10px;
    background: #f3f8fd;
    border: 1px solid #e1ecf6;
}

.home-avant .trust-mini--inline {
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-avant .trust-mini--inline span {
    min-height: 30px;
    margin: 0;
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f6f9fd;
    border: 1px solid #dce8f4;
}

.home-avant .side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-avant .side-grid .widget-banner,
.home-avant .v3-between .widget-banner {
    margin-bottom: 0;
    border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-avant .side-grid .widget-banner:hover,
.home-avant .v3-between .widget-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(10, 41, 71, .16);
}

.home-avant .side-grid img,
.home-avant .v3-between img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.home-avant .avant-categories {
    margin: 0 0 14px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.home-avant .avant-categories header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.home-avant .avant-categories h2 {
    margin: 0;
    font-size: 18px;
    color: #173b60;
}

.home-avant .avant-categories p {
    margin: 0;
    font-size: 12px;
    color: #5a7895;
}

.home-avant .avant-categories__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-avant .cat-pill-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    border: 1px solid #dfebf6;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    transition: all .2s ease;
}

.home-avant .cat-pill-card:hover {
    border-color: #0e7490;
    box-shadow: 0 12px 20px rgba(14, 116, 144, .16);
}

.home-avant .cat-index {
    min-width: 33px;
    height: 33px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #0b4f69;
    background: #dff4fa;
}

.home-avant .cat-name {
    font-size: 13px;
    font-weight: 700;
    color: #193f64;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-avant .cat-arrow {
    font-size: 11px;
    font-weight: 700;
    color: #0f6d89;
}

.home-avant .v3-row {
    margin: 0 0 12px;
}

.home-avant .avant-product-widget {
    margin-bottom: 0;
    border-radius: 18px;
}

.home-avant .avant-product-widget .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e9f1f8;
}

.home-avant .v3-tone-a .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.home-avant .v3-tone-b .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
}

.home-avant .avant-product-widget .card-title span {
    font-size: 16px;
    font-weight: 800;
    color: #173a5e;
}

.home-avant .avant-product-widget .card-header small {
    display: block;
    font-size: 11px;
    margin-top: 2px;
    color: #6a84a0;
}

.home-avant .avant-product-widget .view-all {
    border: 1px solid #d8e6f4;
    border-radius: 999px;
    background: #fff;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 700;
    color: #0d5f88;
}

.home-avant .product-carousel .item {
    background: transparent;
    border: none;
    margin: 0 !important;
    padding: 0;
}

.home-avant .product-carousel .inner-container {
    border: 1px solid #e9f1f9;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fbff;
}

.home-avant .product-carousel .img-main {
    object-fit: cover;
}

.home-avant .product-carousel .post-title {
    margin-top: 8px;
    min-height: 40px;
}

.home-avant .product-carousel .post-title a {
    color: #1d4062;
    font-size: 12px;
    line-height: 1.8;
}

.home-avant .product-carousel .price {
    margin-top: 5px;
}

.home-avant .product-carousel .price del span {
    font-size: 11px;
    color: #91a5b9;
}

.home-avant .product-carousel .price ins span {
    font-size: 14px;
    color: #0f8a42;
    font-weight: 800;
}

.home-avant .v3-between {
    margin: 0 0 12px;
}

.home-avant .v3-most-view {
    margin-bottom: 8px;
}

@media (max-width: 1199px) {
    .home-avant .avant-hero {
        grid-template-columns: 1fr;
    }

    .home-avant .avant-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .home-avant .avant-hero {
        padding: 18px;
    }

    .home-avant .avant-hero h1 {
        font-size: 24px;
    }

    .home-avant .hero-slider .carousel-item img {
        min-height: 210px;
    }

    .home-avant .side-grid {
        margin-top: 4px;
    }

    .home-avant .avant-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-avant {
        padding-bottom: 18px;
    }

    .home-avant .card {
        border-radius: 12px;
    }

    .home-avant .avant-hero {
        margin-top: 8px;
        padding: 14px;
        gap: 10px;
        border-radius: 16px;
    }

    .home-avant .avant-chip {
        font-size: 10px;
        padding: 4px 9px;
    }

    .home-avant .avant-hero h1 {
        font-size: 19px;
        line-height: 1.65;
        margin-bottom: 7px;
    }

    .home-avant .avant-hero p {
        font-size: 12px;
        line-height: 1.8;
        margin-bottom: 10px;
    }

    .home-avant .avant-hero__actions {
        gap: 7px;
    }

    .home-avant .avant-hero__actions .btn {
        min-height: 36px;
        font-size: 11px;
        padding: 0 11px;
    }

    .home-avant .metric-card {
        padding: 9px 10px;
        border-radius: 10px;
    }

    .home-avant .metric-card span {
        font-size: 10px;
    }

    .home-avant .metric-card strong {
        font-size: 18px;
    }

    .home-avant .hero-slider .carousel-item img {
        height: 132px;
        border-radius: 12px;
    }

    .home-avant .hero-slider .carousel-control-next,
    .home-avant .hero-slider .carousel-control-prev {
        width: 28px;
        height: 28px;
        margin: 0 5px;
    }

    .home-avant .trust-mini {
        gap: 5px;
        padding: 8px;
    }

    .home-avant .trust-mini span {
        font-size: 10px;
        padding: 6px 7px;
    }

    .home-avant .trust-mini--inline {
        margin-top: 6px;
        justify-content: stretch;
        gap: 5px;
        padding: 0;
    }

    .home-avant .trust-mini--inline span {
        flex: 1 1 calc(33.333% - 4px);
        min-height: 28px;
        justify-content: center;
        text-align: center;
        border-radius: 999px;
        font-size: 9px;
        padding: 4px 5px;
    }

    .home-avant .side-grid {
        gap: 7px;
    }

    .home-avant .avant-categories {
        padding: 10px;
        border-radius: 14px;
    }

    .home-avant .avant-categories header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .home-avant .avant-categories h2 {
        font-size: 13px;
        margin: 0;
    }

    .home-avant .avant-categories p {
        display: none;
    }

    .home-avant .avant-categories__grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        grid-template-columns: none;
    }

    .home-avant .avant-categories__grid::-webkit-scrollbar {
        display: none;
    }

    .home-avant .cat-pill-card {
        flex: 0 0 auto;
        min-width: 128px;
        max-width: 150px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 7px 9px;
        border-radius: 999px;
        min-height: 0;
        background: #fff;
        border-color: #d8e8f4;
    }

    .home-avant .cat-index {
        min-width: 22px;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        font-size: 9px;
    }

    .home-avant .cat-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        line-height: 1.2;
        min-height: 0;
        font-size: 10px;
        font-weight: 800;
        max-width: 82px;
    }

    .home-avant .cat-arrow {
        display: none;
    }

    .home-avant .avant-product-widget .card-header {
        padding: 9px 10px;
    }

    .home-avant .avant-product-widget .card-title span {
        font-size: 13px;
    }

    .home-avant .avant-product-widget .card-header small {
        font-size: 10px;
    }

    .home-avant .avant-product-widget .view-all {
        font-size: 10px;
        padding: 5px 9px;
    }

    .home-avant .product-carousel .inner-container {
        border-radius: 9px;
    }

    .home-avant .product-carousel .post-title {
        min-height: 34px;
        margin-top: 6px;
    }

    .home-avant .product-carousel .post-title a {
        font-size: 11px;
        line-height: 1.7;
    }

    .home-avant .product-carousel .price del span {
        font-size: 9px;
    }

.home-avant .product-carousel .price ins span {
        font-size: 12px;
    }
}

/* Profile Dropdown Cleanup */
header.main-header .user-login.dropdown.margin-top-user {
    float: left;
}

header.main-header .user-login.dropdown.margin-top-user > a.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid #dde7f2;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    color: #2f4f6e;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(18, 56, 90, .08);
}

header.main-header .user-login.dropdown.margin-top-user > a.dropdown-toggle i {
    font-size: 16px;
    color: #5f7e9b;
}

header.main-header .user-login.dropdown.margin-top-user > a.dropdown-toggle::after {
    margin-right: 2px;
    color: #7a95ae;
}

header.main-header .user-login .dropdown-menu.user-login-profile {
    top: 40px !important;
    right: auto !important;
    left: 0 !important;
    min-width: 210px;
    width: 220px !important;
    max-width: 240px;
    padding: 4px !important;
    border: 1px solid #dbe6f2;
    border-radius: 14px;
    box-shadow: 0 16px 26px rgba(13, 45, 76, .16);
    background: #ffffff;
    overflow: hidden;
}

header.main-header .user-login .dropdown-menu.user-login-profile li {
    margin: 0;
}

header.main-header .user-login .dropdown-menu.user-login-profile li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 13px;
    color: #375a7a;
    white-space: nowrap;
    border: 1px solid transparent;
}

header.main-header .user-login .dropdown-menu.user-login-profile li a:hover {
    background: #f5f9fe;
    border-color: #e1ecf8;
    color: #124a78;
}

header.main-header .user-login .dropdown-menu.user-login-profile hr {
    margin: 3px 8px;
    border-top: 1px solid #ecf2f8;
}

header.main-header .user-login .dropdown-menu.user-login-profile .icon_shops {
    width: 14px;
    height: 14px;
    opacity: .75;
    order: 2;
}

header.main-header .user-login .dropdown-menu.user-login-profile .now-ui-icons {
    order: 2;
    font-size: 16px;
    color: #6f8aa4;
}

header.main-header .user-login .dropdown-menu.user-login-profile li a span {
    order: 1;
}

@media (max-width: 767px) {
    header.main-header .user-login.dropdown.margin-top-user > a.dropdown-toggle {
        min-height: 32px;
        padding: 5px 10px;
        font-size: 12px;
    }

    header.main-header .user-login .dropdown-menu.user-login-profile {
        left: 0 !important;
        right: auto !important;
        min-width: 188px;
        width: 196px !important;
        max-width: 210px;
        top: 36px !important;
    }

    header.main-header .user-login .dropdown-menu.user-login-profile li a {
        min-height: 34px;
        font-size: 12px;
        padding: 6px 9px;
    }
}

/* Address Edit Page */
.address-edit-page {
    padding-top: 10px;
}

.address-edit-page .profile-page .content-section.default {
    border-radius: 18px;
    border: 1px solid #dfe9f3;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 45, 76, .08);
    padding: 18px 16px 10px;
}

.address-edit-page .title-tab-content {
    font-size: 24px;
    font-weight: 800;
    color: #163d63;
    margin-bottom: 14px;
}

.address-edit-page label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #355979;
}

.address-edit-page .input-field {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #d9e6f3;
    background: #f8fbff;
    color: #274763;
    font-size: 13px;
    padding: 10px 12px;
    transition: all .2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.address-edit-page .input-field:focus {
    background: #fff;
    border-color: #7eb3dc;
    box-shadow: 0 0 0 3px rgba(37, 122, 183, .14);
    outline: none;
}

.address-edit-page textarea.input-field {
    min-height: 72px;
    resize: vertical;
}

.address-edit-page .modal-body .col-md-12 {
    margin-bottom: 10px;
}

.address-edit-page .address-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.address-edit-page .address-edit-actions hr {
    display: none;
}

.address-edit-page .address-edit-actions .btn {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
}

.address-edit-page .address-edit-actions .btn[type="submit"] {
    background: linear-gradient(180deg, #0e7cc0 0%, #0b5f95 100%);
    border-color: #0b5f95;
    color: #fff;
}

.address-edit-page .address-edit-actions a.btn {
    background: #eef4fa;
    border-color: #d7e4f1;
    color: #325778;
}

@media (max-width: 767px) {
    .address-edit-page .profile-page .content-section.default {
        border-radius: 12px;
        padding: 12px 10px 8px;
    }

    .address-edit-page .title-tab-content {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .address-edit-page label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .address-edit-page .input-field {
        min-height: 42px;
        border-radius: 10px;
        font-size: 12px;
    }

    .address-edit-page .address-edit-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 6px;
    }

    .address-edit-page .address-edit-actions .btn {
        width: 100%;
        min-height: 36px;
        font-size: 12px;
    }
}

/* Address Edit V2 */
.address-edit-v2 {
    padding-top: 12px;
}

.address-edit-v2 .address-edit-v2__card {
    border: 1px solid #d8e5f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(15, 45, 76, .08);
    padding: 16px 14px 10px;
}

.address-edit-v2 .title-tab-content {
    font-size: 22px;
    font-weight: 800;
    color: #1e466c;
    margin: 0 0 14px;
}

.address-edit-v2 .address-edit-v2__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 12px;
    margin: 0;
}

.address-edit-v2 .address-edit-v2__grid > .col-md-12 {
    max-width: 100%;
    padding: 0;
}

.address-edit-v2 .address-edit-v2__grid > .col-md-12:has(textarea),
.address-edit-v2 .address-edit-v2__grid > .col-md-12:has(.input-code_posti) {
    grid-column: 1 / -1;
}

.address-edit-v2 label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #315879;
}

.address-edit-v2 .input-field {
    min-height: 45px;
    border-radius: 12px;
    border: 1px solid #d6e4f2;
    background: #f8fbff;
    color: #274763;
    font-size: 13px;
    padding: 10px 12px;
    transition: all .2s ease;
}

.address-edit-v2 .input-field:focus {
    background: #fff;
    border-color: #78aed8;
    box-shadow: 0 0 0 3px rgba(42, 122, 184, .14);
    outline: none;
}

.address-edit-v2 textarea.input-field {
    min-height: 86px;
    resize: vertical;
}

.address-edit-v2 .address-edit-v2__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.address-edit-v2 .address-edit-v2__actions hr {
    display: none;
}

.address-edit-v2 .address-edit-v2__actions .btn {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
}

.address-edit-v2 .address-edit-v2__actions .btn[type="submit"] {
    color: #fff;
    background: linear-gradient(180deg, #0f7cc0 0%, #0c5f94 100%);
    border-color: #0c5f94;
}

.address-edit-v2 .address-edit-v2__actions a.btn {
    background: #eef4fa;
    border-color: #d6e3f0;
    color: #335a7c;
}

@media (max-width: 991px) {
    .address-edit-v2 .address-edit-v2__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .address-edit-v2 .profile-page .content-section.address-edit-v2__card {
        display: block !important;
    }

    .address-edit-v2 .address-edit-v2__card {
        border-radius: 12px;
        padding: 12px 10px 8px;
    }

    .address-edit-v2 .title-tab-content {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .address-edit-v2 label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .address-edit-v2 .input-field {
        min-height: 42px;
        border-radius: 10px;
        font-size: 12px;
    }

    .address-edit-v2 .address-edit-v2__actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 6px;
    }

    .address-edit-v2 .address-edit-v2__actions .btn {
        width: 100%;
        min-height: 36px;
        font-size: 12px;
    }
}
