* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
}

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -50px;
    animation: fall linear infinite;
}

.snowflake img {
    display: block;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

body.has-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: -1;
    pointer-events: none;
}

body.has-background .category-nav {
    background: rgba(248, 249, 250, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.has-background .category-section {
    background: rgba(248, 249, 250, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.has-background .product-item {
    background: rgba(248, 249, 250, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10px;
    padding-top: 20px;
}

.news-bar {
    background: #000;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.news-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    text-align: center;
    min-height: 24px;
}

.news-text {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    font-size: 16px;
    font-weight: 600;
}

.news-text a {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.news-text a:hover {
    border-bottom-color: #fff;
}

.news-text.active {
    opacity: 1;
    position: relative;
}

body:has(.news-bar) .header {
    margin-top: 54px;
}

.header {
    padding: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.category-nav {
    background: white;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #667eea;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background-color: #f8f9fa;
}

.nav-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.nav-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-top:  5px;
    padding-bottom: 5px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.nav-icon {
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 40px var(--border-color, green), 0 0 60px var(--border-color, green);
    padding: 15px;
    transition: all 0.3s ease, border-color 2s ease, box-shadow 2s ease;
    border: 3px solid var(--border-color, green);
}

body.dark-mode .nav-icon {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 3px solid #000;
}

.nav-icon img {
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    border-radius: 0;
}

.nav-icon i {
    font-size: 40px;
    color: #667eea;
}

.placeholder-icon {
    font-size: 28px;
    color: #ccc;
    font-weight: bold;
}

.nav-label {
    font-weight: 600;
    text-align: center;
    font-size: 13px;
    line-height: 1.1;
    color: #333;
    max-width: 100%;
    word-wrap: break-word;
}

.nav-item.placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    opacity: 0.7;
}

.main-content {
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.category-section {
    margin-bottom: 80px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.category-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    margin: 0;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-section {
    padding: 5px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: scale(1.02);
}

.banner-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 725 / 230;
}

.banner-item.placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 725 / 230;
}

.banner-placeholder {
    text-align: center;
    color: #999;
    font-weight: 600;
}

.product-section {
    padding: 0 40px 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.debug-inactive {
    opacity: 0.5 !important;
    transition: opacity 0.3s ease;
}

.debug-inactive:hover {
    opacity: 0.7 !important;
}

.product-item.placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-item.placeholder:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.product-placeholder {
    text-align: center;
    color: #999;
    font-weight: 600;
}

.add-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* Show More Button */
.show-more-btn {
    display: none;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.show-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.show-more-btn.active i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .show-more-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.admin-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.btn-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

@media (max-width: 1200px) {
    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-nav {
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        padding: 10px 0;
    }
    
    .nav-header {
        display: none;
    }
    
    .nav-content {
        display: block;
        max-height: none;
        opacity: 1;
        padding: 0;
        overflow: visible;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
    }
    
    .nav-item {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .nav-icon {
        width: 100px;
        height: 100px;
        gap: 3px;
   
    }
    
    .nav-icon img {
        width: 100%;
        height: auto;
        max-height: 45px;
        object-fit: contain;
    }
    
    .nav-icon i {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 0.6rem;
        line-height: 1.1;

    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }
    
    .product-image img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    
    .category-title {
        font-size: 2rem;
        padding: 20px;
    }
    
    .banner-section,
    .product-section {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    /* Hide products after the 4th on mobile initially */
    .product-grid:not(.show-all) .product-item[data-index]:nth-child(n+5) {
        display: none;
    }
    
    .product-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }
    
    .product-image img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    
    .nav-item {
        padding: 10px 5px;
    }
    
    .nav-icon {
        width: 75px;
        height: 75px;
        gap: 4px;
        padding: 10px;
    }
    
    .nav-icon img {
        width: 100%;
        height: auto;
        max-height: 35px;
        object-fit: contain;
    }
    
    .nav-icon i {
        font-size: 22px;
    }
    
    .nav-label {
        font-size: 0.55rem;
        line-height: 1.1;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
        z-index: 1000;
    }

    .newsletter-form input[type="email"] {
        max-width: 100%;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-description {
        font-size: 1rem;
    }

    .newsletter-btn {
        width: 100%;
        justify-content: center;
    }

    .floating-share-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .floating-share-btn i {
        font-size: 20px;
    }

    .share-menu {
        bottom: 80px;
        left: 20px;
    }

    .share-option {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .share-option i {
        font-size: 18px;
    }

    .floating-accessibility-btn {
        width: 50px;
        height: 50px;
        bottom: 80px;
        left: 20px;
    }

    .floating-accessibility-btn i {
        font-size: 20px;
    }

    .accessibility-menu {
        bottom: 140px;
        left: 20px;
        min-width: 180px;
    }

    .accessibility-option {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .accessibility-option i {
        font-size: 18px;
    }

    .accessibility-title {
        font-size: 1rem;
    }
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-section {
    animation: fadeIn 0.6s ease-out;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

[dir="rtl"] .header-content {
    text-align: right;
}

[dir="rtl"] .category-title {
    text-align: center;
}

[dir="rtl"] .nav-label {
    text-align: center;
}

[dir="rtl"] .product-info h4 {
    text-align: center;
}

[dir="rtl"] .banner-placeholder {
    text-align: center;
}

[dir="rtl"] .product-placeholder {
    text-align: center;
}

/* General Banners Sections */
.general-banners-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.general-banners-top {
    margin-top: 40px;
    margin-bottom: 40px;
}

.general-banners-bottom {
    margin-top: 40px;
    margin-bottom: 80px;
}

.general-banners-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.general-banners-section .banner-section {
    padding: 5px 0;
}

.banner-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.general-banners-section .banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.general-banners-section .banner-item:hover {
    transform: scale(1.02);
}

.general-banners-section .banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .banner-grid-2col {
        grid-template-columns: 1fr;
    }
}

.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    margin-top: 60px;
    z-index: 1000;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.newsletter-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: stretch;
}

.newsletter-form input[type="email"] {
    flex: 1;
    max-width: 400px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Assistant', sans-serif;
    text-align: right;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    padding: 15px 35px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Assistant', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-message.show {
    opacity: 1;
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #fff;
    border: 2px solid rgba(76, 175, 80, 0.5);
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #fff;
    border: 2px solid rgba(244, 67, 54, 0.5);
}

.floating-share-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.floating-share-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.floating-share-btn i {
    color: white;
    font-size: 24px;
}

.share-menu {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    width: 100%;
    font-family: 'Assistant', sans-serif;
    font-size: 1rem;
    color: #333;
}

.share-option:hover {
    background: #f5f5f5;
    transform: translateX(-5px);
}

.share-option i {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

#shareFacebook i {
    color: #1877f2;
}

#shareWhatsapp i {
    color: #25d366;
}

#shareEmail i {
    color: #ea4335;
}

.share-option span {
    font-weight: 600;
}

.floating-accessibility-btn {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.floating-accessibility-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
}

.floating-accessibility-btn i {
    color: white;
    font-size: 24px;
}

.accessibility-menu {
    position: fixed;
    bottom: 170px;
    left: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
    min-width: 200px;
}

.accessibility-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.accessibility-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.accessibility-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    width: 100%;
    font-family: 'Assistant', sans-serif;
    font-size: 1rem;
    color: #333;
    text-align: right;
}

.accessibility-option:hover {
    background: #f5f5f5;
}

.accessibility-option i {
    font-size: 20px;
    width: 30px;
    text-align: center;
    color: #4CAF50;
}

.accessibility-option span {
    font-weight: 600;
    flex: 1;
}

body.dark-mode {
    background: #000 !important;
    background-image: none !important;
}

body.dark-mode .container,
body.dark-mode .category-section,
body.dark-mode .banner-item,
body.dark-mode .product-card {
    background: rgba(30, 30, 30, 0.9) !important;
}

body.dark-mode .nav-item {
    background: rgba(40, 40, 40, 0.9);
}

body.snow-hidden .snow-container {
    display: none !important;
}

