@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

/* إعادة تعيين الأنماط الافتراضية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary-color: #f8fafc;
    --secondary-color: #1B9BD8;
    --third-color: #1B2848;
    --fourth-color: #000000;
    --accent-color: #0ea5e9;
    --text-color: #334155;
    --light-blue: #e0f2fe;
    --very-light-blue: #f0f9ff;
    --border-color: #e2e8f0;
    --hover-color: #0284c7;
    --navbar-height: 72px;
}

body {
    background-color: var(--light-blue);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
}

.site-content {
    padding-top: var(--navbar-height);
}

.site-content>[class$='-section'],
.site-content>section,
.site-content>header {
    margin-top: 0 !important;
}

.site-content>.profile-section {
    padding-top: 2rem !important;
}

.about-page {
    background-image: url('../images/image-4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* القائمة العلوية */
.navbar {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--navbar-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: white;
}

.logo .brand-text {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.2px;
}

.logo .brand-text:hover {
    opacity: 0.9;
}


.logo img {
    height: 52px;
    width: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#title {
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* القسم الرئيسي */
.hero {
    background-color: var(--primary-color);
    padding: 8rem 0 4rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1B2848;
    /* Dark Blue */
}

/* قسم المميزات */
.features {
    padding: 6rem 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 1rem;
    width: 100%;
    display: block;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.features .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.features .cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--primary-color);
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--fourth-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--fourth-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* تذييل الصفحة */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(255, 255, 255, 0.5));
    border-radius: 2px;
}


.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* معلومات التواصل */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}


/* روابط التواصل الاجتماعي */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-link i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ألوان خاصة لوسائل التواصل */
.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.social-link.whatsapp:hover i {
    color: white;
    transform: scale(1.1);
}

.social-link.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.4);
}

.social-link.telegram:hover i {
    color: white;
    transform: scale(1.1);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-link.facebook:hover i {
    color: white;
    transform: scale(1.1);
}

.social-link.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.4);
}

.social-link.instagram:hover i {
    color: #26335d;
    transform: scale(1.1);
}

/* أسفل الفوتر */
.footer-bottom {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

/* تجاوب الموقع */
@media (max-width: 1200px) {
    .features .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-grid {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .service-card {
        flex: 0 0 calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .features .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        max-width: 350px;
        margin: 0 auto;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* قسم الخدمات */
.services {
    padding: 6rem 0;
    background-color: var(--primary-color);
}

.services h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: bold;
}

.service-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    padding: 0 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    flex: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
    border: 3px solid #FFD700;
    transition: transform 0.3s ease;
    min-width: 220px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--fourth-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--fourth-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.values {
    margin-top: 3rem;
    text-align: center;
}

.values h3 {
    color: var(--fourth-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
    border: 3px solid #FFD700;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--fourth-color);
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--fourth-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-item p {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.about-section {
    margin-top: 0;
    padding: 4rem 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.mission,
.vision {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.mission h3,
.vision h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.values {
    margin-top: 4rem;
    text-align: center;
}

.values h3 {
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background-color: var(--light-blue);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2.5rem;
    color: #1b9bd8;
    margin-bottom: 1.5rem;
}

.value-item h4 {
    color: var(--fourth-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-item p {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        padding: 2rem;
    }

    .value-item {
        padding: 2rem;
    }
}

/* قسم اختصارات المواقع */
.shortcuts {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--very-light-blue) 100%);
    position: relative;
}

.shortcuts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(27, 155, 216, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27, 155, 216, 0.05) 0%, transparent 50%);
}

.shortcuts .container {
    position: relative;
    z-index: 2;
}

.shortcuts h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(27, 155, 216, 0.2);
    position: relative;
    padding-bottom: 1.5rem;
}

.shortcuts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(27, 155, 216, 0.3);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.shortcut-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(27, 155, 216, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    justify-content: center;
}

.shortcut-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(27, 155, 216, 0.1), transparent);
    transition: left 0.6s;
}

.shortcut-card:hover::before {
    left: 100%;
}

.shortcut-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(27, 40, 72, 0.2);
    border-color: #1B2848;
    background: #1B2848;
}

.shortcut-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(27, 155, 216, 0.3);
}

