* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #E7F2EF;
    font-family: Arial, sans-serif;
    height: 100%;
}

nav {
    position: fixed;
    z-index: 30;
    top: 0;
    background-color: #19183B;
    color: white;
    width: 100%;
    max-width: 100vw;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-couch {
    font-size: 30px;
    display: inline-block;
    background-color: #708993;
    padding: 7px 10px;
    border-radius: 20px;
    color: white;
    margin-left: 30px;
    transition: all 0.4s ease;
}

[href="./home.html"] {
    text-decoration: none;
    margin-right: 15px;
}

[href="./home.html"]:hover .fa-couch {
    background-color: #A1C2BD;
}

.logo {
    font-size: 25px;
    color: white;
    font-weight: bold;
}
a{
    text-decoration: none;
}
#user {
    display: none;
}

[for="user"] {
    display: inline-block;
    cursor: pointer;
    margin-top: 7px;
}

.user-list {
    display: none;
    position: absolute;
    background-color: #708993;
    height: 155px;
    width: 180px;
    padding: 15px;
    border-radius: 30px;
    z-index: 10;
    top: 70px;
    left: 30%;
}

.user-list ul {
    list-style: none;
    background: #E7F2EF;
    border-radius: 10px;
    padding: 5px;
}

.user-list ul li {
    padding: 4px;
    margin: 5px 0;
    text-align: center;
}

.user-list ul li:hover {
    background-color: #A1C2BD;
    border-radius: 30px;
}

.user-list ul li a {
    text-decoration: none;
    color: #19183B;
    font-weight: bold;
    text-align: center;
}

.user-list ul li button {
    border: none;
    padding: 4px;
    width: 100%;
    border-radius: 30px;
    background-color: #E7F2EF;
    color: #19183B;
    font-size: 15px;
}

#user:checked ~ .user-list {
    display: block;
}

#user-name {
    font-size: 20px;
    font-weight: bold;
    padding: 5px 10px;
}

#user-name:hover {
    background-color: #A1C2BD;
    border-radius: 30px;
}

/* البوردر المتحرك */
.user-list::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 15px;
    background: linear-gradient(90deg, #19183B, #708993, #A1C2BD, #19183B);
    background-size: 400% 400%;
    z-index: -1;
    animation: borderColors 6s linear infinite;
}

@keyframes borderColors {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#cart {
    display: none;
}

[for="cart"] {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    padding: 7px 10px;
    margin-top: 5px;
}

[for="cart"]:hover {
    background-color: #708993;
    border-radius: 20px;
}

.cart-list {
    display: none;
    position: absolute;
    background-color: #708993;
    width: 300px;
    padding: 15px;
    border-radius: 30px;
    z-index: 10;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 400px;
    overflow-y: auto;
}

.cart-list ul {
    list-style: none;
    background: #26383f;
    border-radius: 10px;
    padding: 10px;
}

.cart-list ul li {
    padding: 5px;
    margin: 5px 0;
    text-align: center;
}

.cart-list ul li:hover {
    background-color: #222d31;
    border-radius: 20px;
}

.cart-list ul li a {
    text-decoration: none;
    color: #19183B;
    font-weight: bold;
    text-align: center;
}

.cart-list ul li button {
    border: none;
    padding: 5px;
    width: 100%;
    border-radius: 30px;
    background-color: #E7F2EF;
    color: #19183B;
    font-size: 15px;
    margin: 5px 0;
}

#cart:checked ~ .cart-list {
    display: block;
}

#cart-name {
    font-size: 20px;
    font-weight: bold;
    padding: 5px 10px;
}

#cart-name:hover {
    background-color: #A1C2BD;
    border-radius: 30px;
}

.cart-item {
    font-size: 15px;
    font-weight: bold;
}

/* البوردر المتحرك */
.cart-list::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 15px;
    background: linear-gradient(90deg, #19183B, #708993, #A1C2BD, #19183B);
    background-size: 400% 400%;
    z-index: -1;
    animation: borderColors 6s linear infinite;
}

