/*
 * Site header and footer, matching the home page style (landing.css).
 * Brand: logo brown #8f4b42, dark brown #6e3832, topbar #363636, footer #14191e.
 */

:root {
    --pp-red: #8f4b42;
    --pp-red-dark: #6e3832;
    --pp-red-soft: #f7eeec;
    --pp-danger: #c62828;
    --pp-danger-soft: #fdecec;
    --pp-ink: #1d1d1f;
    --pp-muted: #6b6b6b;
    --pp-line: #ececec;
    --pp-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Top bar ---------- */
.pp-topbar {
    background: #363636;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.pp-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}

.pp-topbar__contact,
.pp-topbar__social {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-topbar__contact {
    gap: 22px;
}

.pp-topbar__contact li {
    display: flex;
    align-items: center;
}

.pp-topbar__contact a,
.pp-topbar__contact span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.85);
}

.pp-topbar__contact a:hover {
    color: #fff;
}

.pp-topbar__social {
    gap: 4px;
}

.pp-topbar__social a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.pp-topbar__social a:hover {
    background: var(--pp-red);
    color: #fff;
}

/* ---------- Main header ---------- */
.pp-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--pp-line);
    box-shadow: 0 2px 12px rgba(20, 20, 20, 0.05);
}

.pp-header > .container {
    position: relative;
}

.pp-nav {
    flex-wrap: wrap;
    min-height: 76px;
    padding: 8px 0;
}

.pp-brand {
    order: 1;
    margin-right: 24px;
    padding: 0;
}

.pp-brand img {
    display: block;
    width: auto;
    height: 58px;
}

.pp-nav .navbar-collapse {
    order: 2;
}

.pp-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Nav links */
.pp-nav .navbar-nav {
    gap: 4px;
}

.pp-nav .nav-link {
    position: relative;
    padding: 10px 12px !important;
    border-radius: 8px;
    color: var(--pp-ink);
    font-size: 15px;
    font-weight: 600;
}

.pp-nav .nav-link:hover,
.pp-nav .nav-link:focus-visible,
.pp-nav .nav-link.show {
    color: var(--pp-red);
}

.pp-nav .nav-link.active {
    color: var(--pp-red);
}

.pp-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--pp-red);
}

/* Chevron instead of Bootstrap's triangle; turns when the menu is open */
.pp-nav .dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    vertical-align: 3px;
    transform: rotate(45deg);
    transition: transform 200ms var(--pp-ease);
}

.pp-nav .dropdown-toggle.show::after {
    transform: translateY(3px) rotate(-135deg);
}

.pp-nav .nav-link.active.dropdown-toggle::after {
    position: static;
    width: 7px;
    height: 7px;
    background: none;
}

/* Dropdown menus */
.pp-header .dropdown-menu {
    min-width: 220px;
    margin-top: 8px !important;
    padding: 8px;
    border: 1px solid var(--pp-line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
}

.pp-header .dropdown-menu li {
    border: 0;
    margin: 0;
}

.pp-header .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--pp-ink);
    font-size: 14.5px;
    font-weight: 500;
}

.pp-header .dropdown-item:hover,
.pp-header .dropdown-item:focus {
    background: var(--pp-red-soft);
    color: var(--pp-red);
}

.pp-header .dropdown-item.active,
.pp-header .dropdown-item:active {
    background: var(--pp-red);
    color: #fff;
}

/* Main navigation menus: icon + title + short note */
.pp-header .pp-dd__menu {
    width: 320px;
    margin-top: 14px !important;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(28, 21, 19, 0.16);
}

.pp-header .pp-dd__menu--wide {
    display: none;
    width: 560px;
}

.pp-header .pp-dd__menu--wide.show {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 6px;
}

/* Small pointer joining the menu to its link */
.pp-header .pp-dd__menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 28px;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--pp-line);
    border-left: 1px solid var(--pp-line);
    background: #fff;
    transform: rotate(45deg);
}

/* Invisible bridge over the gap so the hover menu stays open on the way down */
.pp-header .pp-dd__menu::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 16px;
}