.shortcut-card:hover .shortcut-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.shortcut-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.4s ease;
}

.shortcut-card:hover .shortcut-icon i {
    transform: scale(1.1);
}

.shortcut-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.shortcut-card:hover h3 {
    color: white;
}

.shortcut-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    transition: color 0.3s ease;
}

.shortcut-card:hover p {
    color: white;
}

/* تجاوب اختصارات المواقع */
@media (max-width: 1200px) {
    .shortcuts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .shortcuts {
        padding: 4rem 0;
    }

    .shortcuts h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .shortcut-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
    }

    .shortcut-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .shortcut-icon i {
        font-size: 2rem;
    }

    .shortcut-card h3 {
        font-size: 1.2rem;
    }

    .shortcut-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shortcut-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }

    .shortcuts h2 {
        font-size: 2rem;
    }
}

/* تنسيقات صفحات فئات المنتجات */
.product-category-section {
    margin-top: 0;
    padding: 4rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--hover-color);
    transform: translateX(-5px);
}

.back-link i {
    font-size: 1.2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(27, 155, 216, 0.2);
    border-color: var(--secondary-color);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--very-light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image i {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.7;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.product-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* تجاوب صفحات فئات المنتجات */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.3rem;
    }
}

.product-details-section {
    margin-top: 0;
    padding: 4rem 0;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-brand {
    display: flex;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.brand-name {
    color: var(--primary-color);
    font-weight: bold;
}

.product-price {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.product-description h3,
.product-features h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-description p {
    line-height: 1.8;
    color: var(--text-color);
}

.product-features ul {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.product-features i {
    color: var(--primary-color);
}

.product-actions {
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}



.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 992px) {
    .product-details {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-title {
        font-size: 2rem;
    }
}

.search-container {
    position: relative;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    max-width: 600px;
    width: 100%;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: var(--hover-color);
}

#searchInput {
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    background-color: white;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(27, 155, 216, 0.08);
}

#searchInput:focus {
    outline: none;
    border-color: var(--hover-color);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.15);
}

#searchInput::placeholder {
    color: #666;
    font-size: 1rem;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(27, 155, 216, 0.1);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 1rem;
}

.search-result-item:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.search-result-item:last-child {
    border-bottom: none;
}


@media (max-width: 768px) {
    .search-container {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    #searchInput {
        padding: 12px 45px 12px 15px;
        font-size: 1rem;
    }
}

.section-title {
    text-align: center;
    color: var(--secondary-color);
    margin: 3rem auto;
    font-size: 3.5rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 1.5rem;
    width: fit-content;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin: 2rem auto;
    }

    .section-title::after {
        width: 100px;
        height: 3px;
    }
}

/* Shopping Cart Styles */
.cart-icon-container {
    position: relative;
}

