:root {
    --hollywood-cerise: #E60698ff;
    --black: #000000ff;
    --carnation-pink: #F499CFff;
    --black-2: #000000ff;
    --black-3: #000000ff;
    --light-color: #f8f5f2;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('https://lunaratop.com/images/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.overlay {
    background-color: rgba(255, 255, 255, 0.85);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top bar */
.top-bar {
    background-color: var(--black);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 15px;
}

.social-icons a {
    color: var(--carnation-pink);
    margin-left: 10px;
    text-decoration: none;
    font-size: 16px;
}

/* Navigation bar */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--hollywood-cerise);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--hollywood-cerise);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.icons a {
    color: var(--text-color);
    margin-left: 15px;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.icons a:hover {
    color: var(--hollywood-cerise);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero section */
.hero {
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--black);
}

.hero h1 span {
    color: var(--hollywood-cerise);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.btn {
    display: inline-block;
    background-color: var(--hollywood-cerise);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid var(--hollywood-cerise);
}

.btn:hover {
    background-color: transparent;
    color: var(--hollywood-cerise);
}

.btn-outline {
    background-color: transparent;
    color: var(--hollywood-cerise);
    border: 2px solid var(--hollywood-cerise);
}

.btn-outline:hover {
    background-color: var(--hollywood-cerise);
    color: white;
}

/* Categories section */
.categories {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--hollywood-cerise);
    margin: 15px auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img {
    height: 200px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--hollywood-cerise);
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    margin-bottom: 10px;
}

/* Products section */
.products {
    padding: 80px 0;
    background-color: var(--light-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 250px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
}

.price {
    color: var(--hollywood-cerise);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
}

.add-to-cart {
    background-color: var(--hollywood-cerise);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.add-to-cart:hover {
    background-color: var(--carnation-pink);
}

/* Offers section */
.offers {
    padding: 80px 0;
}

.offer-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.offer-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.offer-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* About section */
.about {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    height: 400px;
    background-color: var(--light-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--hollywood-cerise);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-color);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: var(--black);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--carnation-pink);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--carnation-pink);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        background-color: white;
        width: 80%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .icons a {
        margin-left: 10px;
    }
}

/* استهداف الهيدر لإضافة خلفية */
header {
    background-color: #fff;
}

/* Media Query لتطبيق الصورة على الشاشات الأصغر من 768px */
@media (max-width: 768px) {
    header {
        background-image: url('images/logo4.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #fff;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .top-bar {
        background-color: rgba(0,0,0,0.5);
    }
    .navbar .logo img {
        filter: brightness(1.2);
    }
    .nav-links li a {
        color: #fff;
    }
}

/* Navigation bar */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--hollywood-cerise);
}

.icons a {
    color: var(--text-color);
    margin-left: 15px;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.icons a:hover {
    color: var(--hollywood-cerise);
}

/* التعديلات الخاصة بالهواتف */
@media (max-width: 768px) {
    header {
        background-color: rgba(255, 255, 255, 0.85);
        background-image: url('images/logo4.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #fff;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .nav-links {
        background-color: var(--light-color);
    }
    
    .nav-links li a {
        color: var(--text-color);
    }
    
    .nav-links a:hover {
        color: var(--hollywood-cerise);
    }
    
    .icons a {
        color: var(--text-color);
    }
    
    .menu-toggle {
        color: var(--hollywood-cerise);
    }
}
/* Products Page Specific Styles */
.products-page {
    padding: 80px 0;
}

.category-heading {
    text-align: center;
    font-size: 28px;
    color: var(--black);
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
}

.category-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--hollywood-cerise);
    margin: 15px auto 0;
}

/* إعادة استخدام الأنماط العامة لضمان التناسق */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 250px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
}

.price {
    color: var(--hollywood-cerise);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
}