.pp-header .pp-dd__menu.show {
    animation: pp-dd-in 180ms var(--pp-ease);
}

@keyframes pp-dd-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

.pp-header .pp-dd__item {
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    white-space: normal;
}

.pp-dd__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--pp-red-soft);
    color: var(--pp-red);
    font-size: 18px;
    transition: background-color 200ms var(--pp-ease), color 200ms var(--pp-ease);
}

.pp-dd__text {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding-top: 1px;
}

.pp-dd__text strong {
    color: var(--pp-ink);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.pp-dd__text small {
    color: var(--pp-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.pp-header .pp-dd__item:hover,
.pp-header .pp-dd__item:focus-visible {
    background: #faf6f5;
}

.pp-header .pp-dd__item:hover .pp-dd__icon,
.pp-header .pp-dd__item:focus-visible .pp-dd__icon {
    background: var(--pp-red);
    color: #fff;
}

.pp-header .pp-dd__item:hover strong {
    color: var(--pp-red);
}

/* Current page: soft highlight instead of a solid block */
.pp-header .pp-dd__item.active,
.pp-header .pp-dd__item:active {
    background: var(--pp-red-soft);
    color: var(--pp-ink);
}

.pp-header .pp-dd__item.active .pp-dd__icon {
    background: var(--pp-red);
    color: #fff;
}

.pp-header .pp-dd__item.active strong {
    color: var(--pp-red);
}

/* Header actions: search, cart, account, menu (custom SVG icons) */
.pp-icon {
    display: block;
    flex: none;
}

.pp-icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f4f4f5;
    color: var(--pp-ink);
    line-height: 1;
    transition: background-color 180ms var(--pp-ease), color 180ms var(--pp-ease);
}

.pp-icon-btn:hover,
.pp-icon-btn[aria-expanded="true"] {
    background: var(--pp-red-soft);
    color: var(--pp-red);
}

.pp-icon-btn:active {
    transform: translateY(1px);
}

.pp-icon-btn--solid {
    background: var(--pp-red);
    color: #fff;
}

.pp-icon-btn--solid:hover,
.pp-icon-btn--solid.show,
.pp-icon-btn--solid[aria-expanded="true"] {
    background: var(--pp-red-dark);
    color: #fff;
}

.pp-icon-btn.dropdown-toggle::after {
    display: none;
}

.pp-cart__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: var(--pp-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.pp-signin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    margin-left: 4px;
    padding: 0 18px 0 14px;
    border-radius: var(--pp-btn-radius, 8px);
    background: var(--pp-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 180ms var(--pp-ease);
}

.pp-signin:hover {
    background: var(--pp-red-dark);
    color: #fff;
}

/* Account menu */
.pp-user-menu {
    min-width: 250px !important;
}

.pp-user-menu__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px !important;
    padding: 8px 12px 12px;
    border-bottom: 1px solid var(--pp-line) !important;
}

.pp-user-menu__info strong {
    color: var(--pp-ink);
    font-size: 15px;
}

.pp-user-menu__info span {
    color: var(--pp-muted);
    font-size: 13px;
}

/* ---------- Header search panel ---------- */
.pp-header .search-holder.pp-search {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: auto;
    width: 560px;
    max-width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(20, 20, 20, 0.14);
    z-index: 1031;
}

.pp-search .custom-flex {
    position: relative;
}

.pp-search .custom-flex .input-search-field input {
    height: 46px;
    border: 1px solid #d6d6d6;
    border-radius: 10px 0 0 10px;
    padding-left: 18px;
}

.pp-search .custom-flex .search-categories select.form-select {
    height: 46px;
    border-top: 1px solid #d6d6d6;
    border-bottom: 1px solid #d6d6d6;
}

.pp-search .search-btn button {
    height: 46px;
    width: 54px;
    border: 1px solid var(--pp-red);
    border-radius: 0 10px 10px 0;
    background: var(--pp-red);
    color: #fff;
}

.pp-search .search-btn button:hover {
    background: var(--pp-red-dark);
    border-color: var(--pp-red-dark);
}

/* Focus the joined control as one unit instead of ringing each field on its own,
   which drew an offset outline that overlapped the category select */
.pp-search .custom-flex .input-search-field input:focus,
.pp-search .custom-flex .input-search-field input:focus-visible,
.pp-search .custom-flex .search-categories select.form-select:focus,
.pp-search .custom-flex .search-categories select.form-select:focus-visible {
    outline: none !important;
    box-shadow: none;
}

.pp-search .custom-flex:focus-within {
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(143, 75, 66, 0.2);
}

.pp-search .custom-flex:focus-within .input-search-field input,
.pp-search .custom-flex:focus-within .search-categories select.form-select {
    border-color: var(--pp-red);
}

/* Results dropdown (moved from the old inline header styles) */
.container_list {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--pp-red);
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.18);
}

