:root {
    --ec-accent-1: #8ec5ff;
    --ec-accent-2: #72BF44; /* your accent green */
    --ec-stroke: rgba(0, 0, 0, .7);
    --ec-tag: #ffd36e;
    --primary: #002C4B; /* deep navy blue: professionalism & trust */
    --font-primary-color: #002C4B99; /* deep navy blue: with transparency */
    --accent: #72BF44; /* eco green: growth & innovation */
    --light-bg: #F8F9FA; /* off‑white background for contrast */
    --ink: #1f2a37;
    --muted: #667085;
    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --sa-size: 88px;
    --sa-success: #a5dc86; /* tweak to your brand */
    --sa-error: #f27474;
    --sa-ring: rgba(0, 0, 0, .06);
}

html, body {
    height: 100%; /* 100% of the viewport */
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Outfit Variable', sans-serif;
    background-color: var(--light-bg);
    color: var(--primary);
    line-height: 1.6;
}

main {
    flex: 1 0 auto; /* grow/shrink, no base width */
}

footer {
    flex-shrink: 0; /* stay at its intrinsic height */
}

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

.text-muted {
    color: var(--font-primary-color) !important;
}

.help-text {
    margin-left: 5px !important;
}

/* Header styling */
.navbar-brand {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.navbar-text {
    font-weight: 600;
    display: flex;
    color: var(--primary);
}

/*.brand-icon {*/
/*    width: 32px;*/
/*    height: 32px;*/
/*    margin-right: 0.5rem;*/
/*    border-radius: 8px;*/
/*    background-image: linear-gradient(45deg, var(--primary), var(--accent));*/
/*}*/

/* VisitCloud section */
.vstcld {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3rem;
}

.vstcld-row {
    margin-top: 6rem !important;
}

.vstcld::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -40%;
    width: 150%;
    height: 140%;
    background-image: linear-gradient(45deg, rgba(0, 44, 75, 0.08), rgba(114, 191, 68, 0.04));
    transform: rotate(-5deg);
    z-index: -1;
}

.vstcld-heading {
    font-weight: 700;
    color: var(--primary);
}

.vstcld-text {
    font-size: 1.1rem;
    max-width: 32rem;
    color: var(--font-primary-color);
}

.vstcld-card {
    background: var(--surface);
    border: 1px solid rgba(0, 44, 75, .08);
    box-shadow: 0 12px 36px rgba(0, 44, 75, .08);
    border-radius: 1.25rem;
}

.badge-soft {
    background: rgba(114, 191, 68, .14);
    color: #245a11;
    border: 1px solid rgba(114, 191, 68, .35);
}

.btn-primary-custom {
    background-color: var(--primary) !important;
    color: #fff !important;
    border: none !important;
}

.btn-primary-custom:hover {
    background-color: #031d32 !important;
    color: #fff !important;
}

.btn-primary-custom:active {
    background-color: #031d32 !important;
    color: #fff !important;
    border: none !important;
}

.btn-accent-custom {
    background-color: var(--accent);
    color: #002C4B !important;
    border: none !important;
}

.btn-accent-custom:hover {
    background-color: #5FAE35 !important;
    color: #002C4B !important;
}

.btn-accent-custom:active {
    background-color: #5FAE35 !important;
    color: #002C4B !important;
}

/* ===================================
   PRODUCT CARD – BASE & INTERACTION
   =================================== */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(0, 44, 75, .08);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 44, 75, .06);
    transition: transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    filter .25s ease,
    opacity .25s ease;
}

/* Hover elevation for active cards */
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(0, 44, 75, .10);
    border-color: rgba(0, 44, 75, .18);
}

/* Product media (image container) */
.product-media {
    aspect-ratio: 16/10;
    background: linear-gradient(
        45deg,
        rgba(0, 44, 75, .06),
        rgba(114, 191, 68, .10)
    ), var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: var(--primary);
}

.product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease-in-out;
}

/* Subtle zoom on hover for active cards only */
.product-card:not(.is-disabled):hover .product-media img {
    transform: scale(1.03);
}

/* Price styling */
.price {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary);
}

/* ===================================
   DISABLED STATE
   =================================== */

.product-card.is-disabled {
    opacity: 0.8;
    pointer-events: none; /* disable interaction */
}

/* Only dim the image, keep text crisp */
.product-card.is-disabled .product-media img {
    filter: grayscale(0.8) brightness(0.9);
}

/* Soft frosted overlay */
.product-card.is-disabled::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Frost overlay animation sync */
.product-card.is-disabled.reveal::after {
    opacity: 0;
}

