/* Add custom CSS styles below */ 
.main-nav-container.fixed-pinned .main-menu>li>a {
    padding-bottom: 20px;
    padding-top: 7px;
}

.main-menu>li>a {
    padding-top: 7px;
}


/* header */
/* Reduce the height of the breadcrumbs section */
.relative.sub_categories-container .relative.overflow-hidden {
    min-height: 40px !important;
    height: auto !important;
    padding: 0 !important;
}

/* Reduce inner spacing */
.relative.sub_categories-container .relative.overflow-hidden .mx-auto {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Optional: reduce breadcrumb font size */
.s-breadcrumb-wrapper {
    font-size: 14px;
}

.s-breadcrumb-item {
    padding: 4px 0;
}

/*
Footer
*/
/* Custom Footer Redesign - High-End Professional UI */
.store-footer {
    background: linear-gradient(145deg, #111418 0%, #0a0c0e 100%) !important;
    color: #d1d5db !important;
    font-family: 'Tajawal', 'Cairo', 'Almarai', system-ui, -apple-system, sans-serif !important;
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
    direction: rtl !important;
    position: relative !important;
    border-top: 1px solid #1f2328 !important;
}

.store-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.custom-footer-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Typography Enhancements */
.store-footer h3 {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    display: inline-block;
}

.store-footer .important-links-contianer h3::after,
.store-footer .contact-links-contianer h3::after,
.store-footer .acount-links-contianer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.store-footer .footer-col:hover h3::after {
    width: 50px;
}

.store-footer a {
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.store-footer a:hover {
    color: var(--color-primary) !important;
}

/* Back to Top Button */
.back-to-top-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Social Media Navigation (Brand Column) */
.brand-social-nav {
    display: block;
}

.store-footer .footer-main-section .brand-social-nav ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.875rem;
    list-style: none !important;
    padding: 0 !important; margin: 0 !important;
}

.social-link {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 17% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-link svg {
    width: 20px; height: 20px;
    transition: transform 0.3s ease;
}

.social-link svg path {
    fill: #d1d5db !important;
    transition: fill 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-4px) !important;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.social-link:hover svg path {
    fill: var(--color-primary) !important;
}

.social-name {
    display: none !important;
}

/* Main Columns */
.footer-main-section {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
}

.footer-col-brand .footer-head-logo a {
    display: inline-block;
}

.footer-col-brand .footer-head-logo h3 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.5px;
}

.footer-col-brand .footer-head-logo h3::after {
    display: none !important;
}

.footer-col-brand .footer-head-description {
    color: #9ca3af;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-col-brand .text-right {
    text-align: right !important;
}

/* Links Configuration */
.store-footer .footer-main-section ul {
    list-style: none !important;
    padding: 0 !important; margin: 0 !important;
    display: flex;
    flex-direction: column !important;
    gap: 1rem;
}

.custom-link-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-right: 1.25rem;
}

.custom-link-item a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-link-item a:hover::before {
    background: var(--color-primary);
    width: 8px;
    border-radius: 4px;
}

.custom-link-item a:hover {
    transform: translateX(-6px); /* Moves left in RTL */
    color: #ffffff !important;
}

.store-footer i[class^="sicon-"] {
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

/* Contact Links */
.contact-links li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease !important;
    margin-bottom: 0.5rem;
}

.contact-links li a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.contact-links span[class*="border-gray-200"] {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.contact-links span.text-xxs {
    font-size: 0.75rem !important;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.contact-links span.text-sm {
    font-size: 1.1rem !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    direction: ltr; /* Good for phone numbers */
    display: inline-block;
}

/* Contact Link Hover State */
.contact-links li a:hover span[class*="border-gray-200"] {
    background: var(--color-primary);
    border-color: var(--color-primary) !important;
    color: #ffffff;
}

.contact-links li a:hover span[class*="border-gray-200"] i {
    color: #ffffff;
}

.contact-links li a:hover span.text-xxs {
    color: #ffffff;
}

/* Trust Badges Wrapper */
.trust-badges-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Bottom Section */
.footer-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright-text p {
    color: #9ca3af !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
}

.copyright-text a {
    color: #ffffff !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright-text a:hover {
    color: var(--color-primary) !important;
}

.s-payments-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 !important; margin: 0 !important;
    list-style: none !important;
}

.s-payments-list-item {
    background: #ffffff !important;
    padding: 0.35rem 0.5rem !important;
    border-radius: 6px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease !important;
}

.s-payments-list-item:hover {
    transform: translateY(-2px) !important;
}

.s-payments-list-item img {
    height: 24px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Responsive UI Improvements */
@media (max-width: 1024px) {
    .footer-main-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .store-footer {
        padding-top: 2.5rem !important;
    }

    .footer-main-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }
    
    .footer-col-brand {
        text-align: center !important;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col-brand .footer-head-logo h3 {
        font-size: 1.8rem !important;
    }

    .footer-col-brand .text-right {
        text-align: center !important;
    }

    .brand-social-nav ul {
        justify-content: center !important;
    }

    /* Keep lists right-aligned but pad them beautifully on mobile */
    .store-footer .footer-col:not(.footer-col-brand) {
        background: rgba(255, 255, 255, 0.015);
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .store-footer h3 {
        display: block;
        text-align: right;
    }
    
    .store-footer .footer-col:hover h3::after {
        width: 30px; /* Disable hover expansion on mobile */
    }

    .store-footer .important-links-contianer h3::after,
    .store-footer .contact-links-contianer h3::after,
    .store-footer .acount-links-contianer h3::after {
        right: 0;
        left: auto;
    }

    .custom-link-item a {
        justify-content: flex-start;
    }

    .contact-links li a {
        justify-content: flex-start;
    }

    .footer-bottom-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }
    
    .s-payments-list {
        justify-content: center;
    }
    
    .trust-badges-wrapper {
        align-items: flex-start;
    }
}