.container_list ul li {
    display: block;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
}

.container_list ul li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #fff !important;
}

.container_list ul li a:hover,
.container_list ul li a:focus {
    background: var(--pp-red-dark);
}

/* ---------- Header: small laptops (menu still inline) ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pp-brand {
        margin-right: 12px;
    }

    .pp-brand img {
        height: 40px;
    }

    .pp-nav .navbar-nav {
        gap: 0;
    }

    .pp-nav .nav-link {
        padding: 10px 7px !important;
        font-size: 14px;
    }

    .pp-nav .nav-link.active::after {
        left: 7px;
        right: 7px;
    }

    .pp-actions {
        gap: 6px;
    }

    .pp-signin {
        width: 44px;
        margin-left: 0;
        padding: 0;
        justify-content: center;
    }

    .pp-signin span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* ---------- Header: tablet & phone ---------- */
@media (max-width: 991.98px) {
    .pp-nav {
        min-height: 66px;
    }

    .pp-brand img {
        height: 44px;
    }

    .pp-actions {
        gap: 6px;
    }

    .pp-nav .navbar-toggler {
        border: 0;
        box-shadow: none;
    }

    .pp-nav .navbar-collapse {
        order: 4;
        flex-basis: 100%;
    }

    .pp-nav .navbar-nav {
        gap: 0;
        margin: 8px 0 4px;
        padding-top: 8px;
        border-top: 1px solid var(--pp-line);
    }

    .pp-nav .nav-link {
        padding: 12px 8px !important;
    }

    .pp-nav .nav-link.active:not(.dropdown-toggle)::after {
        display: none;
    }

    .pp-header .dropdown-menu {
        margin: 0 0 8px !important;
        border: 0;
        box-shadow: none;
        background: #fafafa;
    }

    .pp-header .pp-dd__menu,
    .pp-header .pp-dd__menu--wide {
        width: auto;
        margin: 0 0 8px !important;
        padding: 6px;
        border-radius: 10px;
        animation: none;
    }

    .pp-header .pp-dd__menu--wide.show {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-header .pp-dd__menu::before {
        display: none;
    }

    .pp-header .pp-dd__item {
        align-items: center;
        padding: 8px;
    }

    .pp-dd__icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .pp-dd__text small {
        display: none;
    }

    .pp-nav .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pp-header .dropdown-menu.pp-user-menu {
        position: absolute;
        border: 1px solid var(--pp-line);
        box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
        background: #fff;
    }

    .pp-header .search-holder.pp-search {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .pp-brand {
        margin-right: 8px;
    }

    .pp-brand img {
        height: 34px;
    }

    .pp-icon-btn {
        width: 40px;
        height: 40px;
    }

    .pp-signin {
        width: 40px;
        height: 40px;
        margin-left: 0;
        padding: 0;
        justify-content: center;
    }

    .pp-signin span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .pp-search .custom-flex .search-categories {
        flex: none;
        width: 104px;
    }
}

@media (max-width: 399.98px) {
    .pp-actions {
        gap: 4px;
    }

    .pp-brand img {
        height: 30px;
    }
}

@media (max-width: 359.98px) {
    .pp-icon-btn,
    .pp-signin {
        width: 36px;
        height: 36px;
        min-height: 36px;
        font-size: 16px;
    }

    .pp-brand img {
        height: 26px;
    }
}

/* ---------- Footer ---------- */
.pp-footer {
    --pp-foot-accent: #ffd65a;
    position: relative;
    background: #1c1513;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14.5px;
}

/* Thin logo-coloured band along the top edge */
.pp-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--pp-red) 0%, #f57c33 55%, var(--pp-foot-accent) 100%);
}