.cart-icon {
    position: relative;
    color: var(--secondary-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: var(--hover-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.cart-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.cart-modal.active .cart-content {
    transform: translateY(0);
}

.cart-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.cart-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.empty-cart p {
    font-size: 1.1rem;
    margin: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(27, 155, 216, 0.1);
}

.item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.item-price {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.qty {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Cart Modal - Premium Redesign */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active {
    display: flex;
    opacity: 1;
}

.cart-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90% !important;
    max-width: 450px !important;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.cart-modal.active .cart-content {
    transform: scale(1);
    opacity: 1;
}

.cart-body {
    overflow-y: auto;
    flex: 1;
    padding: 1.5rem;
}

.cart-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--third-color) 100%);
    padding: 1.5rem 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cart-header h2::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #FFD700;
}

.close-cart {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.cart-footer {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--third-color);
}

.cart-total span:last-child {
    color: var(--secondary-color);
}

.cart-actions {
    display: flex;
    gap: 1rem;
}

.btn-clear,
.btn-checkout {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-clear:hover {
    background: #e2e8f0;
    color: #ef4444;
}

.btn-checkout {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(27, 155, 216, 0.25);
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(27, 155, 216, 0.35);
    background: linear-gradient(135deg, #0284c7 0%, var(--secondary-color) 100%);
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1B2848;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid #FFD700;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    border-color: #FFA500;
    color: white;
}

.add-to-cart-btn i {
    font-size: 1.1rem;
}

/* Product Actions Container */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    /* Allows interaction when shown */
}

.cart-notification i {
    font-size: 1.2rem;
}

/* Fallback Logo Styles */
.fallback-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--very-light-blue) 100%);
    padding: 1rem;
}

/* Mobile Responsiveness for Cart */
@media (max-width: 768px) {
    .cart-content {
        width: 92% !important;
        margin: auto;
        max-height: 80vh;
    }

    .cart-header {
        padding: 1rem;
    }

    .cart-header h2 {
        font-size: 1.2rem;
    }

    .cart-body {
        padding: 0.8rem;
    }

    .cart-footer {
        padding: 1rem;
    }

    .cart-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-clear,
    .btn-checkout {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .cart-item {
        flex-direction: row;
        text-align: right;
        gap: 0.8rem;
        align-items: center;
        padding: 0.5rem;
    }

    .item-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .item-controls {
        justify-content: flex-end;
    }

    .cart-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .cart-notification.show {
        transform: translateY(0);
    }
}


/* =========================
   Premium Nav (Mobile Menu)
   ========================= */
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    color: var(--third-color);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
}

.menu-toggle:hover {
    background: var(--very-light-blue);
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 56px;
    }

    .navbar {
        padding: 0;
    }

    .navbar .container {
        position: relative;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.open {
        max-height: 70vh;
        overflow: auto;
    }

    .nav-links li {
        padding: 0.25rem 0;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.7rem 0.8rem;
        border-radius: 12px;
    }

    .nav-links a:hover {
        background: var(--very-light-blue);
    }
}

/* =========================
   Account Dropdown
   ========================= */
.account-dropdown {
    position: relative;
}

.account-link i {
    margin-left: 8px;
}

.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 190px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 0.4rem;
    display: none;
    z-index: 1100;
}

.account-dropdown:hover .account-dropdown-menu {
    display: block;
}

.account-dropdown-menu a,
.account-dropdown-menu button {
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.account-dropdown-menu a:hover,
.account-dropdown-menu button:hover {
    background: var(--very-light-blue);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .account-dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0.3rem;
        background: transparent;
    }

    .account-dropdown {
        border-top: 1px solid var(--border-color);
        padding-top: 0.5rem;
        margin-top: 0.3rem;
    }
}

/* =========================
   Auth Pages
   ========================= */
.auth-page {
    background: linear-gradient(rgba(240, 249, 255, 0.7), rgba(240, 249, 255, 0.7)), url('../images/image-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.auth-section {
    padding: 8.5rem 0 4rem;
    min-height: 70vh;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #FFD700;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 215, 0, 0.1);
    padding: 3rem 2.5rem;
    max-width: 560px;
    margin: 0 auto;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 215, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFD700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(27, 155, 216, 0.3);
    animation: authIconPulse 3s infinite;
}

@keyframes authIconPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(27, 155, 216, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(27, 155, 216, 0.3);
    }
}

.auth-card h1 {
    color: var(--third-color);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-sub {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1.4rem;
}

.form-msg {
    display: none;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--very-light-blue);
    color: var(--third-color);
}

