
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    padding-top: 80px; 
    color: #333;
    line-height: 1.6;
}

section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}


@media (min-width: 992px) {
    .navbar .collapse.navbar-collapse {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

.navbar-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.navbar-nav .nav-link {
    position: relative;
    color: #121111;
    font-weight: 500;
    padding: 5px 15px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #f6ad55;
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #f6ad55;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.cart-icon {
    font-size: 1.3rem;
    color: #7e4c4f;
    margin-left: 15px;
}

.cart-icon:hover {
    color: #f6ad55;
}

.navbar-toggler {
    padding: 0.25rem 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
}
.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #7e4c4f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #7e4c4f;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #7e4c4f;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon {
    border-top: 2px solid #7e4c4f;
    border-radius: 1px;
    width: 20px;
    height: 0;
    margin: 0 auto;
    position: relative;
    top: 0;
}

.navbar-toggler:hover .navbar-toggler-icon::before,
.navbar-toggler:hover .navbar-toggler-icon::after {
    background-color: #fff4ea;
}

.navbar-toggler:hover .navbar-toggler-icon {
    border-color: #fff4ea;
}
.hero {
    position: relative;
    min-height: 80vh;
    background-color: #fff4ea;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero::before {
    content: "";
    position: absolute;
    right: -200px;
    top: -100px;
    width: 70%;
    height: 120%;
    background: #fff;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero .text {
    max-width: 500px;
    z-index: 2;
}
.hero .image {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out, float 4s ease-in-out 1s infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero .image::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: #f6ad55;
    border-radius: 50% 50% 40% 40%;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(246, 173, 85, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(246, 173, 85, 0.8);
    }
}

.hero .image img {
    width: 380px;
    display: block;
    border-radius: 20px;
    animation: bounceIn 1.5s ease-out 0.5s, subtleScale 4s ease-in-out 2s infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes subtleScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #7e4c4f;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.hero span {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #f6ab4a;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.btn-hero {
    margin-top: 20px;
    padding: 12px 40px;
    background-color: #7e4c4f;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-hero:hover {
    background: #f6ab4a;
    color: #7e4c4f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(246, 171, 74, 0.3);
}

.categories {
    text-align: center;
    padding: 50px 0;
}

.title-paw-icon {
    width: 50px;
    margin-bottom: 15px;
}

.categories h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    color: #7e4c4f;
    font-weight: 700;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    text-align: center;
    width: 150px;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-10px);
}

.category-item .icon {
    width: 120px;
    height: 120px;
    border: 2px dashed #f6ad55;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    background-color: #fff4ea;
    transition: all 0.3s ease;
}

.category-item:hover .icon {
    background-color: #fef2e4;
    border-color: #7e4c4f;
}

.category-item .icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.category-item p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: #7e4c4f;
}
.promo {
    position: relative;
    padding: 80px 20px;
    border-radius: 30px;
    background-color: #7d4f4f;
    margin: 60px auto;
    max-width: 1200px;
    overflow: hidden;
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.promo .text {
    max-width: 500px;
    z-index: 2;
}

.promo h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.1;
}

.promo p {
    font-size: 1.2rem;
    color: #fffffe;
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 400px;
}

.shop-now-btn {
    padding: 12px 35px;
    background-color: #f6ab4a;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.shop-now-btn:hover {
    background-color: #e6992e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(246, 171, 74, 0.3);
}
.save-badge {
    display: inline-flex;
    background-color: #ffffff;
    color: #7d4f4f;
    border-radius: 30px; 
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 25px;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 20px;
    border: 3px solid #7d4f4f;
}

.save-badge::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px dashed #f6ab4a;
    border-radius: 25px;
    z-index: 1;
}

.save-badge span {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f6ab4a;
    margin-left: 8px;
}

.promo .image-container {
    position: absolute;
    bottom: -50px;
    right: 5%;
    max-width: 600px;
    width: 45%;
    height: auto;
    animation: slideInPromo 1s ease-out;
    opacity: 1;
}

.promo .image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    animation: 
        floatPromoImage 6s ease-in-out infinite,
        gentleShake 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes slideInPromo {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatPromoImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes gentleShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(0.5deg);
    }
    75% {
        transform: rotate(-0.5deg);
    }
}

/* تأثير إضافي عند التحويم */
.promo .image-container:hover img {
    animation: excitedFloat 0.8s ease;
}

@keyframes excitedFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-25px) scale(1.03);
    }
}

.shop {
    text-align: center;
    padding: 50px 0;
}

.shop h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    color: #7e4c4f;
    font-weight: 700;
}

.shop-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-name {
    font-weight: 600;
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
    color: #7d4f4f;
}

.rating {
    margin: 10px 0;
}

.rating i {
    color: #ffc107;
    margin-right: 2px;
}

.rating .bi-star-half {
    color: #ffc107;
}

.price {
    font-size: 1.3rem;
    margin: 10px 0 15px 0;
    color: #7d4f4f;
    font-weight: 700;
}

