/**
 * Monochrome storefront theme: black surfaces, white surfaces, and clear contrast.
 */
:root {
    --uk-navy: #000000;
    --uk-royal: #111111;
    --uk-red: #000000;
    --uk-light: #ffffff;
    --uk-white: #ffffff;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--uk-light);
    color: #000000;
}

.site-navbar {
    background: #000000;
}

.shop-search-section .site-search-form {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.shop-search-section .site-search-form__input {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
}

.shop-search-section .site-search-form__btn {
    flex-shrink: 0;
    font-weight: 700;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (max-width: 575.98px) {
    .shop-search-section .site-search-form {
        flex-direction: column;
    }

    .shop-search-section .site-search-form__btn {
        width: 100%;
    }
}

.site-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.main-site-logo {
    max-height: 72px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    padding: 0.2rem;
}

.brand-name-text {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Navbar: typewriter brand */
.brand-typewriter {
    display: inline-flex;
    align-items: baseline;
    max-width: 100%;
}

.brand-typewriter__text {
    white-space: nowrap;
}

.brand-typewriter__cursor {
    display: inline-block;
    width: 0.12em;
    min-width: 2px;
    height: 1.05em;
    margin-left: 2px;
    background: #ffffff;
    vertical-align: -0.12em;
    animation: brandCursorBlink 0.75s step-end infinite;
}

.brand-typewriter.is-done .brand-typewriter__cursor {
    animation: brandCursorBlink 1s step-end infinite;
}

@keyframes brandCursorBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-typewriter__cursor {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .main-site-logo {
        max-height: 38px;
        border-width: 1px;
        padding: 0.12rem;
    }

    .brand-name-text {
        font-size: 0.62rem;
        letter-spacing: 0.01em;
        line-height: 1;
        white-space: nowrap;
    }

    .navbar-brand {
        min-width: 0;
        max-width: calc(100% - 3.5rem);
        margin-right: 0.35rem;
        overflow: hidden;
    }

    .navbar-toggler {
        flex-shrink: 0;
        padding: 0.25rem 0.45rem;
    }

    .site-navbar .navbar-collapse {
        flex-basis: 100%;
    }
}

.brand-text-small {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.bg-uk-red {
    background-color: var(--uk-red) !important;
}

.btn-uk-primary {
    background-color: var(--uk-red);
    border-color: var(--uk-red);
    color: #fff;
    font-weight: 600;
}

.btn-uk-primary:hover {
    background-color: #333333;
    border-color: #333333;
    color: #fff;
}

.btn-outline-royal {
    color: var(--uk-royal);
    border-color: var(--uk-royal);
}

.btn-outline-royal:hover {
    background-color: var(--uk-royal);
    color: #fff;
}

.card.product-card {
    border: 1px solid #e6e6e6;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

.product-grid {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.product-card-img-wrap {
    display: block;
}

.product-card-img {
    height: 9rem;
    object-fit: cover;
    width: 100%;
}

.product-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    background: #000000;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.shop-product-section {
    background: #fafafa;
}

.shop-product-section + .container,
.container + .shop-product-section {
    margin-top: 0;
}

.product-card-title {
    color: var(--uk-navy);
    font-size: 0.95rem;
    line-height: 1.25;
}

.product-card-price {
    color: var(--uk-red);
    font-size: 0.9rem;
    font-weight: 700;
}

.product-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.product-stars--compact {
    margin-bottom: 0.25rem;
}

.product-stars__star {
    color: #d1d5db;
    font-size: 0.95rem;
}

.product-stars--compact .product-stars__star {
    font-size: 0.78rem;
}

.product-stars__star.is-filled {
    color: #f5b301;
}

.product-stars__value {
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
}

.product-stars--compact .product-stars__value {
    font-size: 0.68rem;
}

@media (max-width: 575.98px) {
    .product-card-img {
        height: 7.25rem;
    }

    .product-card-title {
        font-size: 0.86rem;
    }

    .product-card-price,
    .product-card .btn {
        font-size: 0.8rem;
    }
}

.site-footer {
    background: #000000;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.payment-list li {
    margin-bottom: 0.35rem;
}

.payment-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.payment-method-card {
    border: 1px solid #e6e6e6 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.payment-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
}

.bitcoin-logo {
    background: #f7931a;
    color: #ffffff;
}

.crypto-logo {
    background: #111111;
    color: #ffffff;
    border: 0.2rem solid #ffffff;
    box-shadow: 0 0 0 0.1rem #111111;
}

.remitly-logo {
    background: #111111;
    color: #ffffff;
    border: 0.18rem solid #111111;
}

.price-display {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--uk-navy);
}

.tier-select-label {
    font-weight: 600;
    color: var(--uk-navy);
}

.text-navy {
    color: var(--uk-navy) !important;
}

.home-hero {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.38);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.hero-actions-wrap {
    min-height: 28rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-welcome {
    max-width: 58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0.18rem 0.35rem rgba(0, 0, 0, 0.25);
}

.welcome-slideshow {
    min-height: 24rem;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.welcome-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
}

.welcome-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.VERIFIED-DEALER-label,
.trusted-service-label {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.92);
    color: #000000;
    border-radius: 999px;
    padding: 0.75rem 1.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trusted-check {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
}

.category-block:last-of-type {
    border-bottom: none !important;
}

/* Home: FAQ & newsletter (below shop) */
.home-faq .faq-accordion .accordion-button {
    font-weight: 600;
    color: #000;
    background: #fff;
    box-shadow: none;
}

.home-faq .faq-accordion .accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #000;
}

.home-faq .faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.12);
}

.home-newsletter {
    background: linear-gradient(180deg, #f4f4f4 0%, #ffffff 100%);
}

.home-newsletter .newsletter-panel {
    max-width: 960px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.home-newsletter .newsletter-form .btn-uk-primary {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .home-newsletter .newsletter-form .input-group-lg {
        flex-direction: column;
        gap: 0.5rem;
    }

    .home-newsletter .newsletter-form .input-group-lg > .form-control,
    .home-newsletter .newsletter-form .input-group-lg > .btn {
        width: 100%;
        border-radius: 0.375rem !important;
    }
}

.content-page .lead {
    max-width: 48rem;
}

/* Home page: fixed WhatsApp live-chat button (left, stays on scroll) */
.whatsapp-chat {
    position: fixed;
    left: 1.25rem;
    bottom: 1.5rem;
    z-index: 9999;
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-chat:hover {
    color: #fff;
    transform: scale(1.07);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

.whatsapp-chat:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whatsapp-chat__icon {
    position: relative;
    z-index: 2;
    width: 1.9rem;
    height: 1.9rem;
}

.whatsapp-chat__ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: whatsappChatPing 2s ease-out infinite;
}

@keyframes whatsappChatPing {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@media (max-width: 575.98px) {
    .whatsapp-chat {
        left: max(0.75rem, env(safe-area-inset-left, 0.75rem));
        bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
        width: 3.5rem;
        height: 3.5rem;
    }

    .whatsapp-chat__icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* ==========================================================================
   Responsive — all devices (phones, tablets, desktops)
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

img,
video,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

.container,
.container-fluid {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0.75rem));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
}

main {
    width: 100%;
    min-width: 0;
}

/* ----- Navigation (shop) ----- */
@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        max-height: min(70vh, 28rem);
        overflow-y: auto;
    }

    .site-navbar .navbar-nav {
        padding: 0.35rem 0 0.75rem;
    }

    .site-navbar .nav-link {
        padding: 0.55rem 0;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .brand-typewriter__text {
        white-space: normal;
        text-align: left;
    }

    .navbar-brand {
        max-width: calc(100% - 3.25rem);
    }
}

/* ----- Hero ----- */
.hero-welcome {
    font-size: clamp(1rem, 3.8vw, 2.15rem);
    line-height: 1.15;
    white-space: normal;
    hyphens: auto;
}

.hero-actions-wrap {
    min-height: clamp(12rem, 42vh, 28rem);
}

.hero-cta-buttons .btn-lg {
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .hero-cta-buttons .btn-lg {
        width: auto;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .welcome-slideshow {
        min-height: 14rem;
    }

    .VERIFIED-DEALER-label,
    .trusted-service-label {
        font-size: clamp(0.7rem, 2.8vw, 1.1rem);
        padding: 0.5rem 0.85rem;
        max-width: calc(100% - 1.5rem);
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .trusted-check {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.85rem;
    }
}

/* ----- Product grid ----- */
@media (max-width: 399.98px) {
    .product-grid {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .product-card .card-body,
    .product-card .card-footer {
        padding: 0.5rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .product-grid {
        --bs-gutter-x: 0.75rem;
    }
}

/* ----- Category blocks ----- */
@media (max-width: 575.98px) {
    .category-block .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .category-block .btn-outline-royal {
        width: 100%;
    }
}

/* ----- Product detail ----- */
.product-form-actions .btn-lg {
    width: 100%;
}

@media (min-width: 576px) {
    .product-form-actions .btn-lg {
        width: auto;
    }
}

.product-description {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ----- Forms & checkout ----- */
.form-control,
.form-select {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .price-display {
        font-size: 1.15rem;
    }

    .btn-lg {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
}

/* ----- Tables (basket, admin) ----- */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
    .table-responsive .table {
        font-size: 0.85rem;
    }

    .table-responsive .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.45rem;
    }

    .basket-qty-input {
        width: 100%;
        max-width: 6rem;
    }

    .basket-qty-form .btn {
        width: 100%;
    }
}

/* ----- Payment cards ----- */
@media (max-width: 575.98px) {
    .payment-logo {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.65rem;
    }
}

/* ----- Footer ----- */
@media (max-width: 575.98px) {
    .site-footer .row > [class*="col-"] {
        text-align: center;
    }

    .site-footer ul {
        padding-left: 0;
    }
}

/* ----- FAQ & newsletter ----- */
@media (max-width: 575.98px) {
    .home-faq .accordion-button {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .home-newsletter .newsletter-panel {
        padding: 1.25rem !important;
    }
}

/* ----- Search results ----- */
@media (max-width: 575.98px) {
    .shop-search-section h2 {
        font-size: 1.1rem;
    }
}

/* ----- Admin panel ----- */
.admin-brand-logo {
    max-height: 36px;
    width: auto;
}

.admin-brand-text {
    font-size: 1rem;
}

.admin-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.admin-nav-user {
    width: 100%;
    padding: 0.25rem 0;
}

@media (min-width: 992px) {
    .admin-nav-user {
        width: auto;
        padding: 0 0.35rem;
    }
}

@media (max-width: 991.98px) {
    .admin-navbar .navbar-collapse {
        margin-top: 0.5rem;
    }

    .admin-nav-actions .btn {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 7rem;
        text-align: center;
    }

    .admin-nav-actions .btn-uk-primary {
        flex: 1 1 100%;
    }
}

.admin-page-wrap {
    width: 100%;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .admin-page-wrap .table {
        font-size: 0.82rem;
    }

    .admin-page-wrap h1.h3 {
        font-size: 1.25rem;
    }
}

/* ----- Fixed chat widgets (avoid overlap) ----- */
@media (max-width: 575.98px) {
    body:has(.whatsapp-chat) {
        padding-bottom: 0.25rem;
    }
}

/* ----- Utility: prevent layout blowout ----- */
.w-100-max {
    width: 100% !important;
    max-width: 100% !important;
}

.overflow-wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ----- Age verification gate ----- */
body.age-gate-active {
    overflow: hidden;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.age-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.age-gate__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
    text-align: center;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.age-gate__logo {
    max-width: min(100%, 280px);
    max-height: 5rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.age-gate__denied {
    text-align: left;
    background: #fff5f5;
    border: 1px solid #f1c4c4;
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (max-width: 575.98px) {
    .age-gate__panel {
        padding: 1.25rem 1rem;
    }
}