.pp-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.pp-footer a:hover {
    color: var(--pp-foot-accent);
}

.pp-footer a:focus-visible {
    outline-color: #fff !important;
}

/* Contact strip */
.pp-footer__contact {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 44px 0 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

.pp-footer__contact li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.pp-footer__contact li > span:last-child {
    display: grid;
    min-width: 0;
    white-space: nowrap;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pp-footer__contact small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pp-footer__contact a {
    color: #fff;
}

.pp-footer__contact address {
    margin: 0;
    font-weight: 500;
    white-space: normal;
}

.pp-footer__chip {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--pp-red);
    color: #fff;
    font-size: 17px;
}

/* Brand and link columns */
.pp-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px 32px;
    padding: 48px 0;
}

.pp-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #fff;
}

.pp-footer__logo img {
    flex: none;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pp-footer__logo strong {
    display: block;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.pp-footer__logo small {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
}

.pp-footer__about {
    max-width: 340px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14.5px;
    line-height: 1.7;
    text-align: left;
}

.pp-footer__social {
    display: flex;
    gap: 10px;
}

.pp-footer__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 16px;
    transition: background-color 200ms var(--pp-ease), color 200ms var(--pp-ease);
}

.pp-footer__social a:hover {
    background: var(--pp-foot-accent);
    color: #1c1513;
}

.pp-footer__col h3 {
    position: relative;
    margin: 4px 0 20px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.pp-footer__col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--pp-foot-accent);
}

.pp-footer__col ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-footer__col a {
    display: inline-block;
    padding: 5px 0;
    transition: color 150ms var(--pp-ease), transform 150ms var(--pp-ease);
}

.pp-footer__col a:hover {
    transform: translateX(3px);
}

/* Bottom bar */
.pp-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #161110;
}

.pp-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.pp-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13.5px;
    text-align: left;
}

.pp-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
}

.pp-footer__legal a {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1199.98px) {
    .pp-footer__contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-footer__contact li > span:last-child {
        white-space: normal;
    }

    .pp-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pp-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pp-footer__contact {
        grid-template-columns: minmax(0, 1fr);
        padding: 36px 0 28px;
    }

    .pp-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
        padding: 36px 0 32px;
    }

    .pp-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-footer__col a:hover {
        transform: none;
    }
}

/* ===== Login / Sign up popup ===== */
.pp-auth .modal-dialog {
    max-width: 860px;
}

.pp-auth .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.25);
}

.pp-auth__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f4f4f5;
    color: var(--pp-ink);
    font-size: 15px;
    transition: background-color 200ms var(--pp-ease);
}

.pp-auth__close:hover {
    background: #e7e7e9;
}

.pp-auth__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    min-height: 100%;
}

.pp-auth__brand {
    display: flex;
    flex-direction: column;
    padding: 40px 34px;
    background:
        radial-gradient(circle at 110% -10%, rgba(255, 255, 255, 0.18), transparent 45%),
        linear-gradient(160deg, var(--pp-red) 0%, var(--pp-red-dark) 100%);
    color: #fff;
}

.pp-auth__brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.pp-auth__brand h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.pp-auth__brand p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    font-size: 15px;
    line-height: 1.55;
}

.pp-auth__brand ul {
    display: grid;
    gap: 14px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.pp-auth__brand li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.pp-auth__brand li .pp-icon {
    flex: none;
    padding: 6px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
}

.pp-auth__body {
    padding: 36px 36px 30px;
}

.pp-auth__title {
    margin: 0 44px 18px 0;
    color: var(--pp-ink);
    font-size: 22px;
    font-weight: 800;
}

.pp-auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 10px;
    background: #ececef;
}

.pp-auth__tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--pp-muted);
    font-size: 15px;
    font-weight: 700;
    transition: background-color 200ms var(--pp-ease), color 200ms var(--pp-ease);
}