.add-to-cart-btn {
    padding: 10px 20px;
    background: #7d4f4f;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.add-to-cart-btn:hover {
    background: #f6ab4a;
    color: #7e4c4f;
    transform: translateY(-2px);
}

.about {
    text-align: center;
    padding: 80px 0;
    background-image: url('https://themes.zluck.in/html/pawluxe/sources/img/aboutUS.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(125, 79, 79, 0.85);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    color: #ffffff;
    font-weight: 700;
}

.about h5 {
    font-size: 1.3rem;
    color: #f6ab4a;
    margin-bottom: 25px;
    font-weight: 600;
}

.about p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}
.discover-btn {
    margin-top: 20px;
    padding: 12px 40px;
    background-color: #7e4c4f;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.discover-btn:hover {
    background: #f6ab4a;
    color: #7e4c4f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(246, 171, 74, 0.3);
}

.services {
    text-align: center;
    padding: 50px 0;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    color: #7e4c4f;
    font-weight: 700;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px 20px;
    width: 350px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #fffaf0;
}

.service-item .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff4ea;
    border-radius: 50%;
}

.service-item .icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-item h5 {
    font-weight: 700;
    margin: 10px 0 15px 0;
    font-size: 1.3rem;
    color: #7d4f4f;
}

.service-item p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.learn-more-btn {
    padding: 10px 25px;
    background-color: #7e4c4f;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.learn-more-btn:hover {
    background: #f6ab4a;
    color: #7e4c4f;
    transform: translateY(-2px);
}

footer {
    position: relative;
    margin-top: 60px;
}

.newsletter {
    background: #fff3eb;
    text-align: center;
    padding: 60px 20px 120px;
    position: relative;
    overflow:visible;
    border-radius: 30px 30px 0 0;
}