.product-card.is-disabled.reveal.revealed::after {
    opacity: 1;
    transition: opacity 0.45s ease 0.1s; /* delay overlay after card reveal */
}

/* Disabled button appearance */
.product-card.is-disabled .btn {
    background-color: #e0e0e0 !important;
    border-color: #d5d5d5 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Maintain smooth hover feel for active cards only */
.product-card:not(.is-disabled):hover {
    filter: none;
}

/* ===================================
   REVEAL ANIMATION (shared)
   =================================== */

.product-card.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible state (active + disabled) */
.product-card.reveal.revealed,
.product-card.is-disabled.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.chip {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: rgba(114, 191, 68, .9);
    color: #06220e;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    border: 1px solid rgba(0, 0, 0, .08);
}

/* Card styling */
.info-card {
    border: none;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card .card-body {
    padding: 2rem;
}

/* FAQ accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 44, 75, 0.05);
    color: var(--primary);
}

.accordion-button::after {
    filter: invert(38%) sepia(18%) saturate(1050%) hue-rotate(161deg) brightness(90%) contrast(90%);
}

.accordion-body {
    color: var(--font-primary-color);
}

/* Form styling */
.code-form .form-control {
    border-color: var(--primary);
}

.code-form .form-text {
    color: #6c757d;
}

footer {
    background-color: var(--light-bg);
    color: #6c757d;
    font-size: 0.875rem;
    padding: 2rem 0;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

.product-card {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bs-body-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.vc-muted {
    color: var(--bs-secondary-color);
}

.vc-label {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .25rem;
}

.ElementContainer {
    padding: .75rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .75rem;
    background: var(--bs-body-bg);
}

.pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.price-xl {
    font-size: 1.25rem;
    font-weight: 700;
}

.hidden {
    display: none;
}

/* SweetAlert-style result icons using SVG stroke animation
   -------------------------------------------------------- */

/* Container & entry animation */
.sa {
    display: inline-block;
    width: var(--sa-size);
    height: var(--sa-size);
}

.sa.sa-animate {
    animation: sa-pop .45s ease-out both;
}

.shop-title {
    vertical-align: middle !important;
}

@keyframes sa-pop {
    0% {
        transform: scale(.6) rotate(0);
    }
    60% {
        transform: scale(1.05) rotate(14deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

/* Base SVG styling */
.sa svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sa .sa-circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke: var(--sa-ring);
}

.sa .sa-ring {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100; /* draw-in animation */
}

.sa-success .sa-ring {
    stroke: var(--sa-success);
    animation: sa-draw .35s .15s ease-out forwards;
}

.sa-error .sa-ring {
    stroke: var(--sa-error);
    animation: sa-draw .35s .15s ease-out forwards;
}

@keyframes sa-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.sa-success .sa-check {
    fill: none;
    stroke: var(--sa-success);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Draw animation via dash */
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: sa-draw .45s .35s ease-out forwards;
}

/* ERROR ✕ -------------------------------------------------- */
.sa-error .sa-x {
    fill: none;
    stroke: var(--sa-error);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.sa-error .sa-x-1 {
    animation: sa-draw .35s .35s ease-out forwards;
}

.sa-error .sa-x-2 {
    animation: sa-draw .35s .50s ease-out forwards;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sa.sa-animate {
        animation: none !important;
    }

    .sa .sa-ring,
    .sa .sa-check,
    .sa .sa-x {
        animation: none !important;
        stroke-dashoffset: 0 !important;
    }
}

.offcanvas-custom-width {
    width: 100% !important; /* full width on small screens */
    max-width: 100%;
}

@media (min-width: 768px) {
    .offcanvas-custom-width {
        width: 555px !important; /* only apply wider drawer on tablets+ */
    }
}

#toast-container .toast-body {
    line-height: 2;
}


#toast-container .toast.text-bg-success {
    --bs-success-bg: var(--accent);
    --bs-success-rgb: 114, 191, 68;
    color: #fff;
}

/* base font sizes */
.font-xs {
    font-size: 0.75rem;
}

/* ~12px */
.font-sm {
    font-size: 0.875rem;
}

/* ~14px */
.font-md {
    font-size: 1rem;
}

/* ~16px */
.font-lg {
    font-size: 1.25rem;
}

/* ~20px */
.font-xl {
    font-size: 1.5rem;
}

/* ~24px */
.font-xx {
    font-size: 1.75rem;
}

/* ~28px */

/* responsive overrides */

/* ≥576px (sm) */
@media (min-width: 576px) {
    .font-xs-sm {
        font-size: 0.75rem;
    }

    .font-sm-sm {
        font-size: 0.875rem;
    }

    .font-md-sm {
        font-size: 1rem;
    }

    .font-lg-sm {
        font-size: 1.25rem;
    }

    .font-xl-sm {
        font-size: 1.5rem;
    }

    .font-xx-sm {
        font-size: 1.75rem;
    }
}

/* ≥768px (md) */
@media (min-width: 768px) {
    .font-xs-md {
        font-size: 0.75rem;
    }

    .font-sm-md {
        font-size: 0.875rem;
    }

    .font-md-md {
        font-size: 1rem;
    }

    .font-lg-md {
        font-size: 1.25rem;
    }

    .font-xl-md {
        font-size: 1.5rem;
    }

    .font-xx-md {
        font-size: 1.75rem;
    }
}

/* ≥992px (lg) */
@media (min-width: 992px) {
    .font-xs-lg {
        font-size: 0.75rem;
    }

    .font-sm-lg {
        font-size: 0.875rem;
    }

    .font-md-lg {
        font-size: 1rem;
    }

    .font-lg-lg {
        font-size: 1.25rem;
    }

    .font-xl-lg {
        font-size: 1.5rem;
    }

    .font-xx-lg {
        font-size: 1.75rem;
    }
}

/* ≥1200px (xl) */
@media (min-width: 1200px) {
    .font-xs-xl {
        font-size: 0.75rem;
    }

    .font-sm-xl {
        font-size: 0.875rem;
    }

    .font-md-xl {
        font-size: 1rem;
    }

    .font-lg-xl {
        font-size: 1.25rem;
    }

    .font-xl-xl {
        font-size: 1.5rem;
    }

    .font-xx-xl {
        font-size: 1.75rem;
    }
}

/* ≥1400px (xxl) */
@media (min-width: 1400px) {
    .font-xs-xxl {
        font-size: 0.75rem;
    }

    .font-sm-xxl {
        font-size: 0.875rem;
    }

    .font-md-xxl {
        font-size: 1rem;
    }

    .font-lg-xxl {
        font-size: 1.25rem;
    }

    .font-xl-xxl {
        font-size: 1.5rem;
    }

    .font-xx-xxl {
        font-size: 1.75rem;
    }
}

.empty-cart {
    color: var(--bs-body-color);
}

@media (prefers-color-scheme: dark) {
    .empty-cart {
        --ec-stroke: rgba(255, 255, 255, .85);
        --ec-tag: #f5c04e;
    }
}


.empty-cart-illustration {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
}

.ec-float {
    animation: ec-float 4.5s ease-in-out infinite;
    transform-origin: 90px 82px;
}

@media (prefers-reduced-motion: reduce) {
    .ec-float {
        animation: none;
    }
}

@keyframes ec-float {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-6px)
    }
}

/* Optional: tighter layout in small offcanvas areas */
@media (max-width: 420px) {
    .empty-cart {
        padding: 2rem 1rem;
    }

    .empty-cart h5 {
        font-size: 1.05rem;
    }

    .empty-cart p {
        font-size: .95rem;
    }
}

div[data-field="organizationName"] {
    display: none !important;
}

.vat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    z-index: 10;
    transition: opacity 0.2s ease-in-out;
}

.vat-overlay.d-none {
    display: none !important;
}

.vat-spinner {
    text-align: center;
}

/* Icon: basket + shrug + bounce */
.icon-wrap {
    width: 164px;
    height: 164px;
    display: grid;
    place-items: center;
    margin-inline: auto;
    position: relative;
}

.basket-emoji {
    color: var(--primary);
}

.shrug-arms {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bounce-in {
    animation: bounceIn .9s cubic-bezier(.2, .8, .2, 1) .15s both;
    will-change: transform;
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    pointer-events: none;
    opacity: 0.15;
}

@keyframes bounceIn {
    0% {
        transform: translateY(16px) scale(.92);
        opacity: 0;
    }
    60% {
        transform: translateY(-6px) scale(1.02);
        opacity: 1;
    }
    85% {
        transform: translateY(2px) scale(.998);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Subtle wiggle on idle to sell the “lost” vibe */
.wiggle {
    animation: wiggle 2.8s ease-in-out 1.4s infinite;
    transform-origin: 50% 80%;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    8% {
        transform: rotate(-3.2deg);
    }
    16% {
        transform: rotate(2.4deg);
    }
    24% {
        transform: rotate(-1.6deg);
    }
    32% {
        transform: rotate(1.2deg);
    }
    40% {
        transform: rotate(0deg);
    }
}
