/* ===== POS PAGE (pos.html) — builds on custom.css and styles.css ===== */

.pos-page section.pos-section {
    padding: 64px 0;
    border-top: 1px solid var(--line);
}
.pos-page .section-title {
    font-family: var(--serif);
    margin-bottom: 28px;
}
body.rtl.pos-page .section-title {
    font-family: var(--serif-ar);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}
.pos-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.pos-page code {
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 0.9em;
    padding: 1px 6px;
    border-radius: var(--radius);
    background: var(--bg-light);
    border: 1px solid var(--line);
    /* Keep URLs and paths in one left-to-right piece inside Arabic text */
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}
.pos-lead {
    font-size: 1.08rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 32px;
}

/* Free-offer banner in the intro */
.pos-offer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--teal-pale);
    border: 1px solid var(--teal-light);
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}
.pos-offer:hover { border-color: var(--teal); background: var(--teal-light); }
.pos-offer > .fa-gift { color: var(--teal-dark); font-size: 1.1rem; }
.pos-offer b { color: var(--text); font-weight: 600; }
.pos-offer-arrow { color: var(--teal-dark); font-size: 0.85rem; }
body.rtl .pos-offer-arrow { transform: scaleX(-1); }

/* Link to the blog guide, one <a> per language */
.pos-guide[data-lang].active {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition);
}
.pos-guide:hover { border-color: var(--teal); background: var(--teal-pale); }
.pos-guide-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal-light);
    color: var(--teal-dark);
}
:root[data-theme="dark"] .pos-guide-icon { color: var(--teal); }
.pos-guide-text { flex: 1; display: grid; gap: 2px; }
.pos-guide-text small {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-dark);
}
.pos-guide-text strong { color: var(--text); font-weight: 600; font-size: 1.02rem; }
.pos-guide-text span { font-size: 0.9rem; }
.pos-guide-arrow { color: var(--teal-dark); transition: transform var(--transition); }
.pos-guide:hover .pos-guide-arrow { transform: translateX(4px); }
body.rtl .pos-guide-arrow { transform: scaleX(-1); }
body.rtl .pos-guide:hover .pos-guide-arrow { transform: scaleX(-1) translateX(4px); }

/* Screenshots: same layout as the home-page POS teaser — text and screen
   list on one side, the four shots stacked on a teal panel on the other */