.newsletter h2 {
    color: #7e4e50;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter p {
    color: #666;
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter .form-group {
    width: 100%;
}

.newsletter input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.newsletter input:focus {
    border-color: #f6ab4a;
    box-shadow: 0 0 0 3px rgba(246, 171, 74, 0.2);
}

.newsletter input::placeholder {
    color: #999;
}

.newsletter button {
    margin-top: 20px;
    padding: 14px 40px;
    background-color: #7e4c4f;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.newsletter button:hover {
    background: #f6ab4a;
    color: #7e4c4f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(246, 171, 74, 0.3);
}.dogs-image {
    position: absolute;
    bottom: 35px; 
    left: 20%;
    transform: translateX(-50%) translateY(50%); 
    max-width: 600px;
    width: 30%;
    height: auto;
    z-index: 10; 
}

.main-footer {
    background: #7e4e50;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 10px 25px; 
    text-align: center;
    position: relative;
    z-index: 5;
}
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero .image {
        margin-top: 40px;
    }
    
    .hero .image::before {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
        width: 350px;
        height: 350px;
    }
    
    .hero .image img {
        width: 320px;
        margin: 0 auto;
    }
    
    .hero h1, .hero span {
        font-size: 2.8rem;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .promo .image-container {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 500px;
        margin: 40px auto 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero h1, .hero span {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .category-grid {
        gap: 25px;
    }
    
    .category-item {
        width: 130px;
    }
    
    .product-item,
    .service-item {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid,
    .shop-grid {
        gap: 20px;
    }
    
    .promo h2 {
        font-size: 2.5rem;
    }
    
    .dogs-image {
        width: 70%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1, .hero span {
        font-size: 2rem;
    }
    
    .btn-hero,
    .shop-now-btn,
    .discover-btn,
    .learn-more-btn,
    .add-to-cart-btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
    
    .category-grid {
        gap: 15px;
    }
    
    .category-item {
        width: 110px;
    }
    
    .category-item .icon {
        width: 90px;
        height: 90px;
    }
    
    .category-item .icon img {
        width: 45px;
        height: 45px;
    }
    
    .save-badge {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
    
    .save-badge span {
        font-size: 1.7rem;
    }
    
    .newsletter h2 {
        font-size: 1.8rem;
    }
    
    .newsletter input {
        padding: 12px 15px;
    }
}

.cart-icon {
    position: relative;
    font-size: 1.3rem;
    color: #7e4c4f;
    text-decoration: none;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f6ab4a;
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-modal {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #7e4c4f;
    color: white;
    border-radius: 15px 15px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-cart:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-items {
    padding: 20px 25px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart-message i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.empty-cart-message p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.empty-cart-sub {
    font-size: 0.9rem !important;
    color: #999 !important;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
    transition: background-color 0.3s;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

.cart-item-image {
    flex-shrink: 0;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff4ea;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #eee;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    margin: 0 0 5px 0;
    color: #7e4c4f;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9rem;
}
.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #f6ab4a;
    color: white;
    border-color: #f6ab4a;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #7e4c4f;
}

.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 100px;
}

.item-total-price {
    margin: 0;
    font-weight: 700;
    color: #7e4c4f;
    font-size: 1.1rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.remove-item-btn:hover {
    color: #ff3b3b;
    background-color: rgba(255, 107, 107, 0.1);
}

.cart-summary {
    padding: 20px 25px;
    border-top: 2px solid #eee;
    background: #f9f9f9;
    border-radius: 0 0 15px 15px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
}

.cart-summary-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 1.2rem;
    font-weight: 700;
    color: #7e4c4f;
}

.cart-summary-row .discount {
    color: #4CAF50;
}

.cart-summary-row .total-price {
    font-size: 1.3rem;
    color: #7e4c4f;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.continue-shopping-btn,
.checkout-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.continue-shopping-btn {
    background: #f0f0f0;
    color: #666;
}

.continue-shopping-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.checkout-btn {
    background: #7e4c4f;
    color: white;
}

.checkout-btn:hover {
    background: #f6ab4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(246, 171, 74, 0.3);
}

.cart-empty-actions {
    padding: 20px 25px;
    border-top: 2px solid #eee;
    text-align: center;
}

.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.checkout-modal {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    animation: slideUp 0.3s ease;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #7e4c4f;
    color: white;
    border-radius: 15px 15px 0 0;
}

.checkout-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-checkout {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    line-height: 1;
}

.checkout-content {
    padding: 30px 25px;
}

.order-success {
    text-align: center;
    padding: 20px 0;
}

.order-success i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.order-success h4 {
    margin: 10px 0;
    color: #7e4c4f;
    font-size: 1.5rem;
}

.order-success p {
    color: #666;
    margin: 5px 0;
}

.checkout-actions {
    margin-top: 30px;
    text-align: center;
}

.continue-btn {
    padding: 12px 30px;
    background: #7e4c4f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.continue-btn:hover {
    background: #f6ab4a;
    transform: translateY(-2px);
}

/* الإشعارات */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 9999;
    border-left: 4px solid #7e4c4f;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #4CAF50;
}

.notification-error {
    border-left-color: #f44336;
}

.notification-info {
    border-left-color: #2196F3;
}

.close-notification {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    margin-left: 15px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-notification:hover {
    color: #333;
}

.add-to-cart-btn {
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cart-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .cart-header {
        padding: 15px 20px;
    }
    
    .cart-items {
        padding: 15px 20px;
        max-height: 50vh;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-total {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #eee;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .notification {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .cart-item-image img {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .quantity-display {
        min-width: 25px;
        font-size: 0.9rem;
    }
}
/* أيقونة المفضلة في navbar */
.favorite-icon {
    position: relative;
    font-size: 1.3rem;
    color: #7e4c4f;
    text-decoration: none;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.favorite-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f6ab4a;
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

/* زر المفضلة على الصورة */
.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* منع التكبير عند النقر على الصورة */
.product-image img {
    pointer-events: none;
}

/* تظهر زر المفضلة فوق الصورة */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.favorite-btn i {
    color: #ccc;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* عند التحويم على الزر */
.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.favorite-btn:hover i {
    color: #ff6b6b;
}

/* عندما يكون المنتج مفضلاً */
.favorite-btn.active {
    background: #ff6b6b;
}

.favorite-btn.active i {
    color: white;
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* تأثير عند إضافة منتج للمفضلة */
@keyframes addToFavorite {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 107, 107, 0.7);
    }
}

.favorite-btn.animate {
    animation: addToFavorite 0.6s ease;
}

/* نافذة المفضلة */
.favorites-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.favorites-modal {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #ff6b6b;
    color: white;
    border-radius: 15px 15px 0 0;
}

.favorites-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-favorites {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    line-height: 1;
}

.favorites-content {
    padding: 20px 25px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-favorites i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.favorite-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff4ea;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #eee;
}

.favorite-item-details {
    flex: 1;
}

.favorite-item-details h4 {
    margin: 0 0 5px 0;
    color: #7e4c4f;
    font-size: 1rem;
}

.favorite-item-details p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.remove-favorite-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.remove-favorite-btn:hover {
    color: #ff3b3b;
    background-color: rgba(255, 107, 107, 0.1);
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .favorite-btn {
        width: 30px;
        height: 30px;
    }
    
    .favorite-btn i {
        font-size: 1rem;
    }
    
    .favorite-icon {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .favorite-btn {
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
    }
    
    .favorite-btn i {
        font-size: 0.9rem;
    }
}
/* إعدادات السلة */
.cart-settings {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.discount-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.discount-toggle input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* تحسينات التقييم في السلة */
.cart-item-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 5px 0;
}

.cart-item-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-score {
    font-size: 0.8rem;
    color: #666;
    margin-left: 5px;
    font-weight: 500;
}

/* تحسينات النجوم */
.rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 10px 0;
}

.rating i {
    color: #ffc107;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.rating i:hover {
    transform: scale(1.2);
}

.rating i.bi-star-half {
    color: #ffc107;
}

.rating i.bi-star {
    color: #ddd;
}
