button{
    border-radius: 5px;
    justify-content: center;
    border: white solid 2px;
    font-family: MyFont;
    width: 200px;
    height: 40px;
    font-size: 18px;
    position: absolute;
    left: 10px;
    background-color: #6236d9;
    color: #ffffff;
}
.product-button{
    border-radius: 5px;
    justify-content: center;
    border: white solid 2px;
    font-family: MyFont;
    width: 200px;
    height: 40px;
    font-size: 18px;
    position: absolute;
    right: 20px;
    background-color: #6236d9;
    color: #ffffff;
    #iiii{
        position: absolute;
        right: 15px;
        top: 10px;
    }
}

.items {
    width: 300px;
    height: 290px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px #7f7fb2ff;
    transition: 1s;
    position: relative;
    display: flex;
    flex: 1;
    justify-content: flex-start;
    flex-direction: column;
    overflow: auto;
}
.items:hover {
    transform: scale(1.00);
    background-color: rgb(127 127 178 / 0.15);
    box-shadow: 0 5px 25px #7f7fb2;
    cursor: pointer;
}
.second_content,
.third_content{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px auto;
    max-width: 1750px;
}
.second_items {
    flex: 3;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px #7f7fb2ff;
    transition: 1s;
}

.second_items2 {
    flex: 1;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px #7f7fb2ff;
    transition: 1s;
}
.second_items:hover,
.second_items2:hover {
    transform: scale(1.00);
    background-color: rgb(127 127 178 / 0.15);
    box-shadow: 0 5px 25px #7f7fb2;
    cursor: pointer;
}

.settings-summary-card {
    align-items: stretch;
    direction: rtl;
}
.settings-summary-card h2 {
    margin: 15px 25px 0 15px;
    padding-bottom: 5px;
    color: #6236d9;
    font-size: 35px;
    font-weight: bold;
    border-bottom: 2px solid #000000;
}
.settings-card-body {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 25px;
}
.settings-summary-card p { margin: 0 0 0px; font-size: 20px; }
.settings-summary-card span { color: #77778a; font-size: 14px; }
.settings-avatar {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background-color: rgb(98 54 217 / 0.13);
    color: #6236d9;
    font-size: 28px;
}
.store-active { color: #2f853f; }
.settings-panel { padding: 0; direction: rtl; overflow: auto; }
.settings-title {
    margin: 15px 25px 22px 15px;
    padding-bottom: 5px;
    color: #6236d9;
    border-bottom: 2px solid #000000;
    font-size: 35px;
    font-weight: bold;
}
.settings-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 0 25px 25px;
}
.settings-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #555569;
    font-size: 15px;
}

.settings-form input,
.settings-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgb(98 54 217 / 0.25);
    border-radius: 8px;
    background-color: #fbfaff;
    color: #1f1f2e;
    font-family: MyFont;
    font-size: 16px;
    outline: none;
}
.settings-form input:focus,
.settings-form textarea:focus {
    border-color: #6236d9;
    box-shadow: 0 0 0 3px rgb(98 54 217 / 0.1);
}
.full-field { grid-column: 1 / -1; }
.setting-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 0 25px;
    padding: 16px 0;
    border-bottom: 1px solid rgb(98 54 217 / 0.14);
}
.setting-option div { display: flex; flex-direction: column; gap: 5px; }
.setting-option span { color: #77778a; font-size: 13px; }
.switch { position: relative; width: 46px; height: 25px; flex: 0 0 46px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch > span {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background-color: #d9d5e7;
    cursor: pointer;
    transition: 0.25s;
}
.switch > span::before {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    top: 3px;
    right: 3px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: 0.25s;
}
.switch input:checked + span { background-color: #6236d9; }
.switch input:checked + span::before { transform: translateX(-21px); }
.security-button {
    position: static;
    width: calc(100% - 50px);
    margin: 25px auto 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
@media (max-width: 750px) {
    .second_content,
    .third_content { flex-direction: column; }
    .items,
    .second_items,
    .second_items2 { width: 100%; flex: none; }
    .settings-form { grid-template-columns: 1fr; }
    .full-field { grid-column: auto; }
}

@media (max-width: 560px) {
    .items { height: auto; min-height: 220px; }
    .second_items,
    .second_items2 { height: auto; min-height: 430px; }
    .settings-summary-card h2,
    .settings-title { font-size: 26px; }
    .settings-card-body { padding: 22px 18px; }
    .settings-form { padding-inline: 18px; }
    .setting-option { margin-inline: 18px; }
}

.search_input{
    border-radius: 5px;
    display: flex;
    justify-content: left;
    margin: 10px;
    border: #6236d9;
    font-family: MyFont;
    width: 200px;
    height: 40px;
    border: none;
    outline: none;
    font-size: 18px;
    position: absolute;
    left: 10px;
    background-color: #ffffff;
    color: #6236d9;
}
#iii{
    position: absolute;
    left: 230px;
    bottom: 15px;
}
@keyframes fadeUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.main_content h1 {
    animation: fadeUp 0.55s ease-out both;
}
.items,
.second_items,
.second_items2,
.items2 {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}
.second_content .items:nth-child(1) { animation-delay: 0.15s; }
.second_content .items:nth-child(2) { animation-delay: 0.25s; }
.second_content .items:nth-child(3) { animation-delay: 0.35s; }
.second_content .items:nth-child(4) { animation-delay: 0.45s; }

.third_content .second_items { animation-delay: 0.55s; }
.third_content .second_items2 { animation-delay: 0.65s; }

.fourth_content .items2:nth-child(1) { animation-delay: 0.75s; }
.fourth_content .items2:nth-child(2) { animation-delay: 0.75s; }
.fourth_content .items2:nth-child(3) { animation-delay: 0.75s; }
.fourth_content .items2:nth-child(4) { animation-delay: 0.75s; }

/* Responsive refinement - settings */
@media (max-width: 1100px) {
    .second_content,
    .third_content {
        gap: 16px;
        margin-block: 18px;
    }

    .second_content .items {
        min-width: 280px;
    }
}

@media (max-width: 800px) {
    .second_content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .second_content .items {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 210px;
    }

    .third_content {
        flex-direction: column;
        align-items: stretch;
    }

    .second_items,
    .second_items2 {
        width: 100%;
        flex: none;
        height: auto;
        min-height: 430px;
    }
}

@media (max-width: 600px) {
    .second_content,
    .third_content {
        gap: 12px;
        margin-block: 12px;
    }

    .second_content {
        grid-template-columns: 1fr;
    }

    .settings-summary-card h2,
    .settings-title {
        margin: 12px 16px 18px;
        font-size: 25px;
    }

    .settings-card-body {
        gap: 14px;
        padding: 20px 16px;
    }

    .settings-avatar {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 23px;
    }

    .settings-form {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 16px 20px;
    }

    .settings-form input,
    .settings-form textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .setting-option {
        margin-inline: 16px;
        padding-block: 14px;
    }

    .security-button {
        position: static;
        width: calc(100% - 32px);
        min-height: 44px;
        margin: 20px auto;
    }
}

@media (hover: none) {
    .items:hover,
    .second_items:hover,
    .second_items2:hover {
        transform: none;
    }
}