.pp-auth__tabs button.active {
    background: #fff;
    color: var(--pp-red);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.pp-auth__alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--pp-danger-soft);
    color: var(--pp-danger);
    font-size: 14px;
    font-weight: 600;
}

.pp-auth__form {
    display: grid;
    gap: 14px;
}

.pp-auth__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.pp-auth__field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.pp-auth__field label {
    margin: 0;
    color: var(--pp-ink);
    font-size: 14px;
    font-weight: 600;
}

.pp-auth__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.pp-auth__label-row a {
    color: var(--pp-red);
    font-size: 13px;
    font-weight: 600;
}

.pp-auth__label-row a:hover {
    color: var(--pp-red-dark);
    text-decoration: underline;
}

.pp-auth .form-control {
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #d9d9de;
    border-radius: 8px;
    background: #fff;
    color: var(--pp-ink);
    font-size: 15px;
    box-shadow: none;
    transition: border-color 200ms var(--pp-ease), box-shadow 200ms var(--pp-ease);
}

.pp-auth .form-control:focus {
    border-color: var(--pp-red);
    box-shadow: 0 0 0 3px rgba(143, 75, 66, 0.15);
}

.pp-auth .is-checked .form-control:invalid {
    border-color: var(--pp-danger);
}

.pp-auth__password {
    position: relative;
}

.pp-auth__password .form-control {
    padding-right: 46px;
}

.pp-auth__eye {
    position: absolute;
    top: 3px;
    right: 3px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--pp-muted);
    font-size: 17px;
}

.pp-auth__eye:hover {
    color: var(--pp-ink);
}

.pp-auth__captcha label strong {
    color: var(--pp-red);
}

.pp-auth__captcha-row {
    display: flex;
    gap: 8px;
}

.pp-auth__captcha-row .form-control {
    max-width: 140px;
}

.pp-auth__refresh {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #d9d9de;
    border-radius: 8px;
    background: #fff;
    color: var(--pp-muted);
    font-size: 18px;
}

.pp-auth__refresh:hover {
    color: var(--pp-red);
    border-color: var(--pp-red);
}

.pp-auth__error {
    color: var(--pp-danger);
    font-size: 13px;
    font-weight: 600;
}

.pp-auth__submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    font-size: 16px;
}

.pp-auth__submit:disabled {
    opacity: 0.7;
}

.pp-auth__switch {
    margin: 0;
    color: var(--pp-muted);
    font-size: 14px;
    text-align: center;
}

.pp-auth__switch button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--pp-red);
    font-weight: 700;
}

.pp-auth__switch button:hover {
    color: var(--pp-red-dark);
    text-decoration: underline;
}

.pp-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: #9a9aa0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pp-auth__divider::before,
.pp-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--pp-line);
}

.pp-auth__guest {
    width: 100%;
}

@media (max-width: 767.98px) {
    .pp-auth__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-auth__brand {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .pp-auth .modal-content {
        border-radius: 0;
    }

    .pp-auth__body {
        padding: 24px 16px 28px;
    }

    .pp-auth__row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== Back to top ===== */
.pp-totop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pp-red);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(28, 21, 19, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 250ms var(--pp-ease), transform 250ms var(--pp-ease), visibility 250ms, background-color 200ms var(--pp-ease);
}

.pp-totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.pp-totop:hover {
    background: var(--pp-red-dark);
}

.pp-totop:hover i {
    transform: translateY(-2px);
}

.pp-totop i {
    position: relative;
    transition: transform 200ms var(--pp-ease);
}

.pp-totop:focus-visible {
    outline: 3px solid #ffd65a;
    outline-offset: 3px;
}

/* Progress ring around the button */
.pp-totop__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pp-totop__ring circle {
    fill: none;
    stroke: #ffd65a;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

/* Keep clear of the Laravel debug bar when it is shown (local only) */
body:has(.phpdebugbar) .pp-totop {
    bottom: 64px;
}

@media (max-width: 575.98px) {
    .pp-totop {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-totop,
    .pp-totop i {
        transition: none;
    }
}
