* {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #eee;
    color: #444;
    direction: rtl;
    text-align: right;
}


.container {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 20px;
    position: sticky;
    flex-direction: column;
    top: -1px;
    z-index: 100;
}

.navbar a {
    text-decoration: none;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.discount,
.alertDiv {
    top: 0;
    right: 0;
    position: fixed;
    z-index: 1100;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    display: flex;
    justify-content: center;
    background-color: #00000080;
}

.discount .discountDiv,
.alert {
    width: 80%;
    text-align: center;
    background-color: #ddd;
    padding: 20px;
    border-radius: 10px;
}

.discountDiv div,
.alert div {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.discount button,
.alert button {
    margin: 0;
}

.discountAmont {
    background-color: #af1b1b;
    color: #eee;
    border-radius: 5px;
    padding: 3px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.close {
    background-color: transparent;
    border: none;
    color: #ff8c00;
}

.notes {
    margin-bottom: 10px;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.logo {
    color: #FF8C00;
    display: flex;
    font-size: 28px;
    font-weight: bold;
    margin-left: 20px;
}

.search-bar {
    position: relative;
    margin-left: 20px;
}

.search-bar input {
    background-color: #ddd;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    padding-right: 40px;
    color: #333;
    width: 200px;
}

.search-bar input::placeholder {
    color: #bbb;
}

.search-bar .fas.fa-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

.cart-icon {
    position: relative;
    margin-right: 20px;
    font-size: 24px;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #FF8C00;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.menu-icon {
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.filter-navbar {
    background-color: #fff;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.filter-scroll-container {
    display: inline-flex;
    padding: 0 20px;
}

.filter-scroll-container .active {
    background-color: #ff8c00 !important;
    color: #eee;
}

.filter-item {
    display: inline-block;
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 20px;
    background-color: #eee;
    transition: background-color 0.3s ease;
}

.filter-item:hover {
    background-color: #FF8C00;
}

.product-grid,
.group-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 2fr));
    gap: 20px;
}

.group-card img{
    border-radius: 10px;
}

.groupTitle {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.groupTitle a {
    color: #FF8C00;
}

.product-card {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 15px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #FF8C00;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 250px;
    scroll-behavior: smooth;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

#productGridV .product-card {
    background-color: #eee;
}

#productGridV img {
    margin: 0;
}

.product-image-large img {
    width: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.product-title {
    margin-bottom: 10px;
}

.packages {
    flex: 0 0 auto;
    width: 250px;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
}

.package-info {
    display: flex;
    justify-content: space-between;
}

.packages a {
    text-decoration: none;
}

.packages p {
    color: #222;
}

.package {
    margin: 10px;
}

.packages img {
    width: 100%;
    border-radius: 10px;
}

.no-products {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
}

.no-products i {
    font-size: 4rem;
}

:root {
    --dot-size: 10px;
    --dot-gap: 10px;
    --dot-inactive: rgba(0, 0, 0, 0.25);
    --dot-active: rgba(0, 0, 0, 0.9);
}

.carousel-wrap {
    width: 100%;
    margin-bottom: 10px;
}

.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    aspect-ratio: 1 / 1;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.slide img {
    display: block;
}

.dots {
    display: flex;
    gap: var(--dot-gap);
    justify-content: center;
    margin-top: 12px;
    user-select: none;
}

.dot {
    border: none;
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background: var(--dot-inactive);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
    transform: scale(1);
    display: inline-block;
}

.dot[data-active] {
    background-color: linear-gradient(#fff, #fff);
}

.product-info {
    flex-grow: 1;
    padding-right: 10px;
}

.product-info h3,
.product-title {
    margin-top: 0;
    margin: 5px 0;
    color: #444;
}

.product-info h3 {
    font-size: 1.2em;
}

.product-card-small .rating,
.product-card .rating {
    direction: ltr;
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.product-card-small .rating .fas.fa-star,
.rating snap,
.product-card .rating .fas.fa-star {
    font-size: 10px;
    color: #555;
    margin: 0 1px;
}

.rating .fas.fa-star.gold {
    color: gold;
}

.price {
    font-weight: bold;
    color: #ff8c00;
    font-size: 1em;
    margin-bottom: 10px;
}

.year-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 180px;
    overflow: auto;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: none;
}

.year-item {
    padding: 8px 10px;
    cursor: pointer;
}

.year-item:hover {
    background: #f1f1f1;
}

.year-list.show {
    display: block;
}

.packages .price {
    text-align: center;
}

.add-to-cart-btn,
.product-details-content button,
#discountBtn,
#removeDiscount,
#top,
#removeTop,
#delete,
#quantityBtn,
#overAll,
#removeOverAll {
    background-color: #ff8c00;
    color: #eee;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

#delete,
#quantityBtn {
    background-color: #f00;
}

.add-to-cart-btn:hover,
.product-details-content button:hover,
#discountBtn:hover,
#removeDiscount:hover,
#top:hover,
#removeTop:hover,
#overAll:hover,
#removeOverAll:hover {
    background-color: #e77f00;
}

#delete:hover,
#quantityBtn:hover {
    background-color: rgb(193, 0, 0);
}

.sidebar {
    overflow: auto;
    position: fixed;
    top: 0;
    right: -310px;
    width: 300px;
    height: 100%;
    background-color: #eee;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar a {
    text-decoration: none;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.sidebar-header .logo {
    font-size: 22px;
    margin: 0;
}

.close-sidebar-btn {
    background-color: #FF8C00;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.close-sidebar-btn i {
    margin-left: 8px;
}

#closeSidebarBtn {
    position: fixed;
    width: 100%;
    min-height: 100vh;
    top: 0px;
    z-index: 999;
    background-color: #00000060;
    border: none;
    outline: none;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.request-details div {
    margin-top: 10px;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    color: #FF8C00;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.sidebar-section-title i {
    margin-left: 10px;
    font-size: 1.2em;
}

.sidebar-nav button {
    transition: color 0.2s ease;
    border: none;
    padding: 5px 0;
    outline: none;
    background-color: transparent;
    color: #333;
}

.sidebar-nav ul ul {
    padding-right: 20px;
    margin-top: 5px;
}

.sidebar-nav ul ul li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.sidebar-nav .cart-count {
    position: relative;
    font-size: 17px;
    height: 18px;
    top: 0;
    right: 0;
}

.sidebar-nav a {
    width: 100%;
    color: #222;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.sidebar-nav a:hover {
    color: #FF8C00;
}

.product-link {
    text-decoration: none;
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #eee;
    padding: 20px;
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

.auth-title {
    color: #FF8C00;
    font-size: 2.5em;
    margin: 0;
}

.auth-form {
    background-color: #ddd;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.input-group {
    position: relative;
    margin: 10px 0;
}

.input-group span {
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    direction: ltr;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: calc(100% - 40px);
    background-color: #eee;
    border: none;
    border-radius: 20px;
    padding: 12px 15px;
    padding-left: 40px;
    color: #333;
    font-size: 1em;
    box-sizing: border-box;
}

.familyServices .input-group input {
    padding-left: 75px;
}

.input-group textarea {
    border-radius: 10px;
    resize: vertical;
    padding-right: 15px;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 15px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: #FF8C00 solid 2px;
}

.input-group .fas {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF8C00;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.checkbox-group a {
    color: #FF8C00;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #FF8C00;
}

.checkbox-group label {
    color: #333;
    margin-right: 10px;
}

.auth-button,
.save-button,
.upgrade-button,
.submit-product-btn,
.buy-all-button,
.accept-btn {
    background-color: #FF8C00;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 20px auto 0 auto;
}

.auth-button i,
.save-button i,
.upgrade-button i,
.submit-product-btn i,
.buy-all-button i {
    margin-left: 10px;
}

.auth-button:hover,
.save-button:hover,
.upgrade-button:hover,
.submit-product-btn:hover,
.buy-all-button:hover,
.accept-btn:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
}

.forgot-password {
    color: #FF8C00;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 15px;
    display: block;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 30px;
    color: #333;
    font-size: 0.95em;
}

.auth-footer a {
    color: #FF8C00;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.product-detail-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-image-large {
    display: flex;
    justify-content: center;
}

.section-title {
    color: #ff8c00;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-left: 10px;
    font-size: 1.1em;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
}

.vertical-scroll-container div {
    width: inherit;
    margin-bottom: 10px;
}

.vertical-scroll-container .product-card {
    background-color: #eee;
}

.product-card-small {
    flex: 0 0 auto;
    width: 180px;
    background-color: #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s ease;
    position: relative;
}

.product-card-small:hover {
    transform: translateY(-3px);
}

.product-card-small img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-info-small h3 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #ff8c00;
    min-height: 50px;
    white-space: normal;
}

.product-info-small .rating {
    margin-bottom: 5px;
}

.product-info-small .price {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.add-to-cart-btn-small {
    background-color: #ff8c00;
    color: #eee;
    border: none;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn-small:hover {
    background-color: #e77f00;
}

.product-details-content,
.comments-section {
    background-color: #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
}

.comments-section a {
    text-align: left;
    width: 100%;
    display: block;
    color: #ff8c00;
}

.comments {
    background-color: #ddd;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
}

.comments span {
    margin-top: 10px;
    width: 100%;
    font-size: .8rem;
    justify-content: space-between;
    align-self: center;
    display: flex;
}

.comments span div {
    width: 40%;
    align-items: center;
    display: flex;
    justify-content: space-around;
    align-self: center;
}

.comments span button {
    background-color: transparent;
    border: none;
}

.comments i {
    color: #555;
    font-size: .8rem;
    margin-left: 3px;
}

.comments .fas.fa-star.gold {
    color: gold;
}

.comments-section input,
.send input {
    padding: 5px 10px;
    background-color: #ddd;
    border: none;
    color: #333;
    border-radius: 10px;
    width: 75%;
    height: 20px;
}

.send input {
    background-color: #222;
}

.comments-section button,
.send button {
    padding: 5px 10px;
    border: none;
    background-color: #ff8c00;
    border-radius: 10px;
    color: #fff;
}

.comments-section .commentStar {
    color: #333;
    text-align: center;
    text-decoration: none;
    border: solid 2px #333;
    border-radius: 10px;
    width: 35px;
}

.group {
    overflow: auto;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 10px;
    border-radius: 10px;
}

.group div {
    align-items: center;
    display: flex;
}

.group img {
    border-radius: 50%;
    object-fit: cover;
    width: 50px;
    height: 50px;
    margin: 10px;
}

.group a {
    text-decoration: none;
    color: #333;
    flex: 0 0 auto;
}

.infoDiv {
    position: fixed;
    display: flex;
    top: 0;
    right: 0;
    z-index: 200;
    background-color: #00000080;
    min-height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.info {
    display: flex;
    flex-direction: column;
    background-color: #eee;
    width: 80%;
    padding: 15px;
    border-radius: 10px;
    height: 80vh;
    overflow: auto;
}

.infoDiv label {
    margin: 10px 0;
}

.infoDiv input {
    color: #333;
    padding: 5px 10px;
    height: 30px;
    background-color: #ddd;
    border: none;
    border-radius: 10px;
}

.info .btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
}

.infoDiv .payment{
    height: inherit;
}

#shamCash{
    display: none;
}

.ratingMainDiv {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 112;
    display: flex;
    background-color: #00000080;
    top: 0;
    justify-content: center;
    align-items: center;
}

.ratingDiv {
    background-color: #222;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.ratingDiv .star {
    margin: 10px;
    background-color: transparent;
    border: none;
    font-size: 1rem;
}

.commentBtn {
    display: flex;
    justify-content: space-around;
}

.commentBtn #closeBtn {
    background-color: transparent;
    border: none;
    color: #fff;
}

.commentBtn #send {
    background-color: #ff8c00;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
}

.send {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background-color: #333;
}

.product-details-content input {
    background-color: #ddd;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    color: #444;
    width: 50px;
}

.profile-form {
    text-align: center;
}

.profile-section .profile-form {
    background-color: #ddd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.profile-section .profile-form .input-group {
    margin-bottom: 15px;
}

.profile-section .profile-form .save-button {
    margin-top: 20px;
    margin-right: 0;
    margin-left: auto;
}

.upgrade-section {
    background-color: #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.image-upload-section {
    margin-bottom: 30px;
}

.image-upload-box {
    border: 2px dashed #666;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-upload-box p {
    color: #bbb;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

.onsell {
    overflow: auto;
    display: flex;
    background-color: #fff;
    margin: 10px 0;
}

footer {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding: 10px;
    text-align: center;
}

footer a,
footer button {
    margin: 5px 0;
    color: #ff8c00;
    text-decoration: none;
    font-size: 1.1rem;
}

footer button {
    border: none;
    background-color: transparent;
}

footer hr {
    margin: 10px 0;
}

.quantity {
    background-color: #ac2626;
    color: #eee;
    padding: 5px 10px;
    border-radius: 20px;
}

#products {
    display: none;
    background-color: #eee;
    padding: 10px;
    border-radius: 10px;
}

#products div {
    margin: 10px;
}

