/* Package store page */
@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    src: url("../materialize_fonts/MaterialIcons-Regular.eot");
    src: url("../materialize_fonts/MaterialIcons-Regular.woff") format("woff"),
         url("../materialize_fonts/MaterialIcons-Regular.woff2") format("woff2"),
         url("../materialize_fonts/MaterialIcons-Regular.ttf") format("truetype");
}

.pk-wrap .material-icons {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga";
}

:root {
    --pk-brand: #009ae0;
    --pk-brand-dark: #0077b3;
    --pk-brand-light: #e6f6fd;
    --pk-accent: #7c3aed;
    --pk-gold: #d97706;
    --pk-text: #0f172a;
    --pk-text-muted: #64748b;
    --pk-border: #e2e8f0;
    --pk-bg: #eef4f8;
    --pk-radius: 18px;
    --pk-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 20px rgba(15, 23, 42, 0.05);
    --pk-shadow-hover: 0 12px 36px rgba(15, 23, 42, 0.14);
}

.pk-wrap {
    background: linear-gradient(180deg, #eef4f8 0%, #f8fafc 45%, #fff 100%);
    min-height: 70vh;
    padding: 0.75rem 0 2.5rem;
}

@media (max-width: 991px) {
    .pk-wrap {
        padding-top: 0.35rem;
        padding-bottom: 1.5rem;
    }
}

.pk-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
    direction: rtl;
    text-align: right;
}

/* Breadcrumb */
.pk-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

.pk-breadcrumb a {
    color: var(--pk-brand);
    text-decoration: none;
    transition: color 0.15s;
}

.pk-breadcrumb a:hover {
    color: var(--pk-brand-dark);
}

.pk-breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-right: 0.35rem;
    color: #94a3b8;
}

.pk-breadcrumb li:last-child {
    color: var(--pk-text);
    font-weight: 500;
}

/* Hero */
.pk-hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--pk-radius) + 2px);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #009ae0 0%, #0077b3 55%, #005f91 100%);
    box-shadow: 0 10px 40px rgba(0, 119, 179, 0.28);
}

.pk-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.22) 0%, transparent 38%);
    pointer-events: none;
}

.pk-hero-content {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1.85rem;
    color: #fff;
}

.pk-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pk-hero-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pk-hero-icon .material-icons {
    font-size: 30px;
}

.pk-hero-badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pk-hero-text h1 {
    margin: 0 0 0.45rem;
    font-size: 1.55rem !important;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
}

.pk-hero-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    max-width: 640px;
}

.pk-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pk-stat {
    min-width: 120px;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

.pk-stat strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.pk-stat span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.82);
}

.pk-hero-action {
    margin-top: 0.25rem;
}

.pk-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    background: #fff;
    color: var(--pk-brand-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}

.pk-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    color: var(--pk-brand-dark);
}

.pk-hero-cta .material-icons {
    font-size: 18px;
}

/* Benefits strip */
.pk-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pk-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: 12px;
    box-shadow: var(--pk-shadow);
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.pk-benefit .material-icons {
    font-size: 20px;
    color: var(--pk-brand);
}

/* Panels */
.pk-panel {
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    box-shadow: var(--pk-shadow);
    padding: 1.15rem 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
}

.pk-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.pk-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pk-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pk-section-title .material-icons {
    font-size: 20px;
    color: var(--pk-brand);
}

.pk-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--pk-brand-light);
    color: var(--pk-brand-dark);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Category tabs */
.pk-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.25rem 0.1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--pk-brand) transparent;
}

.pk-tabs::-webkit-scrollbar {
    height: 5px;
}

.pk-tabs::-webkit-scrollbar-thumb {
    background: var(--pk-brand);
    border-radius: 3px;
}

.pk-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--pk-border);
    background: #f8fafc;
    color: var(--pk-text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.pk-tab:hover {
    background: var(--pk-brand-light);
    color: var(--pk-brand-dark);
    border-color: rgba(0, 154, 224, 0.25);
}

.pk-tab.is-active {
    background: linear-gradient(135deg, var(--pk-brand), var(--pk-brand-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 154, 224, 0.32);
}

/* Package grid */
.pk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

/* Cards */
.pk-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    overflow: hidden;
    box-shadow: var(--pk-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.pk-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pk-brand), #38bdf8);
}

.pk-card.pk-accent-1::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.pk-card.pk-accent-2::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

.pk-card.pk-accent-3::before {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.pk-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pk-shadow-hover);
    border-color: rgba(0, 154, 224, 0.28);
}