.add-to-cart {
    background-color: var(--hollywood-cerise);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.add-to-cart:hover {
    background-color: var(--carnation-pink);
}
/* Product Category Filter */
.category-filter {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--hollywood-cerise);
    color: white;
    border-color: var(--hollywood-cerise);
}
/* Product Details Page Styles */
.product-detail {
    padding: 80px 0;
}

.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.product-image-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.product-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-info-container {
    flex: 2;
    padding: 20px;
}

.product-info-container h1 {
    font-size: 36px;
    color: var(--black);
    margin-bottom: 15px;
}

.product-description {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 25px;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--hollywood-cerise);
    display: block;
    margin-bottom: 30px;
}

.buy-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.quantity-control {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    -moz-appearance: textfield;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-detail {
    background-color: var(--hollywood-cerise);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-detail:hover {
    background-color: var(--carnation-pink);
}

@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
    }

    .product-info-container {
        padding: 0;
    }
}
/* About Us Page Styles */
.about-us-section, .mission-vision-section, .our-journey-section, .team-section {
    padding: 60px 0;
}

.about-content-full {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.about-text-full {
    flex: 1;
    min-width: 280px;
    max-width: 600px;
    padding: 15px;
    box-sizing: border-box;
}

.about-image-full {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    text-align: center;
    box-sizing: border-box;
}

.about-image-full img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .about-content-full {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-text-full, .about-image-full {
        max-width: 100%;
        min-width: unset;
    }

    .about-us-section, .mission-vision-section, .our-journey-section, .team-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .about-page-hero h1 {
        font-size: 36px;
    }
    .about-page-hero p {
        font-size: 16px;
    }
}
/* Contact Page Styles */
.contact-page {
    padding: 80px 0;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-color);
}

.contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--black);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #592101;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info li i {
    color: #592101;
    font-size: 20px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--hollywood-cerise);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
}

@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
    }
}
/* Checkout and Thank You Pages */
.checkout-page, .thank-you-page {
    padding: 80px 0;
}

.checkout-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cart-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px dashed #ddd;
}

.cart-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
}

.checkout-details h3 {
    margin-top: 0;
    margin-bottom: 25px;
}

/* Thank you page */
.thank-you-page .container {
    text-align: center;
}

.thank-you-message {
    font-size: 24px;
    color: green;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.thank-you-message i {
    font-size: 40px;
}

.thank-you-page .btn {
    display: inline-block;
    margin-top: 20px;
}
/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding-top: 100px;
    box-sizing: border-box;
}

.cart-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-buttons .btn {
    width: auto;
    padding: 10px 20px;
}
/* Styling for Subscription Messages */
.subscription-message {
    padding: 15px;
    margin: 20px auto;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subscription-message p {
    margin: 0;
}

/* Success Message - Green */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Warning Message - Yellow/Orange */
.warning-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Error Message - Red */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding-top: 100px;
    box-sizing: border-box;
}

.cart-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-buttons .btn {
    width: auto;
    padding: 10px 20px;
}
/* زر Add to Cart موحد ومحسّن */
.add-to-cart, 
.add-to-cart-detail,
.cart-modal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(145deg, var(--hollywood-cerise), var(--carnation-pink));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(230, 6, 152, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart::before,
.add-to-cart-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.add-to-cart:hover::before,
.add-to-cart-detail:hover::before {
    left: 100%;
}

.add-to-cart:hover, 
.add-to-cart-detail:hover,
.cart-modal .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(230, 6, 152, 0.4);
    background: linear-gradient(145deg, var(--carnation-pink), var(--hollywood-cerise));
}

.add-to-cart:active, 
.add-to-cart-detail:active,
.cart-modal .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(230, 6, 152, 0.3);
}

/* أيقونة السلة في الزر */
.add-to-cart i, 
.add-to-cart-detail i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.add-to-cart:hover i, 
.add-to-cart-detail:hover i {
    transform: scale(1.2);
}

/* حالة التحميل أو المعالجة */
.add-to-cart.loading, 
.add-to-cart-detail.loading {
    pointer-events: none;
    opacity: 0.8;
}