.form-msg.error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.form-msg.success {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0f766e;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-form label {
    font-weight: 700;
    color: var(--third-color);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form label i {
    color: var(--secondary-color);
    width: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.auth-form input {
    border: 1px solid var(--border-color);
    padding: 0.9rem 1rem;
    border-radius: 14px;
    outline: none;
    transition: 0.2s ease;
    background: white;
}

.auth-form input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
}

.auth-btn {
    margin-top: 0.8rem;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-decoration: none;
    transition: 0.25s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(27, 155, 216, 0.35);
}

.auth-btn.secondary {
    background: white;
    color: var(--third-color);
    border: 1px solid var(--border-color);
}

.auth-btn.secondary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-links {
    margin-top: 0.9rem;
    text-align: center;
    font-weight: 600;
}

.auth-links a {
    color: var(--secondary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}



/* =========================
   Premium Theme (Global Polish)
   - Colors, animations, footer redesign
   ========================= */

:root {
    /* Brand palette */
    --brand-900: #081125;
    --brand-800: #0b1731;
    --brand-700: #0f2145;

    /* Map legacy vars to premium values */
    --primary-color: #ffffff;
    --secondary-color: #1B9BD8;
    --third-color: #0f172a;
    --fourth-color: #0b132b;
    --accent-color: #22d3ee;
    --text-color: #334155;
    --light-blue: #f1f5f9;
    --very-light-blue: #e0f2fe;
    --border-color: #e2e8f0;
    --hover-color: #0ea5e9;

    /* Extras */
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, .10);
    --shadow-md: 0 14px 40px rgba(15, 23, 42, .14);
    --shadow-lg: 0 22px 70px rgba(2, 8, 23, .22);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(1000px 700px at 15% 10%, rgba(34, 211, 238, .12), transparent 55%),
        radial-gradient(900px 700px at 85% 15%, rgba(27, 155, 216, .14), transparent 55%),
        linear-gradient(180deg, var(--light-blue), #ffffff 55%);
    color: var(--text-color);
}

::selection {
    background: rgba(34, 211, 238, .25);
}

/* Focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .22);
    border-radius: 12px;
}

/* Navbar premium */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
}

.navbar.scrolled {
    box-shadow: 0 18px 55px rgba(15, 23, 42, .14);
    background: #ffffff;
}

.nav-links a {
    position: relative;
    padding: .55rem .75rem;
    border-radius: 12px;
    font-weight: 700;
}

.nav-links a::after {
    content: "";
    position: absolute;
    inset: auto 12px 8px 12px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, rgba(27, 155, 216, .95), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Buttons (global polish) */
.cta-button,
.btn-details,
.btn-cart,
.btn-checkout,
.btn-clear,
.auth-btn {
    border-radius: 16px !important;
}

.cta-button {
    box-shadow: 0 16px 40px rgba(27, 155, 216, .30);
}

.cta-button:hover {
    box-shadow: 0 22px 60px rgba(27, 155, 216, .40);
}

/* Reveal on scroll (fix .visible bug) */
.feature-card,
.product-card,
.service-card,
.offer-card,
.value-item,
.shortcut-card {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(1px);
    transition: opacity .55s ease, transform .55s ease, filter .55s ease;
    will-change: transform, opacity;
}

.feature-card.visible,
.product-card.visible,
.service-card.visible,
.offer-card.visible,
.value-item.visible,
.shortcut-card.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Micro-interactions */
.feature-card:hover,
.product-card:hover,
.service-card:hover,
.offer-card:hover,
.value-item:hover,
.shortcut-card:hover {
    transform: translateY(-10px);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Keyframes referenced by inline styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-140%) rotate(12deg);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateX(140%) rotate(12deg);
        opacity: 0;
    }
}


/* Preserve animation end-state where inline pages use fadeInUp */
.offer-card {
    animation-fill-mode: both;
}

/* =========================
   Premium Footer (New)
   ========================= */
.site-footer {
    position: relative;
    padding: 4.8rem 0 0;
    color: rgba(255, 255, 255, .86);
    background:
        radial-gradient(1000px 600px at 15% 15%, rgba(34, 211, 238, .22), transparent 60%),
        radial-gradient(900px 600px at 85% 30%, rgba(27, 155, 216, .22), transparent 58%),
        linear-gradient(180deg, var(--brand-800), var(--brand-900));
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 40%, rgba(255, 255, 255, .04));
    opacity: .65;
    pointer-events: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% -30%;
    height: 420px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .10), transparent 65%);
    filter: blur(0px);
    pointer-events: none;
}