.pk-card.is-featured {
    border-color: rgba(0, 154, 224, 0.45);
    box-shadow: 0 8px 32px rgba(0, 154, 224, 0.18);
    transform: scale(1.02);
}

.pk-card.is-featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.pk-card-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}

.pk-card-ribbon .material-icons {
    font-size: 14px;
}

.pk-card-header {
    padding: 1.35rem 1.25rem 0.75rem;
    text-align: center;
}

.pk-card-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 0.8rem;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--pk-brand-light), #fff);
    border: 1px solid rgba(0, 154, 224, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pk-card.is-featured .pk-card-icon {
    background: linear-gradient(145deg, #dbeafe, #eff6ff);
    box-shadow: 0 6px 18px rgba(0, 154, 224, 0.15);
}

.pk-card-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.pk-card-icon .material-icons {
    font-size: 34px;
    color: var(--pk-brand);
}

.pk-card-title {
    margin: 0;
    font-size: 1.05rem !important;
    font-weight: 800;
    color: var(--pk-text);
    line-height: 1.55;
}

.pk-card-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--pk-text-muted);
}

.pk-card-price {
    text-align: center;
    padding: 0.35rem 1rem 0.85rem;
    border-bottom: 1px dashed var(--pk-border);
    margin: 0 1rem;
}

.pk-price-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--pk-brand-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pk-price-unit {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--pk-text-muted);
    font-weight: 600;
}

.pk-price-contact {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pk-gold);
}

.pk-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.pk-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pk-feature {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.8rem;
    color: #334155;
}

.pk-feature .material-icons {
    font-size: 18px;
    color: var(--pk-brand);
}

.pk-feature strong {
    color: var(--pk-text);
}

.pk-desc-wrap {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.pk-card-desc {
    font-size: 0.8rem;
    color: var(--pk-text-muted);
    line-height: 1.85;
    max-height: 6.5rem;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.pk-card-desc.is-expanded {
    max-height: 2000px;
}

.pk-card-desc ul,
.pk-card-desc ol {
    margin: 0.35rem 0;
    padding-right: 1.1rem;
}

.pk-card-desc li {
    margin-bottom: 0.25rem;
}

.pk-desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.55rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--pk-brand);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
}

.pk-desc-toggle:hover {
    color: var(--pk-brand-dark);
}

.pk-desc-toggle .material-icons {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.pk-desc-toggle[aria-expanded="true"] .pk-desc-toggle-icon {
    transform: rotate(180deg);
}

.pk-card-footer {
    padding: 0 1.25rem 1.25rem;
    margin-top: auto;
}

.pk-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 2px solid var(--pk-brand);
    color: var(--pk-brand-dark) !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.pk-buy-btn:hover {
    background: var(--pk-brand-light);
    color: var(--pk-brand-dark) !important;
    transform: translateY(-1px);
}

.pk-buy-btn.is-primary,
.pk-card.is-featured .pk-buy-btn {
    background: linear-gradient(135deg, var(--pk-brand), var(--pk-brand-dark));
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 154, 224, 0.35);
}

.pk-buy-btn.is-primary:hover,
.pk-card.is-featured .pk-buy-btn:hover {
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0, 154, 224, 0.42);
}

.pk-buy-btn .material-icons {
    font-size: 18px;
}

/* Empty state */
.pk-empty {
    grid-column: 1 / -1;
    padding: 3.5rem 2rem;
    text-align: center;
}

.pk-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--pk-brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-brand);
}

.pk-empty-icon .material-icons {
    font-size: 40px;
}

.pk-empty h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem !important;
    font-weight: 700;
    color: var(--pk-text);
}

.pk-empty p {
    margin: 0 auto;
    max-width: 420px;
    font-size: 0.9rem;
    color: var(--pk-text-muted);
    line-height: 1.75;
}

/* Responsive */
@media (max-width: 992px) {
    .pk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pk-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .pk-card.is-featured {
        transform: none;
    }

    .pk-card.is-featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    .pk-wrap {
        padding-top: 0.75rem;
    }

    .pk-hero-content {
        padding: 1.25rem;
    }

    .pk-hero-main {
        flex-direction: column;
    }

    .pk-hero-text h1 {
        font-size: 1.3rem !important;
    }

    .pk-hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pk-hero-cta {
        width: 100%;
        justify-content: center;
    }

    .pk-benefits {
        grid-template-columns: 1fr;
    }

    .pk-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pk-panel {
        padding: 1rem;
    }
}
