/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* جلوگیری از اسکرول افقی در کل صفحه */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* تعریف فونت YekanBakhFaNum-Light */
@font-face {
    font-family: 'YekanBakhFaNum-Light';
    src: url('https://pashamokamel.com/wp-content/uploads/2025/05/YekanBakhFaNum-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* تعریف فونت YekanBakhFaNum-Bold */
@font-face {
    font-family: 'YekanBakhFaNum-Bold';
    src: url('https://pashamokamel.com/wp-content/uploads/2025/05/YekanBakhFaNum-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت YekanBakhFaNum-Light به body */
body {
    font-family: 'YekanBakhFaNum-Light', sans-serif;
    direction: rtl;
    text-align: right;
}

/* اعمال فونت YekanBakhFaNum-Bold به عناوین */
h1, h2, h3, h4, h5, h6 {
    font-family: 'YekanBakhFaNum-Bold', sans-serif;
    font-weight: 700;
    color: #004a61;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 20px;
}

h3 {
    font-size: 26px;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* اعمال فونت YekanBakhFaNum-Light به متن‌های معمولی */
p {
    font-size: 20px;
    line-height: 38px;
    font-family: 'YekanBakhFaNum-Light', sans-serif;
    font-weight: 300;
    color: #000000;
}

.entry-content p {
    margin-bottom: 1.0em;
}

strong {
    font-family: 'YekanBakhFaNum-Bold', sans-serif;
}

a {
    text-decoration: none;
}

/* محدود کردن عرض سایت به 1200 پیکسل */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* استایل هدر */
.main-header {
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    width: 6%;
}

.search-container {
    position: relative;
    flex: 1;
    margin: 0 15px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-icon {
    background-color: transparent;
    border: none;
    margin-right: -35px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1;
}

.icons {
    display: flex;
    gap: 10px;
}

.icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    margin: 3px 10px 0px 0px;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    flex-wrap: wrap;
}

.menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
    cursor: pointer;
}

.menu li a {
    text-decoration: none;
    color: #333;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 20px;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.has-mega:hover .mega-menu {
    display: grid;
}

.mega-menu .column {
    min-width: 144.5px;
}

.mega-menu a {
    display: block;
    margin-top: 5px;
    color: #333;
}

.phone-number {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 10px;
}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .bottom-bar {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .bottom-bar.show {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .menu {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        display: none;
    }

    .search-container.active .search-input {
        display: block;
        position: absolute;
        top: 45px;
        width: 100%;
        background: #fff;
        z-index: 1000;
        animation: fadeInDown 0.3s ease forwards;
    }

    .mega-menu {
        position: relative;
        top: 0;
        box-shadow: none;
        padding: 10px;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        background: #f9f9f9;
    }

    .mega-menu .column {
        background: #fff;
        padding: 10px;
        border-radius: 5px;
    }

    .has-mega:hover .mega-menu {
        display: none;
    }

    .has-mega.active .mega-menu {
        display: grid !important;
    }

    .phone-number {
        display: block;
        margin-top: 15px;
    }

    .logo {
        width: 15%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: auto;
        opacity: 1;
    }
}

/* استایل کلی فرم جستجو */
.upseo-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 0 10px;
    z-index: 100;
}

#upseo-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* استایل نتایج جستجو */
.upseo-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    max-height: 450px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.2s ease-in-out;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    z-index: 999;
}

/* وقتی نتایج فعال هستند */
.upseo-search-results.active {
    visibility: visible;
    opacity: 1;
    display: grid;
}

/* استایل هر آیتم نتیجه */
.upseo-search-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s;
}

.upseo-search-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.upseo-search-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 6px;
}

.upseo-search-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.upseo-search-item-price {
    font-size: 13px;
    color: #888;
}

/* دکمه نتایج بیشتر */
.upseo-search-more {
    grid-column: 1 / -1;
    margin-top: 10px;
    text-align: center;
}

.upseo-search-more button {
    padding: 8px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.upseo-search-more button:hover {
    background-color: #005f8d;
}

/* ریسپانسیو موبایل - یک ستونه کردن نتایج */
@media screen and (max-width: 767px) {
    .upseo-search-results.active {
        grid-template-columns: 1fr !important;
    }
}

/* اصلاح اسلاید */
.slide {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: url('https://pashamokamel.com/wp-content/uploads/2025/07/Optimum-Platinum-Hydro-Whey-scaled.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* تصویر محصول */
.product-images {
    height: 90vh;
    max-width: 90%;
    opacity: 0;
    transform: translateX(100px) scale(1.1);
    filter: brightness(2) blur(6px);
    animation: productEntrance 1.2s ease-out forwards 1.4s;
    z-index: 1;
}

/* فلاش رعد و برق */
.lightning-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    animation: flashSequence 1.4s ease-in-out;
    z-index: 2;
}

/* افکت ورود تصویر */
@keyframes productEntrance {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(1.1);
        filter: brightness(2) blur(6px);
    }
    60% {
        opacity: 1;
        transform: translateX(0) scale(1.05);
        filter: brightness(1.5) blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1) blur(0);
    }
}

/* افکت رعد و برق چندباره */
@keyframes flashSequence {
    0%   { opacity: 0; }
    10%  { opacity: 0.9; }
    12%  { opacity: 0; }
    20%  { opacity: 0.6; }
    22%  { opacity: 0; }
    30%  { opacity: 0.8; }
    32%  { opacity: 0; }
    100% { opacity: 0; }
}

/* موبایل */
@media (max-width: 768px) {
    .slide {
        justify-content: center;
    }

    .product-images {
        height: auto;
        max-width: 80%;
    }
}

/* استایل کانتینر */
.upseo-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.upseo-container h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
}