.footer-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr 1fr;
    gap: 2.2rem;
    padding-bottom: 2.6rem;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.footer-logo img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .20);
}

.footer-brand-title {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.footer-brand-title strong {
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: .2px;
}

.footer-brand-title span {
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
    font-size: .95rem;
}

.footer-desc {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.8;
    max-width: 46ch;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 800;
    font-size: .85rem;
    color: rgba(255, 255, 255, .86);
}

.footer-col h4 {
    color: #fff;
    font-size: 1.12rem;
    margin: 0 0 .95rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 52px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(34, 211, 238, .9), rgba(27, 155, 216, .9));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .2rem 0;
    transition: transform .2s ease, color .2s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(-4px);
}

.footer-links i {
    color: rgba(34, 211, 238, .95);
    font-size: .95rem;
}

.footer-contact {
    display: grid;
    gap: .65rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, .80);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .4rem .55rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.footer-contact a:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-2px);
}

.footer-contact i {
    color: rgba(34, 211, 238, .95);
    min-width: 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: translateX(-120%);
    opacity: 0;
}

.footer-social a:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .14);
}

.footer-social a:hover::before {
    opacity: 1;
    animation: shine 1.2s ease both;
}

.footer-cta {
    margin-top: 1rem;
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    background: linear-gradient(135deg, rgba(27, 155, 216, .95), rgba(34, 211, 238, .85));
    box-shadow: 0 14px 40px rgba(27, 155, 216, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 55px rgba(27, 155, 216, .32);
}

.footer-bottom-new {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, .08);
    padding: 1.15rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}



/* Back to top */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(135deg, rgba(27, 155, 216, .95), rgba(34, 211, 238, .85));
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 55px rgba(2, 8, 23, .28);
    cursor: pointer;
    z-index: 1200;
    transition: transform .2s ease, opacity .2s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* القائمة المنسدلة */
.account-dropdown {
    position: relative;
    cursor: pointer;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.account-link i {
    font-size: 1.5rem;
}

.account-link:hover {
    color: var(--hover-color);
    transform: scale(1.05);
}

.account-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border-top: 3px solid var(--secondary-color);
}

.account-dropdown:hover .account-dropdown-menu,
.account-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-dropdown-menu a i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.account-dropdown-menu a:hover {
    background-color: var(--very-light-blue);
    color: var(--secondary-color);
    padding-right: 2rem;
}

/* =========================
   Favorites Feature Styles
   ========================= */
.favorite-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: auto;
    /* Fit text */
    padding: 0 5px;
    height: 30px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    /* Space between heart and number */
    box-shadow: none;
    cursor: pointer;
    border: none;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-count {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.favorite-btn.active .like-count {
    color: #FFD700;
}

.favorite-btn i {
    color: #cbd5e1;
    font-size: 20px !important;
    /* Back to 20px */
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
    /* No shadow/border on hover */
}

.favorite-btn.active {
    background: transparent;
    border: none;
    box-shadow: none;
}

.favorite-btn.active i {
    color: #FFD700;
    /* Gold */
    background: -webkit-linear-gradient(45deg, #FFD700, #FDB931);
    -webkit-background-clip: text;
    background-clip: text;
    /* Fix lint */
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    transform: scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

.main-image {
    position: relative;
    /* Ensure it stays inside main image */
}