#products img {
    border-radius: 10px;
}

#products button {
    margin: 10px;
}

#productsName {
    margin: 10px;
}

#productsName div {
    margin: 10px;
    background-color: #ff8c00;
    padding: 5px 10px;
    border-radius: 20px;
    color: #eee;
    margin: 10px;
}

#productsName button {
    border: solid 2px #eee;
    background-color: transparent;
    color: #eee;
    margin-right: 10px;
    padding: 1px 5px;
    border-radius: 50%;
}

footer p {
    font-size: 1.1rem;
}

.onsell div {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 15px 5px;
    padding: 0;
}

.onsell div img {
    height: 60px;
    border-radius: 50%;
}

.image-upload-box:hover {
    border-color: #FF8C00;
}

.image-upload-box i {
    font-size: 3em;
    color: #FF8C00;
    margin-bottom: 10px;
}

.image-upload-box p {
    background-color: #22222290;
    padding: 10px;
    border-radius: 10px;
    color: #eee;
    margin: 0;
}

.image-upload-box .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upgrade-button {
    margin-top: 30px;
    width: auto;
    margin-right: 0;
    margin-left: auto;
}

.add-product-section {
    background-color: #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-form {
    text-align: center;
}

.product-form .input-group {
    margin-bottom: 20px;
}