.upseo-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.upseo-box {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.upseo-box:hover {
    transform: scale(1.05);
}

.upseo-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.upseo-box h3 {
    margin: 15px 0;
    font-size: 1.2em;
    color: #333;
}

.upseo-box a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* استایل هیرو بنر */
.hero-banner {
    background: url('banner.jpg') no-repeat center;
    background-size: cover;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.hero-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    color: #333;
}

.new-products {
    padding: 50px 0;
    text-align: center;
    background-color: #f5f5f5;
}

.new-products h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.product-title {
    font-size: 18px;
    margin: 10px;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;
    flex-grow: 0;
}

.product-title a {
    color: #000;
    text-decoration: none;
}

.product-title a:hover {
    text-decoration: underline;
}

.price {
    color: #333;
    font-size: 16px;
    margin: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-card {
        height: 300px;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 16px;
        max-height: 2.8em;
    }
}

/* استایل برندها */
.upseo-brands-wrapper {
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: bold;
    color: #333;
}

.upseo-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl;
}

.upseo-brand-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 0.3s ease;
    aspect-ratio: 1 / 1;
    width: 140px;
    height: 140px;
}

.upseo-brand-item.active {
    opacity: 1;
    transform: scale(1.05);
}

.upseo-brand-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.upseo-brand-item a {
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .upseo-brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px 10px;
    }

    .upseo-brand-item {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .upseo-brands-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }

    .upseo-brand-item {
        width: 70px;
        height: 70px;
    }

    .upseo-brand-item img {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .upseo-brands-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px 10px;
    }

    .upseo-brand-item {
        width: 60px;
        height: 60px;
    }

    .upseo-brand-item img {
        padding: 5px;
    }
}

/* استایل فوتر */
.upseo-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 0 20px;
    direction: rtl;
}

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

.upseo-footer-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.upseo-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upseo-feature-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.upseo-feature-item span {
    font-size: 1em;
    color: #ddd;
}

.upseo-footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.upseo-footer-column {
    padding: 0 10px;
}

.upseo-footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.upseo-footer-contact p {
    margin: 8px 0;
    font-size: 0.95em;
    color: #bbb;
}

.upseo-footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.upseo-footer-contact a:hover {
    color: #ff9900;
}

.upseo-footer-links h3,
.upseo-footer-enamad h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #fff;
}

.upseo-footer-links ul {
    list-style: none;
    padding: 0;
}

.upseo-footer-links li {
    margin-bottom: 10px;
}

.upseo-footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s;
}

.upseo-footer-links a:hover {
    color: #ff9900;
}

.upseo-footer-enamad {
    text-align: center;
}

.upseo-footer-enamad img {
    max-width: 100px;
    margin-top: 10px;
}

.upseo-footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9em;
    color: #888;
}

@media (max-width: 768px) {
    .upseo-footer-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .upseo-footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .upseo-footer-column {
        text-align: center;
    }

    .upseo-footer-logo {
        margin: 0 auto 20px;
    }

    .upseo-footer-enamad img {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .upseo-footer-features {
        grid-template-columns: 1fr;
    }

    .upseo-feature-item img {
        width: 40px;
        height: 40px;
    }

    .upseo-feature-item span {
        font-size: 0.9em;
    }

    .upseo-footer-enamad img {
        max-width: 70px;
    }
}




.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background-color: #25D366;
  border-radius: 50%;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceIn 1s ease-out;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  animation: pulser 2.5s infinite;
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  bottom: 80px;
  right: -20px;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  white-space: nowrap;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Close button */
.tooltip-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  margin-left: 6px;
}

/* Pulse Animation */
@keyframes pulser {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* BounceIn Animation */
@keyframes bounceIn {
  0% {
    transform: translateY(100px) scale(0.3);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px) scale(1.05);
    opacity: 1;
  }
  80% {
    transform: translateY(5px) scale(0.95);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