.ul-cat {
    list-style: none;
    display: flex;
    gap: 20px;
}

.ul-cat li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 3px 7px;
}

.ul-cat li {
    display: inline-block;
    margin-top: 9px;
}

.ul-cat li a:hover {
    background-color: #A1C2BD;
    border-radius: 20px;
}

.burger {
    transform: translate(-15px, 5px);
}

.burger-layer {
    display: block;
    margin: 4px;
    width: 50px;
    height: 8px;
    border-radius: 20px;
    background-color: #A1C2BD;
}

/* ///////////////////////////// */
#sett {
    display: none;
}

[for="sett"] {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.sett-list {
    display: none;
    position: absolute;
    background-color: #708993;
    width: 140px;
    padding: 15px;
    border-radius: 30px;
    z-index: 10;
    top: 70px;
    right: 30px;
}

.sett-list ul {
    list-style: none;
    background: #E7F2EF;
    border-radius: 10px;
    padding: 10px;
}

.sett-list ul li {
    padding: 5px;
    margin: 5px 0;
    text-align: center;
}

.sett-list ul li:hover {
    background-color: #A1C2BD;
    border-radius: 30px;
}

.sett-list ul li a {
    text-decoration: none;
    color: #19183B;
    font-weight: bold;
    text-align: center;
}

#sett:checked ~ .sett-list {
    display: block;
}

#sett-name {
    font-size: 20px;
    font-weight: bold;
    padding: 5px 10px;
}

#sett-name:hover {
    background-color: #A1C2BD;
    border-radius: 30px;
}

.sett-item {
    font-size: 15px;
    font-weight: bold;
}

.burger:hover .burger-layer {
    background-color: #708993;
}

.burger:hover .span1 {
    transform: rotate(35deg);
}

.burger:hover .span2 {
    transform: rotate(-35deg);
}

.burger:hover .span3 {
    display: none;
}

.setting {
    display: none;
}