.add-to-cart.loading::after, 
.add-to-cart-detail.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* رسالة النجاح عند الإضافة للسلة */
.add-to-cart.added, 
.add-to-cart-detail.added {
    background: linear-gradient(145deg, #4CAF50, #2E7D32);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.add-to-cart.added::after, 
.add-to-cart-detail.added::after {
    content: '✓';
    margin-left: 8px;
    font-weight: bold;
}

/* تكييف الزر في البطاقات */
.product-card .add-to-cart {
    width: 100%;
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
}

/* تكييف الزر في صفحة المنتج */
.product-info-container .add-to-cart-detail {
    padding: 15px 30px;
    font-size: 18px;
}

/* تكييف الزر في المودال */
.cart-modal .btn {
    margin: 5px;
    min-width: 120px;
}

/* تأثيرات للشاشات الصغيرة */
@media (max-width: 768px) {
    .add-to-cart, 
    .add-to-cart-detail {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .product-info-container .add-to-cart-detail {
        padding: 12px 25px;
        font-size: 16px;
    }
}

/* زر Add to Cart محسّن بشكل احترافي */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, var(--hollywood-cerise), var(--carnation-pink));
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(230, 6, 152, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 15px;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(230, 6, 152, 0.4);
    background: linear-gradient(145deg, var(--carnation-pink), var(--hollywood-cerise));
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(230, 6, 152, 0.3);
}

/* أيقونة السلة في الزر */
.add-to-cart-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover i {
    transform: scale(1.2);
}

/* حالة التحميل أو المعالجة */
.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.add-to-cart-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* رسالة النجاح عند الإضافة للسلة */
.add-to-cart-btn.added {
    background: linear-gradient(145deg, #4CAF50, #2E7D32);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.add-to-cart-btn.added::after {
    content: '✓';
    margin-left: 8px;
    font-weight: bold;
}

/* تكييف الزر في صفحة المنتج */
.product-info-container .add-to-cart-btn {
    padding: 15px 25px;
    font-size: 16px;
    width: auto;
    min-width: 200px;
}

/* تكييف الزر للشاشات الصغيرة */
@media (max-width: 768px) {
    .add-to-cart-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .product-info-container .add-to-cart-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 180px;
    }
}
/* Styling for category and product card links */
.category-card-link,
.product-card-link {
    text-decoration: none; /* لإزالة الخط المسطر */
    color: var(--text-color); /* لتغيير لون النص إلى اللون الرئيسي */
    display: block; /* لجعل الرابط يملأ مساحة البطاقة بالكامل */
}

/* Optional: Add a hover effect for better user experience */
.category-card-link:hover .category-card,
.product-card-link:hover .product-card {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.category-card-link:hover .category-info h3,
.product-card-link:hover .product-info h3 {
    color: var(--raw-umber); /* تغيير لون العنوان عند التمرير بالماوس */
}
/* Floating Cart Icon */
.floating-cart {
    position: fixed; /* يجعل الأيقونة عائمة */
    bottom: 30px; /* المسافة من أسفل الشاشة */
    right: 30px; /* المسافة من يمين الشاشة */
    z-index: 999; /* يضمن أنها تظهر فوق جميع العناصر الأخرى */
    background-color: var(--raw-umber); /* لون الخلفية */
    color: #ff66c4; /* لون الأيقونة */
    width: 60px; /* عرض الأيقونة */
    height: 60px; /* ارتفاع الأيقونة */
    border-radius: 50%; /* لجعلها دائرية الشكل */
    display: flex; /* لمركزة الأيقونة داخل الدائرة */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease; /* تأثير انسيابي عند التحريك */
    cursor: pointer;
}

.floating-cart:hover {
    transform: scale(1.1); /* تكبير الأيقونة عند تمرير الماوس */
}

.floating-cart i {
    font-size: 24px; /* حجم أيقونة السلة */
}