/* Header Styles */
.site-header {
    background: #fff;
}

.logo img {
    height: 70px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    gap: 60px;
}

.nav-item {
    position: relative;
    padding: 8px 12px;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 14px;
}

.nav-item:hover {
    color: #000000;
    background: #AA7BE821;
}

.nav-item.active {
    color: #3b82f6;
}

.nav-item .arrow {
    font-size: 0;
    transition: transform 0.2s;
}

.nav-item.open .arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    /* top: 100%; */
    left: 0;
    right: 0;
    border-top: 1px solid #e5e5e5;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
[dir="rtl"] .dropdown{
    position: absolute;
    /* top: 100%; */
    left: 0;
    right: 0;
    border-top: 1px solid #e5e5e5;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    border-radius: 10px;
    width: fit-content;
    padding: 32px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
#dropdownCategories .dropdown-grid {
    grid-template-columns: 1fr;
}
#dropdownCategories .brand-grid {
    grid-template-columns: repeat(4, 1fr);
}


.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.dropdown-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.brand-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: #4b5563;
}

.brand-item:hover {
    background: #AA7BE821;
}

.brand-logo {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-right .header-group {
    display: flex;
}
.header-right .vertical-line::after {
    content: "|";
    margin: 0 16px;
    color: #ccc;
}
[dir="rtl"] .header-right .vertical-line:last-child::after {
    margin: 0 16px 0 0;
}
.header-right .vertical-line:last-child::after {
    margin: 0 0 0 16px;
}

.search-box, .search-box-mobile {
    background-color: #F3EDF7;
    height: 40px;
}
.search-box-mobile {
    display: none;
    position: relative;
}

.link {
    font-size: 14px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.country-select,
.lang-select,
[dir="rtl"] .country-select,
[dir="rtl"] .lang-select
{
    border: none;
    padding: 0;
    -webkit-appearance: none;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0.2px;
}
.country-select:focus {
    outline: none;
}

.cart-icon {
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.join-btn {
    background-color: #ff47c4;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.3s;
}

.join-btn:hover {
    background-color: #e138b3;
}

/* Hero Section */
.hero-section {
    background-color: #FFFFFF;
    color: #fff;
}
.hero-section-content {
    background-color: #AA7BE8;
    height: 490px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    padding: 60px 0 0 100px;
}
[dir="rtl"] .hero-text {
    padding: 60px 100px 0 0;
}
.hero-text h1 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 58px;
    line-height: 80px;
    letter-spacing: 0.2px;

}

.hero-text p {
    font-size: 20px;
    margin-bottom: 25px;
    color: #f0f0f0;
}
.hero-image {
    max-height: 592px;
    overflow: hidden;
}
.hero-image .image-container {
    position: relative;
    top: 12%;
    display: flex;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
    color: #fff !important;
}

[dir="rtl"] .btn-shop,.btn-shop {
    background-color: #ff47c4;
}

[dir="rtl"] .btn-shop:hover,.btn-shop:hover {
    background-color: #e138b3;
}

[dir="rtl"] .btn-learn,.btn-learn {
    background-color: transparent;
    border: 2px solid #fff;
}

[dir="rtl"] .btn-learn:hover,.btn-learn:hover {
    background-color: #787575;
    color: #d000b3;
}

.hero-image img {
    border-radius: 8px;
    margin-top: 20px;
}

/* Category Icons Section */
.category-icons {
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 0px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.category-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s;
    background: #fafafa;
}

.category-item img {
    height: 80px;
    margin-bottom: 10px;
}

.category-item p {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hamburger {
    font-size: 24px;
    background: none;
    color: rgba(170, 123, 232, 1);
    border: none;
    padding: 6px;
    cursor: pointer;
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 150;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    z-index: 200;
    transition: left 0.3s ease;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.text-search {
    font-size: 14px;
    color: #c7c7cb;
}
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.close-btn-header {
    justify-content: center;
    display: flex;
    padding: 0;
    line-height: 1;
    position: absolute;
    top: 25px;
    right: 25px;
    background: #ffffff;
    border: none;
    font-size: 24px;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    color: #5e5d5d;
}
.sidebar-submenu.open {
    display: block;
}
.sidebar-submenu {
    list-style: none;
    padding-left: 0;
    height: 0;
    display: none;
    overflow: hidden;
    transition: height 0.4s ease;
}

.sidebar-submenu li {
    padding: 0.75rem;
}
.sidebar-submenu li:hover {
    background: #F8FAFC;
}
.sidebar-submenu li:hover a {
    color: #0F172A!important;
}

.sidebar-submenu a {
    color: #64748B !important;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-submenu a:hover {
    color: #007bff;
}
.sidebar-toggle {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    padding: 16px 0;
    font-size: 18px;
}
sidebar-toggle .arrow {
    font-size: 14px;
}

.sidebar-toggle .arrow-rotate {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

.search-popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.search-popup-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.search-popup .search-kw {
    outline: none;
    box-sizing: border-box;
    border: 0 solid #e5e7eb;
    padding: 0.75rem;
    height: 3rem;
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-overlay-preference {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay-preference.show {
    display: flex;
}

.modal-preference-content {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: left;
    font-family: 'Segoe UI', sans-serif;

    animation: popupFadeIn 0.3s ease;
}

.modal-preference h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
}

.subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

[dir="rtl"] .btn-header,.btn-header {
    background-color: #ff47c4;
    color: white;
    font-size: 14px;
    padding: 8px 14px;
    white-space: nowrap;
    border-radius: 8px;

    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.2px;

}
[dir="rtl"] .btn-header:hover, .btn-header:hover {
    background-color: #e138b3;
    color: white;
}

.preference-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
}

[dir="rtl"] .preference-btn,.preference-btn {
    font-size: 14px;
    display: inline-flex;
    padding: 0;
    align-items: center;

    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.2px;
}
[dir="rtl"] .preference-btn .text-preference {
    margin-right: 0.5rem;
}
.preference-btn .text-preference {
    margin-left: 0.5rem;
}

.preference-select:focus-visible {
    outline: none;
}

.save-btn {
    width: 100%;
    background-color: #ff47c4;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.save-btn:hover {
    background-color: #e138b3;
}

.help-btn {
    display: flex;
    align-items: center;
    background-color: #f1f4f9;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #1a2b3c;
    font-weight: 500;
}

.help-icon {
    font-size: 16px;
    margin-right: 8px;
    background: #fff;
    border-radius: 50%;
    border: 1.5px solid #3b4651;
    color: #3b4651;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.help-header {
    display: flex;
}
.header-container {
    display: flex;
    width: 100%;
    padding: 0 1.5rem;
    gap: 2rem;
}
.header-container .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.search-box-auto {
    position: absolute;
    width: 100%;
    background: white;
    z-index: 50;
    top: 100%;
}
.search-box .search-input, .search-box-mobile .search-input{
    background-color: #F3EDF7;
    border: none;
}

.search-box .search-input:focus, .search-box-mobile .search-input:focus {
    box-shadow: none;
}
.search-box {
    position: relative;
}
.search-box-auto .search-auto-item {
    padding: 1rem 0;
    cursor: pointer;
}
.search-box-auto .search-auto-item:hover {
    background-color: #AA7BE821;
}
.search-box-auto .search-auto-item .text-search {
    color: #090909;
}
.highlight {
    font-weight: bold;
    color: #090909;
}

.cart-popup {
    position: fixed;
    top: 0;
    right: 0;
    max-width: 538px;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 46px 36px 20px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
.cart-popup.active {
    transform: translateX(0%);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

body.popup-open {
    overflow: hidden;
    touch-action: none;
}

.cart-popup .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}
.cart-popup .cart-header h3{
    font-weight: 700;
    font-size: 30px;
    line-height: 22px;
    letter-spacing: 0.2px;
    margin: 0;
}
.cart-popup .cart-header span {
    height: 23px;
    width: 23px;
    cursor: pointer;
}

.cart-popup .cart-subtitle {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #666;
}
.cart-popup .cart-subtitle p {
    background-color: #D9D9D980;
    border-radius: 16px;
    display: inline-block;
    padding: 2px 16px;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.2px;
    margin: 0;

}
.cart-popup .cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
}

.cart-popup .cart-item {
    display: flex;
    gap: 10px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    flex-direction: column;
}
.cart-popup .cart-item .cart-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cart-popup .cart-item .cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-popup .cart-item-image {
    width: 40%;
    height: 81px;
    border-radius: 22px;
    /*object-fit: cover;*/
    box-shadow: 0px 5px 8px 0px #00000026;

}

.cart-popup .cart-item-info {
    flex-grow: 1;
    white-space: nowrap;
}

.cart-popup .cart-item-quantity {
    display: flex;
    width: 100%;
    max-width: 12rem;
    align-items: center;
}
.cart-popup .cart-item-quantity .qty {
    flex: 1 1 auto;
    text-align: center;
    background-color: #D9D9D9C2;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    padding: 5px;
}
.cart-popup .cart-item-price .price{
    color: #000000;
    font-size: 14px;
    font-weight: 600;
}

.cart-popup .cart-item-name {
    font-weight: 700;
    font-size: 20px;
    line-height: 22px;
    letter-spacing: 0.2px;
}

.cart-popup .cart-item-region {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.2px;
}

.cart-popup .cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    justify-content: space-between;
    width: 100%;
}

.cart-popup .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #D9D9D9C2;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0.2px;
}
.cart-popup .qty-btn.minus {
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
}
.cart-popup .qty-btn.plus {
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
}

.cart-popup .delete-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
}

.cart-popup .cart-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.cart-popup .subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.2px;
}

.cart-popup .checkout-btn {
    width: 100%;
    padding: 10px;
    background: #f04ed4;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}



@media (max-width: 1399.98px) {
    /*.search-box-mobile {*/
    /*    display: none !important;*/
    /*}*/
    .hero-image .image-container {
        transform: scale(1.2);
        top: 20%;
    }

    .hero-text h1 {
        font-size: 56px;
    }
}
@media (max-width: 1199.98px) {
    .hero-image .image-container {
        transform: scale(1.7);
        top: 38%;
    }
    .hero-image {
        padding-right: 60px;
    }
    [dir="rtl"] .hero-image {
        padding-left: 60px;
    }
    .hero-text {
        padding: 60px 0 0 60px;
    }
    .hero-text h1 {
        font-size: 48px;
    }
    [dir="rtl"] .search-box,.search-box {
        display: none!important;
    }
    .search-box-mobile  {
        display: flex !important;
    }
    .container-search-box-mobile {
        padding-bottom: 1.5rem;
    }
    [dir="rtl"] .nav ,
    [dir="rtl"] #dropdownSeller,
    [dir="rtl"] #dropdownCategories,
    .nav,
    #dropdownCategories,
    #dropdownSeller {
        display: none;
    }
    .hamburger, .overlay.show {
        display: block;
    }
    .sidebar.open {
        left: 0;
    }
    .check-oder {
        display: none;
    }

}
@media (max-width: 991.98px) {
    /*.hero-image .image-container {*/
    /*    top: -7%;*/
    /*    transform: scale(1.5);*/
    /*}*/

    .hero-text h1 {
        font-size: 48px;
        line-height: 65px;
    }
    .hero-text p {
        font-size: 18px;
    }
    .hero-image .image-container {
        top: 36%;
        transform: scale(1.7);
    }

    .header-container {
        gap: 1.5rem;
        padding: 0;
    }
    .site-header {
        padding: 0;
    }
}
@media (max-width: 767.98px) {

    .hero-section-content {
        height: 750px;
    }
    .header-right .vertical-line:last-child::after {
        display: none;
    }

    .help-header {
        display: none;
    }
    [dir="rtl"] .btn-header,.btn-header {
        display: none;
    }

    [dir="rtl"] .hero-text ,.hero-text {
        padding: 60px 0 0;
        text-align: center;
    }
    .hero-image .image-container {
        top: -15%;
        transform: scale(0.8);
    }
    [dir="rtl"] .hero-image ,.hero-image {
        padding: 0;
        max-height: 500px;
    }
    #dropdownSeller, #dropdownSeller {
        display: none;
    }

}
@media (max-width: 575.98px) {

    .hero-section-content {
        height: 625px;
    }

    .hero-text h1 {
        font-size: 40px;
        line-height: 50px;
    }

    .header-right {
        gap: 0.5rem;
    }
    .icon {
        width: 18px;
        height: 18px;
    }

    .header-right .vertical-line::after {
        margin:0 4px
    }

    .site-header {
        padding: 0px;
    }
    .logo img {
        height: 48px;
    }
    .hamburger{
        font-size: 20px;
    }
    .header-container {
        padding: 0;
        gap: 4px;
    }


    [dir="rtl"] .hero-image, .hero-image {
        max-height: unset;
        overflow: unset;
    }
    .hero-image .image-container {
        position: unset;
        top: unset;
        display: unset;
    }
}
