.homepage-slider .carousel-item {
    height: 100vh;
    min-height: 600px;
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    opacity: 0;
    z-index: 0;
    transform: none;
    /* Match Bootstrap 4.0's 600ms carousel completion timer. */
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}
.homepage-slider .carousel-item.active {
    position: relative;
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}
/* Keep the incoming slide opaque beneath the fading outgoing slide. */
.homepage-slider .carousel-item-next,
.homepage-slider .carousel-item-prev {
    opacity: 1;
    z-index: 1;
    transition: none;
}
.homepage-slider .active.carousel-item-left,
.homepage-slider .active.carousel-item-right {
    opacity: 0;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .homepage-slider .carousel-item { transition: none; }
}
.homepage-slider .slider-content { height: 100vh; min-height: 600px; }
.homepage-slider .overlay { position: absolute; inset: 0; }
.homepage-slider .banner-left { position: relative; z-index: 2; }
.homepage-slider .carousel-control-prev,
.homepage-slider .carousel-control-next { z-index: 3; }

@media (max-width: 767px) {
    .homepage-slider .carousel-item,
    .homepage-slider .slider-content { height: 75vh; min-height: 520px; }
}

.home-products { padding: 28px 0; }
.home-products .home-products-title { margin: 0 0 8px; font-size: 24px; text-align: center; }
.home-products-grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.home-products .home-product {
    display: flex;
    flex: 0 1 180px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-products img.home-product-logo { display: block; width: 160px; height: 110px; max-width: 160px; max-height: 110px; object-fit: contain; flex-shrink: 0; }
.home-products .home-product h3 { margin: 8px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.home-products-empty { width: 100%; margin: 0; text-align: center; }

.product-list .cms-image {
    display: block;
    width: 160px;
    height: 120px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}
.product-list .single-other-issue { text-align: center; }
.product-detail .content-page-image {
    display: block;
    width: 280px;
    height: 220px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}
.product-detail .gallery-card img {
    display: block;
    width: 140px;
    height: 110px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}
.product-detail .gallery-card { text-align: center; }

.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.footer-social-links a img { width: 22px; height: 22px; object-fit: contain; }
.footer-social-links a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); font-size: 18px; }
.footer-social-links a:hover, .footer-social-links a:focus-visible { color: #f8b600; background: rgba(255,255,255,.2); }

/* Slightly translucent dropdown panels with readable Persian text. */
#header .nav-menu ul,
#mobile-nav ul ul {
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 6px;
}
#header .nav-menu ul li,
#header .nav-menu ul a,
#mobile-nav ul ul li,
#mobile-nav ul ul a {
    background: transparent;
    box-shadow: none;
    border: 0;
}
#header .nav-menu ul li a,
#mobile-nav ul ul li a {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;
    text-align: right;
    background: transparent;
    color: #222;
    text-shadow: none;
}
#header .nav-menu ul li:hover > a,
#header .nav-menu ul li a:focus-visible,
#mobile-nav ul ul li a:hover {
    color: #f8b600;
}
