html {
    direction: rtl;
}

body {
    margin: 0;
    font-family: var(--pw-font);
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

.pw-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.pw-header {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 70px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

.pw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.pw-main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.pw-menu-toggle {
    display: none;
}

.pw-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1000;
}

.pw-mobile-nav {
    position: fixed;
    right: 0;
    top: 0;
    width: min(80vw, 320px);
    height: 100%;
    background: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow: auto;
    padding: 20px;
}

.pw-mobile-nav.is-open {
    transform: translateX(0);
}

.pw-mobile-close {
    border: 0;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.pw-mobile-nav ul {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.pw-mobile-nav li {
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

.pw-mobile-nav .sub-menu {
    display: none;
    margin-top: 8px;
    padding-right: 12px;
}

.pw-mobile-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.pw-breadcrumb {
    margin: 14px auto;
    width: min(1200px, 92%);
    color: #475569;
    background: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pw-section {
    padding: 40px 0;
}

.pw-section-title {
    margin: 0 0 20px;
    font-size: 28px;
}

.pw-btn {
    display: inline-block;
    background: var(--pw-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background-color 0.25s ease;
}

.pw-btn:hover {
    background: #1e40af;
}

.pw-hero-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.pw-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.pw-slide.is-active {
    opacity: 1;
}

.pw-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pw-slide-cta {
    position: absolute;
    bottom: 36px;
    right: 36px;
}

.pw-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
}

.pw-slider-prev {
    right: 16px;
}

.pw-slider-next {
    left: 16px;
}

.pw-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pw-slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.pw-slider-dots button.is-active {
    background: #fff;
}

.pw-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pw-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pw-post-card,
.pw-product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.pw-post-thumb img,
.pw-product-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.pw-post-card-link,
.pw-product-card a {
    display: block;
    padding: 14px;
}

.pw-post-date {
    color: #64748b;
    font-size: 13px;
}

.pw-content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.pw-sidebar .widget {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.pw-footer {
    margin-top: 50px;
    background: #0f172a;
    color: #fff;
    padding: 35px 0;
}

.pw-social-icons {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
}

.pw-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pw-back-to-top {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: var(--pw-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.35);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.pw-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

[data-animate] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .pw-main-nav {
        display: none;
    }

    .pw-menu-toggle {
        display: inline-flex;
        border: 0;
        background: #eef2ff;
        color: #1e3a8a;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .pw-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-content-with-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pw-hero-slider {
        height: 380px;
    }

    .pw-post-grid,
    .pw-product-grid {
        grid-template-columns: 1fr;
    }
}