.pos-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
}
.pos-gallery .section-title { margin-bottom: 18px; }
.pos-gallery-tabs {
    list-style: none;
    display: grid;
    gap: 8px;
    max-width: 520px;
    margin-bottom: 30px;
}
.pos-gallery-tabs button {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-secondary);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.pos-gallery-tabs button:hover { border-color: var(--teal-light); }
.pos-gallery-tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pos-gallery-tabs button > i {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--teal-pale);
    color: var(--teal-dark);
    font-size: 0.85rem;
}
.pos-gallery-tabs b { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.pos-gallery-tabs small { display: block; font-size: 0.85rem; line-height: 1.45; }
.pos-gallery-tabs [aria-selected="true"] {
    border-color: var(--teal);
    background: var(--teal-pale);
}
.pos-gallery-tabs [aria-selected="true"] > i { background: var(--teal); color: #fff; }
.pos-gallery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.pos-gallery-actions .btn-primary { white-space: nowrap; }

.pos-gallery-visual {
    display: grid;
    padding: 64px 28px 36px;
    border-radius: 14px;
    background: var(--teal-pale);
}
/* All shots share one grid cell; the class decides who sits in front */
.pos-shot {
    grid-area: 1 / 1;
    margin: 0;
    transition: transform 0.5s ease, opacity 0.4s ease;
}
.pos-shot-frame {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.5);
}
.pos-shot-frame img { display: block; width: 100%; height: auto; }
.pos-shot.is-front { z-index: 3; transform: rotate(-1.5deg); }
.pos-gallery-visual:hover .pos-shot.is-front { transform: rotate(0deg) translateY(-6px); }
.pos-shot.is-back-1 { z-index: 2; transform: translate(5%, -11%) rotate(4deg) scale(0.9); }
.pos-shot.is-back-2 { z-index: 1; transform: translate(-5%, -15%) rotate(-5deg) scale(0.84); }
.pos-shot.is-back-3, .pos-shot.is-back-4, .pos-shot.is-back-5 { z-index: 0; transform: translate(0, -18%) scale(0.78); opacity: 0; pointer-events: none; }
.pos-gallery-visual:hover .pos-shot.is-back-1 { transform: translate(7%, -13%) rotate(6deg) scale(0.9); }
.pos-shot:not(.is-front) .pos-shot-frame { cursor: pointer; }
.pos-shot:not(.is-front) .pos-shot-zoom { display: none; }
body.rtl .pos-shot.is-back-1 { transform: translate(-5%, -11%) rotate(-4deg) scale(0.9); }
body.rtl .pos-shot.is-back-2 { transform: translate(5%, -15%) rotate(5deg) scale(0.84); }
body.rtl .pos-gallery-visual:hover .pos-shot.is-back-1 { transform: translate(-7%, -13%) rotate(-6deg) scale(0.9); }
.pos-shot-zoom {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.pos-shot-frame:hover .pos-shot-zoom, .pos-shot-frame:focus-visible .pos-shot-zoom { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .pos-shot { transition: none; }
}

.pos-more-link { color: var(--teal-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pos-more-link:hover { text-decoration: underline; }
body.rtl .pos-more-link .fa-arrow-right { transform: scaleX(-1); }

/* Pricing */
.pos-pricing {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    max-width: 860px;
}
.pos-price {
    height: 100%;
    padding: 28px 28px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.pos-price-free { background: var(--teal-pale); border-color: var(--teal-light); }
.pos-price-when {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
body.rtl .pos-price-when { letter-spacing: 0; font-size: 0.9rem; }
.pos-price strong {
    display: block;
    margin: 6px 0 10px;
    color: var(--text);
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}
body.rtl .pos-price strong { font-family: var(--serif-ar); font-weight: 600; }
.pos-price-free strong { color: var(--teal-dark); }
.pos-price strong small { font-family: var(--sans); font-size: 1rem; color: var(--text-muted); }
body.rtl .pos-price strong small { font-family: var(--sans-ar); }
.pos-price-arrow { color: var(--teal); font-size: 1.2rem; }
body.rtl .pos-price-arrow { transform: scaleX(-1); }

/* Features: compact cards — icon, title and "+" on one row, summary below */
.pos-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.pos-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-content: start;
    align-items: center;
    column-gap: 12px;
    padding: 16px 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}
.pos-card > i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 0.9rem;
}
.pos-page .pos-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.3;
}
.pos-card-sum,
.pos-card-detail { grid-column: 1 / -1; }
.pos-card-sum { margin: 10px 0 0; }
.pos-card-detail {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}
.pos-card-toggle {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--teal-light);
    border-radius: 50%;
    background: var(--teal-pale);
    color: var(--teal-dark);
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.pos-card-toggle:hover { background: var(--teal-light); border-color: var(--teal); }
.pos-card-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pos-card-toggle i { transition: transform 0.25s; }
.pos-card-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.pos-modules {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 20px 24px;
    border-radius: 14px;
    background: var(--teal-pale);
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.pos-modules > i {
    margin-top: 4px;
    color: var(--teal-dark);
}
.pos-modules b {
    color: var(--text);
    font-weight: 600;
}
.pos-card b {
    color: var(--text);
    font-weight: 600;
}

/* Requirements */
.pos-needs {
    padding: 24px 26px;
    margin-bottom: 36px;
    border-radius: 14px;
    background: var(--teal-pale);
    border: 1px solid var(--teal-light);
}
.pos-needs ul,
.pos-faq {
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--text-secondary);
}
.pos-needs li,
.pos-faq li {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.pos-needs li i,
.pos-faq li i {
    flex: none;
    width: 18px;
    text-align: center;
    color: var(--teal-dark);
}

/* Installation steps */
.pos-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 28px;
    max-width: 820px;
}
.pos-steps > li {
    counter-increment: step;
    position: relative;
    padding-inline-start: 56px;
    color: var(--text-secondary);
    min-width: 0;
}
.pos-steps > li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: -4px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
}
.pos-steps h3 {
    color: var(--text);
}
.pos-steps a,
.pos-needs a,
.pos-card-detail a {
    color: var(--teal-dark);
}
.pos-steps a.btn-primary,
.pos-steps a.btn-primary:hover {
    color: #fff;
}
.pos-steps .btn-primary {
    margin-top: 12px;
    max-width: 100%;
    white-space: normal; /* the site's buttons never wrap; this label is too long for a phone */
    text-align: center;
}
.pos-code {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--navy);
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    text-align: left;
}
.pos-code code {
    padding: 0;
    border: 0;
    background: none;
    font-size: inherit;
    white-space: pre;
}
.pos-code .c {
    color: #94a3b8;
}
.pos-note {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.pos-note i {
    color: var(--teal-dark);
}

/* Daily use */
.pos-setup {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 20px 24px;
    margin-bottom: 32px;
    border-inline-start: 3px solid var(--teal);
    background: var(--bg-light);
    color: var(--text-secondary);
}
.pos-setup i {
    color: var(--teal-dark);
}
.pos-setup strong {
    color: var(--text);
}
.pos-day {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}
.pos-day li {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.pos-day li i {
    display: block;
    font-size: 1.3rem;
    color: var(--teal);
    margin-bottom: 14px;
}
.pos-day h3 {
    color: var(--text);
}

/* Roles table */
.pos-table-wrap {
    overflow-x: auto;
    max-width: 820px;
}
.pos-roles {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.pos-roles th,
.pos-roles td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.pos-roles th:first-child,
.pos-roles td:first-child {
    text-align: start;
    color: var(--text-secondary);
}
.pos-roles th {
    font-weight: 600;
}
.pos-roles .fa-check {
    color: var(--teal-dark);
}
.pos-roles .fa-minus {
    color: var(--line);
}
.pos-roles-note {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .pos-day {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 960px) {
    .pos-gallery { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
    .pos-pricing { grid-template-columns: 1fr; }
    .pos-price-arrow { transform: rotate(90deg); justify-self: center; }
    body.rtl .pos-price-arrow { transform: rotate(90deg); }
    .pos-offer { border-radius: 14px; }
    .pos-day {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .pos-page section.pos-section {
        padding: 48px 0;
    }
    .pos-gallery-visual { padding: 48px 16px 24px; }
    .pos-guide[data-lang].active { gap: 14px; padding: 16px 18px; }
    .pos-guide-icon { width: 38px; height: 38px; }
    .pos-day {
        grid-template-columns: 1fr;
    }
    .pos-steps > li {
        padding-inline-start: 48px;
    }
}