.product-form textarea {
    min-height: 100px;
}

.submit-product-btn {
    margin-top: 30px;
    width: auto;
    margin-right: 0;
    margin-left: auto;
}

.records-section {
    background-color: #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.record-item {
    display: flex;
    align-items: center;
    background-color: #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.record-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 15px;
}

.record-details {
    flex-grow: 1;
}

.order-details {
    gap: 6px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.note {
    width: 90%;
    padding: 5px 10px;
    border-radius: 10px;
    background-color: #ddd;
    color: #333;
    border: none;
}

.details {
    text-align: right;
}

.details hr {
    margin: 10px 0;
}

.record-details p {
    margin: 0 0 10px 0;
    color: #eee;
    font-size: 1em;
}

.view-product-link {
    color: #FF8C00;
    text-decoration: none;
    font-size: 0.9em;
}

.view-product-link:hover {
    text-decoration: underline;
}

.basket-section {
    background-color: #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.basket-item,
.history-item {
    display: flex;
    align-items: center;
    background-color: #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.basket-item img,
.history-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 15px;
}

.basket-details {
    flex-grow: 1;
    width: 85%;
}

.basket-details p {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1em;
}

.basket-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-button {
    text-decoration: none;
    background-color: #FF8C00;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.action-button.remove-button {
    background-color: #dc3545;
}

.action-button:hover {
    background-color: #e67e00;
}

.action-button.remove-button:hover {
    background-color: #c82333;
}

.buy-all-button {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 10px 15px;
    }

    .navbar-left {
        width: auto;
        justify-content: flex-start;
    }

    .search-bar {
        flex-grow: 1;
        margin-right: 10px;
    }

    .search-bar input {
        width: 75%;
        padding-right: 35px;
    }

    .logo {
        font-size: 24px;
        margin-left: 10px;
    }

    .cart-icon,
    .menu-icon {
        font-size: 20px;
        margin-right: 10px;
    }

    .filter-scroll-container {
        padding: 0 10px;
    }

    .filter-item {
        margin-left: 5px;
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .product-card {
        text-align: center;
    }

    .product-card img {
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
    }

    .product-image-large img {
        width: 100%;
        margin-left: 0;
        margin-bottom: 0;
    }

    .product-info {
        padding-right: 0;
    }

    .sidebar {
        width: 250px;
    }

    .auth-form {
        padding: 20px;
    }

    .auth-title {
        font-size: 2em;
    }

    .auth-button,
    .save-button,
    .upgrade-button,
    .submit-product-btn,
    .buy-all-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .record-item,
    .basket-item,
    .history-item {
        flex-direction: column;
        text-align: center;
    }

    .record-item img,
    .basket-item img,
    .history-item img {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .basket-actions {
        flex-direction: column;
        gap: 8px;
    }

    .action-button {
        width: 100%;
    }

    .add-category-group,
    .add-color-group,
    .add-size-group,
    .add-sizeNum-group,
    .add-shoes-group {
        flex-direction: column;
        align-items: stretch;
    }

    .add-category-group input,
    .add-color-group input,
    .add-size-group input,
    .add-sizeNum-group input,
    .add-shoes-group input {
        border-radius: 20px;
        margin-bottom: 10px;
        flex-grow: 1;
        padding-left: 40px;
    }

    .add-new-category-btn,
    .add-new-color-btn,
    .add-new-size-btn,
    .add-new-sizeNum-btn,
    .add-new-shoes-btn {
        width: 100%;
        margin-right: 0;
        border-radius: 20px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {

    .product-grid,
    .group-card {
        grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
    }
}

@media (min-width:320px) and (max-width: 480px) {

    .product-grid,
    .group-card {
        grid-template-columns: repeat(auto-fit, minmax(140px, 2fr));
        gap: 10px;
    }

    .navbar {
        padding: 8px 10px;
    }

    .logo {
        font-size: 20px;
    }

    .search-bar input {
        padding: 6px 10px;
        padding-right: 30px;
        font-size: 0.9em;
    }

    .search-bar .fas.fa-search {
        right: 10px;
    }

    .cart-icon,
    .menu-icon {
        font-size: 18px;
    }

    .filter-item {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-info h3 {
        font-size: .9em;
    }

    .add-to-cart-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }

    .sidebar {
        width: 75%;
        right: -80%;
    }

    .sidebar.active {
        right: 0;
    }

    .auth-form {
        padding: 15px;
    }

    .auth-title {
        font-size: 1.8em;
    }

    .input-group input,
    .input-group textarea,
    .input-group select {
        padding: 10px 12px;
        padding-left: 35px;
        font-size: 0.9em;
    }

    .auth-button,
    .save-button,
    .upgrade-button,
    .submit-product-btn,
    .buy-all-button {
        padding: 8px 18px;
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.3em;
    }

    .product-card-small {
        width: 150px;
    }

    .add-to-cart-btn-small {
        font-size: 0.7em;
        padding: 6px 10px;
    }

    .record-item p,
    .basket-item p,
    .history-item p {
        font-size: 0.9em;
    }

    .add-category-group .fas,
    .add-color-group .fas,
    .add-size-group .fas,
    .add-sizeNum-group .fas,
    .add-shoes-group .fas {
        top: 40%;
        left: 30px;
    }
}

@media (max-width:320px) {

    .product-grid,
    .group-card {
        grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
        gap: 10px;
    }
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
    text-align: right;
}

.product-form .input-add {
    margin: 0px !important;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-selected {
    background-color: #eee;
    border: none;
    border-radius: 20px;
    padding: 20px 15px;
    padding-right: 40px;
    color: #444;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.select-selected:focus {
    outline: #FF8C00 solid 2px;
}

.select-selected .dropdown-arrow {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active .dropdown-arrow {
    top: 35%;
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    background-color: #ddd;
    border-radius: 10px;
    z-index: 99;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 5px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.select-hide {
    display: none;
}

.select-items label {
    display: block;
    padding: 8px 10px;
    color: #444;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.select-items label:hover {
    background-color: #ccc;
}

.select-items label input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #FF8C00;
}

.selected-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: 8px;
    min-height: 40px;
    align-items: center;
    justify-content: flex-end;
}

.category-tag,
.color-tag,
.size-tag,
.sizeNum-tag,
.shoes-tag {
    background-color: #FF8C00;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category-tag:hover,
.color-tag:hover,
.size-tag:hover,
.sizeNum-tag:hover,
.shoes-tag:hover {
    background-color: #e67e00;
}

.category-tag .remove-tag-btn,
.color-tag .remove-tag-btn,
.size-tag .remove-tag-btn,
.sizeNum-tag .remove-tag-btn,
.shoes-tag .remove-tag-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1em;
    margin-right: 8px;
    cursor: pointer;
    padding: 0;
}

.add-category-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.add-category-group input {
    flex-grow: 1;
    padding-left: 40px;
}

.add-category-group .fas {
    left: 30px;
}

.add-new-category-btn,
.add-new-color-btn,
.add-new-size-btn,
.add-new-sizeNum-btn,
.add-new-shoes-btn {
    background-color: #FF8C00;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-right: -20px;
    z-index: 1;
    margin-right: 10px;
}

.add-new-category-btn:hover {
    background-color: #ff9a20;
}

.selected-colors-container,
.selected-sizes-container,
.selected-sizesNum-container,
.selected-shoes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: 8px;
    min-height: 40px;
    align-items: center;
    justify-content: flex-end;
}

#sizes,
#sizesNum,
#shoes {
    display: none;
}

.color-tag,
.size-tag,
.sizeNum-tag,
.shoes-tag,
.category-tag {
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: 1px solid #555;
}

.color-tag .color-box,
.size-tag .color-box,
.sizeNum-tag .color-box,
.shoes-tag .color-box {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.color-tag .remove-tag-btn,
.size-tag .remove-tag-btn,
.sizeNum-tag .remove-tag-btn,
.shoes-tag .remove-tag-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1em;
    margin-right: 8px;
    cursor: pointer;
    padding: 0;
}

.add-color-group,
.add-size-group,
.add-sizeNum-group,
.add-shoes-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.add-new-color-btn:hover,
.add-new-size-btn:hover,
.add-new-sizeNum-btn:hover,
.add-new-shoes-btn:hover {
    background-color: #ff9a20;
}

.password-requirements p,
#passwordMatch {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: right;
}

.password-requirements p.valid,
#passwordMatch.valid {
    color: #28a745;
}

.error,
.success {
    position: fixed;
    z-index: 11111;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    top: 0;
}

.error p,
.success p {
    background-color: #feb2b4;
    color: #000;
    width: 90%;
    padding: 15px 0;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    font-weight: bold;
}

.error .fas,
.success .fas {
    border: solid 2px #000;
    border-radius: 100px;
    padding: 5px 10px;
    margin-left: 10px;
}

.success .fas {
    padding: 5px 5px;
}

.success p {
    background-color: #7cff79;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: .5rem;
    font-family: monospace;
}