/* ///////////////////////// */
@media (max-width: 780px) {
    .setting {
        display: block;
    }
    .ul-cat {
        display: none;
    }
    .fa-couch {
        font-size: 24px;
    }
    .cart-list {
        width: 250px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* //////////////////////// */

body.dark {
    background-color: #26383f;
    color: #E7F2EF;
}

.barkmode {
    cursor: pointer;
    font-size: 22px;
    margin-top: 8px;
    margin-right: 40px;
    margin-left: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

body.dark .barkmode i {
    content: "\f185";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* //////////////////////////////////////////// */

/* Cart List Styles */
.cart-list {
    display: none;
    position: absolute;
    background-color: #708993;
    width: 350px;
    max-width: 90vw;
    padding: 15px;
    border-radius: 30px;
    z-index: 10;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cart-list ul {
    list-style: none;
    background: #26383f;
    border-radius: 10px;
    padding: 10px;
    margin: 0;
}

.cart-list ul li {
    padding: 5px;
    margin: 5px 0;
}

.cart-item-details {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #A1C2BD;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.cart-item-details:hover {
    background-color: #94b5af;
}
.cart-item-details:hover .cart-item-name{
    color: #A1C2BD;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #19183B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #4f6269;
    font-size: 14px;
    font-weight: bold;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    margin-top: 5px;
    gap: 5px;
}

.cart-quantity-btn {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 50%;
    background-color: #708993;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cart-quantity-btn:hover {
    background-color: #5a7179;
}

.cart-quantity-input {
    width: 40px;
    height: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    margin: 0 5px;
    background: white;
    font-weight: bold;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.cart-remove-btn:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

/* Cart total and checkout */
.cart-total {
    text-align: center;
    padding: 15px 10px;
    border-top: 1px solid #A1C2BD;
    margin-top: 10px;
}

.cart-total-amount {
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
    font-size: 18px;
}

.checkout-btn {
    background: #19183B;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.checkout-btn:hover {
    background-color: #2a2857;
}

.empty-cart-message {
    text-align: center;
    color: #fff;
    padding: 30px 20px;
    font-style: italic;
}

/* Cart list animations */
.cart-list {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Cart item animations */
.cart-item-details {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive cart list */
@media (max-width: 480px) {
    .cart-list {
        width: 300px;
        left: 20px;
        right: 20px;
        transform: none;
        margin: 0 auto;
    }
    
    .cart-item-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .cart-quantity-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Cart list border animation */
.cart-list::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 15px;
    background: linear-gradient(90deg, #19183B, #708993, #A1C2BD, #19183B);
    background-size: 400% 400%;
    z-index: -1;
    animation: borderColors 6s linear infinite;
}

@keyframes borderColors {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* ///////////////////////// */
footer {
    background-color: #091a22;
    padding: 20px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.footer-con {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-con div {
    flex: 1;
    min-width: 250px;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-con div h2 {
    color: #A1C2BD;
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-con div p {
    margin: 10px 0;
    font-weight: bold;
    font-size: 16px;
    color: white;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.copyright {
    text-align: center;
    background-color: #0a0924;
    color: white;
    padding: 10px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.icons {
    text-align: center;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-link {
    display: block;
    color: #ddd;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    margin: 8px 0;
    padding: 5px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #708993;
}

.fa-twitter, .fa-facebook, .fa-instagram {
    color: #A1C2BD;
    text-decoration: none;
    display: inline-block;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-size: 24px;
}

.fa-twitter:hover {
    color: #029df7;
    transform: scale(1.2) rotateY(360deg);
}

.fa-facebook:hover {
    color: #184b68;
    transform: scale(1.2) rotateY(360deg);
}

.fa-instagram:hover {
    color: #e986d8;
    transform: scale(1.2) rotateY(360deg);
}

/* تحسينات للتابلت */
@media (max-width: 1024px) {
    footer {
        padding: 15px;
    }
    
    .footer-con {
        gap: 15px;
    }
    
    .footer-con div {
        min-width: 200px;
    }
    
    .footer-con div h2 {
        font-size: 18px;
    }
    
    .footer-con div p {
        font-size: 15px;
    }
}

/* تحسينات للموبايل الكبير */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }
    
    footer {
        padding: 15px 10px;
    }
    
    .footer-con {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .footer-con div {
        width: 100%;
        max-width: 400px;
        min-width: unset;
    }
    
    .footer-con div h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .footer-con div p {
        font-size: 14px;
        margin: 8px 0;
        text-align: center;
    }
    
    .icons {
        margin: 10px 0;
        gap: 20px;
    }
    
    .fa-twitter, .fa-facebook, .fa-instagram {
        font-size: 28px;
        margin: 0;
    }
}

/* تحسينات للموبايل الصغير */
@media (max-width: 480px) {
    footer {
        padding: 10px 5px;
    }
    
    .footer-con {
        gap: 20px;
    }
    
    .footer-con div {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .footer-con div h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .footer-con div p {
        font-size: 13px;
        margin: 6px 0;
        line-height: 1.4;
    }
    
    .icons {
        gap: 15px;
        margin: 8px 0;
    }
    
    .fa-twitter, .fa-facebook, .fa-instagram {
        font-size: 24px;
    }
    
    .copyright {
        font-size: 12px;
        padding: 8px;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 320px) {
    footer {
        padding: 8px 3px;
    }
    
    .footer-con div p {
        font-size: 12px;
        word-break: break-all;
        text-align: justify;
    }
    
    .footer-con div h2 {
        font-size: 15px;
    }
    
    .icons {
        gap: 12px;
    }
    
    .fa-twitter, .fa-facebook, .fa-instagram {
        font-size: 22px;
    }
}
/* ///////////////////////////////////////////////////// */

@media (max-width: 768px) {
    .logo{
        font-size: 20px;
    }
}
/* ///////////////////////////////////////////////////// */

.cart-list:hover{
    display: block;
}