/* استایل فوتر و صفحه‌بندی سایت (در هدر لود می‌شود چون اسکریپت تبدیل اعداد به فارسی، استایل‌های داخل body را خراب می‌کند) */

/* ===== Footer ===== */
.agk-ft { background: linear-gradient(135deg, #0f1b3d 0%, #1a2f5c 100%); color: #fff; direction: rtl; text-align: right; position: relative; overflow: hidden; margin-top: 50px; border-radius: 36px 36px 0 0; }
.agk-ft::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.04); top: -150px; left: -100px; pointer-events: none; }
.agk-ft .agk-ft-inner { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 50px 15px 10px; display: flex; flex-wrap: wrap; gap: 30px 24px; }
.agk-ft .agk-ft-col { flex: 1 1 200px; min-width: 0; }
.agk-ft .agk-ft-col.agk-ft-about { flex: 1.6 1 280px; }
.agk-ft .agk-ft-brand { display: inline-block; font-size: 26px; font-weight: 800; color: #fff !important; direction: ltr; margin-bottom: 12px; line-height: 1.4; }
.agk-ft .agk-ft-brand span { color: #ff6b7a; }
.agk-ft p.agk-ft-text { color: rgba(255,255,255,.78) !important; font-size: 14px; line-height: 2; margin: 0 0 18px; }
.agk-ft .agk-ft-title { display: flex; align-items: center; gap: 8px; color: #fff !important; font-size: 16px; font-weight: 700 !important; margin: 4px 0 18px; line-height: 1.5; }
.agk-ft .agk-ft-title::before { content: ""; width: 5px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #dc3545, #ff6b7a); flex-shrink: 0; }
.agk-ft ul.agk-ft-list { list-style: none; margin: 0; padding: 0; }
.agk-ft ul.agk-ft-list li { margin: 0 0 12px; padding: 0; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.9; }
.agk-ft ul.agk-ft-list a { color: rgba(255,255,255,.82) !important; display: inline-flex; align-items: center; gap: 8px; }
.agk-ft ul.agk-ft-list a:hover { color: #fff !important; }
.agk-ft ul.agk-ft-list a i.agk-ft-arrow { font-size: 10px; color: #ff6b7a; }
.agk-ft .agk-ft-contact li { display: flex; align-items: flex-start; gap: 10px; }
.agk-ft .agk-ft-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); color: #ff6b7a; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.agk-ft .agk-ft-contact li > span:last-child, .agk-ft .agk-ft-contact li > a { padding-top: 3px; }
.agk-ft .agk-ft-social { display: flex; gap: 10px; flex-wrap: wrap; }
.agk-ft .agk-ft-social a { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; color: #fff !important; font-size: 20px; transition: all .25s ease; }
.agk-ft .agk-ft-social a:hover { transform: translateY(-3px); }
.agk-ft .agk-ft-social a.agk-tg:hover { background: #229ed9; border-color: #229ed9; }
.agk-ft .agk-ft-social a.agk-ig:hover { background: linear-gradient(45deg, #833AB4, #C13584, #E1306C, #FD1D1D); border-color: transparent; }
.agk-ft .agk-ft-social a.agk-ap { background: #fff; }
.agk-ft .agk-ft-enamad { display: inline-block; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.agk-ft .agk-ft-enamad img { width: 96px; height: auto; display: block; }
.agk-ft .agk-ft-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.1); margin-top: 20px; padding: 16px 15px; text-align: center; font-size: 13px; color: rgba(255,255,255,.65); }
.agk-ft .agk-ft-bottom a { color: #fff !important; font-weight: 700; }
@media (max-width: 767px) {
    .agk-ft { border-radius: 26px 26px 0 0; }
    .agk-ft .agk-ft-inner { padding-top: 36px; gap: 26px 16px; }
    .agk-ft .agk-ft-col { flex: 1 1 140px; }
    .agk-ft .agk-ft-col.agk-ft-about, .agk-ft .agk-ft-col.agk-ft-contact-col { flex: 1 1 100%; }
    .agk-ft .agk-ft-license-col { order: 3; }
    .agk-ft .agk-ft-contact-col { order: 4; }
}

/* ===== Pagination ===== */
.agk-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; }
.agk-pagination li { margin: 0 !important; display: block; }
.agk-pagination li a {
    min-width: 44px; height: 44px; padding: 0 12px;
    display: flex !important; align-items: center; justify-content: center;
    border-radius: 14px !important; background: #fff !important;
    border: 1px solid #e3e6ef !important; color: #0f1b3d !important;
    font-weight: 600; font-size: .95rem; line-height: 1 !important;
    box-shadow: 0 4px 12px rgba(15,27,61,.06); transition: all .25s ease;
    text-decoration: none !important;
}
.agk-pagination li a[href]:hover { border-color: #1a2f5c !important; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,27,61,.12); }
.agk-pagination li a.active {
    background: linear-gradient(135deg, #0f1b3d, #1a2f5c) !important; color: #fff !important;
    border-color: transparent !important; box-shadow: 0 8px 18px rgba(15,27,61,.28);
}
.agk-pagination li a.agk-arrow { color: #dc3545 !important; }
.agk-pagination li.disabled a { opacity: .45; cursor: not-allowed; box-shadow: none; }
.agk-pagination li.dots a { background: transparent !important; border-color: transparent !important; box-shadow: none; }
@media (max-width: 575px) {
    .agk-pagination { gap: 6px; }
    .agk-pagination li a { min-width: 38px; height: 38px; border-radius: 12px !important; font-size: .88rem; }
}

/* ===== صفحه اصلی: اخبار و مقالات / جدیدترین محصولات ===== */
.agk-hsec { max-width: 1240px; margin: 30px auto; padding: 0 15px; text-align: right; }
.agk-hsec-box { background: #fff; border-radius: 26px; padding: 26px; box-shadow: 0 15px 35px rgba(15,27,61,.08); border: 1px solid #eef0f5; }
.agk-hsec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.agk-hsec-title { display: flex; align-items: center; gap: 14px; }
.agk-hsec-icon { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #0f1b3d 0%, #1a2f5c 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; box-shadow: 0 8px 18px rgba(15,27,61,.25); }
.agk-hsec-title h3 { margin: 0 0 2px; font-size: 20px; font-weight: 800 !important; color: #0f1b3d; line-height: 1.6; }
.agk-hsec-title p { margin: 0 !important; font-size: 13px; color: #888 !important; line-height: 1.8; }
.agk-hsec-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.agk-hsec-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #f3f5fa; border-radius: 50px; padding: 5px; }
.agk-hsec-tab { border: none; background: transparent; padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: 14px; color: #0f1b3d !important; cursor: pointer; transition: all .25s ease; line-height: 1.6; font-family: inherit; }
.agk-hsec-tab:hover { background: #fff; }
.agk-hsec-tab.active { background: linear-gradient(135deg, #0f1b3d, #1a2f5c); color: #fff !important; box-shadow: 0 6px 14px rgba(15,27,61,.25); }
.agk-hsec-all { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 50px; background: linear-gradient(135deg, #dc3545, #a71d2a); color: #fff !important; font-weight: 600; font-size: 14px; transition: all .3s ease; }
.agk-hsec-all:hover { filter: brightness(1.08); transform: translateY(-2px); }
.agk-hsec-empty { padding: 30px; color: #999; text-align: center; width: 100%; }

.agk-hscroll-wrap { position: relative; }
.agk-hscroll { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 14px; scrollbar-width: thin; scrollbar-color: #d0d5e2 transparent; }
.agk-hscroll::-webkit-scrollbar { height: 6px; }
.agk-hscroll::-webkit-scrollbar-thumb { background: #d0d5e2; border-radius: 10px; }
.agk-hscroll-item { flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; display: flex; }
.agk-hscroll-btn { position: absolute; top: 40%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e3e6ef; background: #fff; color: #0f1b3d; box-shadow: 0 8px 20px rgba(15,27,61,.15); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s ease; }
.agk-hscroll-btn:hover { background: #0f1b3d; color: #fff; }
.agk-hscroll-btn.agk-prev { right: -14px; }
.agk-hscroll-btn.agk-next { left: -14px; }

.agk-hnews { display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #eef0f5; box-shadow: 0 8px 22px rgba(15,27,61,.06); transition: all .3s ease; color: inherit !important; }
.agk-hnews:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(15,27,61,.13); }
.agk-hnews-img { position: relative; padding-top: 62%; background: #eef0f5; overflow: hidden; }
.agk-hnews-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.agk-hnews:hover .agk-hnews-img img { transform: scale(1.06); }
.agk-hnews-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.agk-hnews-body h5 { font-size: 15px; font-weight: 700 !important; color: #0f1b3d; line-height: 1.9; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 57px; }
.agk-hnews-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; }
.agk-hnews-meta i { color: #dc3545; }
.agk-hnews-more { color: #dc3545; font-weight: 600; }

.agk-hprod { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #eef0f5; box-shadow: 0 8px 22px rgba(15,27,61,.06); transition: all .3s ease; }
.agk-hprod:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(15,27,61,.13); }
.agk-hprod-img { position: relative; display: block; padding-top: 100%; background: #f8f9fc; overflow: hidden; }
.agk-hprod-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .5s ease; }
.agk-hprod:hover .agk-hprod-img img { transform: scale(1.05); }
.agk-hprod-badge { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, #dc3545, #ff6b7a); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 50px; }
.agk-hprod-actions { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(-8px); transition: all .3s ease; z-index: 2; }
.agk-hprod:hover .agk-hprod-actions { opacity: 1; transform: none; }
.agk-hprod-actions a { width: 36px; height: 36px; border-radius: 12px; background: #fff; color: #0f1b3d !important; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(15,27,61,.15); font-size: 14px; }
.agk-hprod-actions a:hover { background: #0f1b3d; color: #fff !important; }
.agk-hprod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.agk-hprod-cat { font-size: 12px; color: #999; margin-bottom: 6px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agk-hprod-body h5 { font-size: 15px; font-weight: 700 !important; line-height: 1.9; margin: 0 0 12px; min-height: 57px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agk-hprod-body h5 a { color: #0f1b3d !important; }
.agk-hprod-body h5 a:hover { color: #dc3545 !important; }
.agk-hprod-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.agk-hprod-price del { display: block; font-size: 12px; color: #aaa; }
.agk-hprod-price b { color: #dc3545; font-size: 16px; font-weight: 800; }
.agk-hprod-price small { font-size: 12px; color: #777; font-weight: 500; }
.agk-hprod-out { display: inline-block; background: #f3f5fa; color: #888; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 50px; }
.agk-hprod-go { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(135deg, #0f1b3d, #1a2f5c); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; transition: all .25s ease; }
.agk-hprod-go:hover { background: linear-gradient(135deg, #dc3545, #a71d2a); }

@media (max-width: 1199px) { .agk-hscroll-item { flex-basis: calc((100% - 36px) / 3); } }
@media (max-width: 767px) {
    .agk-hsec { margin: 20px auto; padding: 0 10px; }
    .agk-hsec-box { padding: 18px 14px; border-radius: 20px; }
    .agk-hsec-title h3 { font-size: 17px; }
    .agk-hsec-icon { width: 44px; height: 44px; font-size: 17px; border-radius: 14px; }
    .agk-hsec-tools { width: 100%; justify-content: space-between; }
    .agk-hscroll { gap: 12px; }
    .agk-hscroll-item { flex-basis: 72%; }
    .agk-hscroll-btn { display: none; }
    .agk-hprod-actions { opacity: 1; transform: none; }
}

/* ===== نسخه ظریف‌تر بخش‌های صفحه اصلی (هم‌عرض بنر بالای صفحه) ===== */
.agk-hsec { width: 100%; max-width: none; margin: 22px auto; padding: 0 19px; }
@media (min-width: 768px) { .agk-hsec { width: 83.333333%; } }
.agk-hsec-box { padding: 18px 20px; border-radius: 20px; box-shadow: 0 8px 24px rgba(15,27,61,.06); }
.agk-hsec-head { margin-bottom: 14px; gap: 12px; }
.agk-hsec-title { gap: 10px; }
.agk-hsec-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; box-shadow: 0 5px 12px rgba(15,27,61,.2); }
.agk-hsec-title h3 { font-size: 16px; margin: 0; }
.agk-hsec-title p { font-size: 12px; line-height: 1.6; }
.agk-hsec-tabs { padding: 3px; }
.agk-hsec-tab { padding: 5px 14px; font-size: 13px; }
.agk-hsec-all { padding: 6px 15px; font-size: 13px; }
.agk-hscroll { gap: 14px; padding: 4px 2px 10px; }
.agk-hscroll-item { flex-basis: calc((100% - 56px) / 5); }
.agk-hscroll-btn { width: 34px; height: 34px; font-size: 12px; }
.agk-hscroll-btn.agk-prev { right: -10px; }
.agk-hscroll-btn.agk-next { left: -10px; }
.agk-hnews, .agk-hprod { border-radius: 14px; box-shadow: 0 4px 14px rgba(15,27,61,.05); }
.agk-hnews:hover, .agk-hprod:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15,27,61,.1); }
.agk-hnews-img { padding-top: 58%; }
.agk-hnews-body, .agk-hprod-body { padding: 10px 12px 12px; }
.agk-hnews-body h5, .agk-hprod-body h5 { font-size: 13px; line-height: 1.8; min-height: 47px; margin-bottom: 8px; }
.agk-hnews-meta { font-size: 11px; }
.agk-hprod-img { padding-top: 88%; }
.agk-hprod-img img { padding: 8px; }
.agk-hprod-badge { top: 8px; right: 8px; font-size: 11px; padding: 2px 10px; }
.agk-hprod-actions { top: 8px; left: 8px; gap: 6px; }
.agk-hprod-actions a { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.agk-hprod-cat { font-size: 11px; margin-bottom: 4px; }
.agk-hprod-price del { font-size: 11px; }
.agk-hprod-price b { font-size: 14px; }
.agk-hprod-price small { font-size: 11px; }
.agk-hprod-out { font-size: 12px; padding: 3px 10px; }
.agk-hprod-go { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
@media (max-width: 1199px) { .agk-hscroll-item { flex-basis: calc((100% - 42px) / 4); } }
@media (max-width: 991px) { .agk-hscroll-item { flex-basis: calc((100% - 28px) / 3); } }
@media (max-width: 767px) {
    .agk-hsec { padding: 0 12px; margin: 16px auto; }
    .agk-hsec-box { padding: 14px 12px; border-radius: 16px; }
    .agk-hscroll { gap: 10px; }
    .agk-hscroll-item { flex-basis: 46%; }
}
