:root {
    --primary-color: #667eea;
    --secondary-color: #082050;
    --accent-color: #719df5;
    --secondary-colours: #764ba2;
    --accent-colours: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --text-tamy-dark: #082050;
    --text-tamy-light: #719df5;
    --nav-height: 76px;
    --section-media-max-width: 620px;
}

.tm-sup {
    font-size: 0.62em;
    vertical-align: super;
    letter-spacing: 0.02em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html, body {
        overflow-x: clip;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
}

/* Sticky footer (public pages) */
body.public-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.public-layout > footer.footer {
    margin-top: auto;
}

/* Back to top (public pages) */
.jcal-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: var(--secondary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.jcal-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.jcal-back-to-top i {
    font-size: 1.2rem;
    line-height: 1;
}

/* Navbar */
.navbar-jcal {
    min-height: var(--nav-height);
    padding: 0.75rem 0;
    background: transparent;
    transition: background-color 200ms ease, box-shadow 200ms ease;
    z-index: 1000;
}

.navbar-jcal .navbar-brand {
    font-weight: 800;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-jcal .brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Temporary: use a filter to create a white-on-transparent logo look.
    If you add real logo assets (e.g. logo-white.png / logo-dark.png), we can remove this. */
/* Use the actual light/dark logo assets based on the Bootstrap navbar theme.
   This supports both landing (dark at top) and shop/cart (light at top). */
.navbar-jcal .brand-logo.brand-light { display: none; }
.navbar-jcal .brand-logo.brand-dark { display: none; }
.navbar-jcal.navbar-dark .brand-logo.brand-light { display: block; }
.navbar-jcal.navbar-light .brand-logo.brand-dark { display: block; }

.navbar-jcal .nav-link {
    font-weight: 600;
    opacity: 0.95;
    transition: opacity 150ms ease, color 200ms ease;
}

.navbar-jcal .nav-link:hover {
    opacity: 1;
}

.navbar-jcal.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

/* Mobile collapse readability */
@media (max-width: 991.98px) {
    .navbar-jcal .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
}

/* <=912px: eliminate the navbar toggle; keep the two CTA buttons visible */
@media (max-width: 912px) {
    .navbar-jcal .container {
        flex-wrap: nowrap;
    }

    .navbar-jcal .navbar-toggler {
        display: none;
    }

    /* Override Bootstrap's .collapse:not(.show){display:none} */
    #siteNavCollapse.collapse,
    #siteNavCollapse.collapse:not(.show) {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        margin-top: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    #siteNavCollapse > .d-flex {
        margin-left: auto;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--text-tamy-dark) 0%, var(--text-tamy-light) 100%);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    padding: calc(2rem + var(--nav-height)) 0 0;
    margin-bottom: 0;
}

/* Desktop: pin the device image to the bottom edge of the viewport */
@media (min-width: 992px) {
    .hero-content {
        padding-bottom: clamp(260px, 42vh, 620px);
    }

    #deviceWrap {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
    }

    .device-mockup {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    margin-top: clamp(0.75rem, 2vh, 1.5rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

.cta-button-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    padding: 9rem 0 6rem;
    background: #f7fafc;
    position: relative;
    z-index: 100;
}

.features-carousel-wrap {
    position: relative;
    margin-top: 2rem;
}

/* Removed edge fade/gradient per request */

.features-carousel-bleed {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 2.5rem);
    padding-right: clamp(1rem, 3vw, 2.5rem);
}

.features-carousel {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 1rem 0 1.25rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.features-carousel::-webkit-scrollbar {
    height: 0;
}



.features-slide {
    flex: 0 0 88%;
    max-width: 520px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .features-slide {
        flex-basis: 48%;
    }
}

@media (min-width: 992px) {
    .features-slide {
        /* 3 full cards + a peek of the 4th */
        flex-basis: 30%;
    }
}

@media (min-width: 1200px) {
    .features-slide {
        flex-basis: 28%;
    }
}

/* Swipe Row (Stories) */
.swipe-row-section {
    padding: 4.5rem 0 2.5rem;
    background: #ffffff;
}

.swipe-row-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.swipe-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 1.25rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.swipe-row.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.swipe-row::-webkit-scrollbar {
    height: 0;
}

.swipe-card {
    flex: 0 0 84%;
    max-width: 520px;
    transition: flex-basis 260ms ease, max-width 260ms ease;
}

.swipe-card.is-expanded {
    flex-basis: 92%;
    max-width: 1100px;
}

@media (min-width: 768px) {
    .swipe-card {
        flex-basis: 38%;
        max-width: 420px;
    }

    .swipe-card.is-expanded {
        flex-basis: 96%;
        max-width: 1240px;
    }
}

@media (min-width: 1200px) {
    .swipe-card {
        flex-basis: 32%;
        max-width: 440px;
    }

    .swipe-card.is-expanded {
        flex-basis: 96%;
        max-width: 1320px;
    }
}

.swipe-card__inner {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: none;
    overflow: hidden;
}

.swipe-card__media {
    position: relative;
    background: #e2e8f0;
    height: clamp(420px, 72vw, 640px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .swipe-card__media {
        height: 560px;
    }
}

@media (min-width: 1200px) {
    .swipe-card__media {
        height: 600px;
    }
}

.swipe-card__side {
    display: none;
    position: relative;
    overflow: hidden;
}

.swipe-card__side::before {
    content: "";
    position: absolute;
    inset: -24px;
    background-image: var(--swipe-img, none);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.2);
    opacity: 0.9;
}

.swipe-card__side::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(70, 45, 25, 0.88) 0%,
            rgba(70, 45, 25, 0.65) 35%,
            rgba(15, 23, 42, 0.35) 70%,
            rgba(15, 23, 42, 0.10) 100%
        );
}

.swipe-card__side-text {
    position: relative;
    z-index: 1;
    padding: 1.1rem 1.15rem;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.swipe-card__imgwrap {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.swipe-card-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 160ms ease, background 160ms ease;
}

.swipe-card-toggle:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.30);
}

.swipe-card-toggle:active {
    transform: none;
}

.swipe-card-toggle i {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.swipe-card.is-expanded .swipe-card-toggle i {
    transform: rotate(45deg);
}

.swipe-card__imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
    transform: none;
    transition: none;
}

/* Expanded: split into two columns, keep image aspect intact (no stretch) */
#swipeRow .swipe-card.is-expanded .swipe-card__media {
    grid-template-columns: 1fr auto;
}

#swipeRow .swipe-card.is-expanded .swipe-card__side {
    display: block;
}

/* Expanded: hide the collapsed caption (prevents duplicate title) */
#swipeRow .swipe-card.is-expanded .swipe-card__caption {
    display: none;
}

#swipeRow .swipe-card__side {
    min-width: 0;
    height: 100%;
}

#swipeRow .swipe-card__imgwrap {
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    overflow: hidden;
}

/* Expanded left panel overlay: cream -> transparent (no tint over the image) */
#swipeRow .swipe-card.is-expanded .swipe-card__side::after {
    background: linear-gradient(90deg,
        rgba(255, 248, 235, 0.96) 0%,
        rgba(255, 248, 235, 0.96) 58%,
        rgba(255, 248, 235, 0.00) 100%
    );
}

/* Expanded: unify backgrounds so no vertical division shows */
#swipeRow .swipe-card.is-expanded .swipe-card__media,
#swipeRow .swipe-card.is-expanded .swipe-card__side,
#swipeRow .swipe-card.is-expanded .swipe-card__imgwrap {
    background: rgba(255, 248, 235, 0.96);
}

/* Expanded: hide the blurred-image layer on the left so it doesn't create a hard seam */
#swipeRow .swipe-card.is-expanded .swipe-card__side::before {
    opacity: 0;
}

/* Expanded image edge blend: cream -> transparent INTO the picture */
#swipeRow .swipe-card.is-expanded .swipe-card__imgwrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 248, 235, 0.98) 0%, rgba(255, 248, 235, 0.40) 40%, rgba(255, 248, 235, 0.00) 100%);
    filter: blur(14px);
    transform: translateX(-40px);
}

#swipeRow .swipe-card.is-expanded .swipe-card__side-text {
    color: var(--text-dark);
    text-shadow: none;
}

#swipeRow .swipe-card.is-expanded .swipe-card__imgwrap img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: right center;
}

.swipe-card__caption {
    margin-top: 0.75rem;
    padding: 0 0.15rem;
}

.swipe-card__caption-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.25;
}

.swipe-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.25;
}

.swipe-card__text {
    margin: 0.5rem 0 0;
    color: var(--text-light);
    line-height: 1.65;
}

.features-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 5;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.features-carousel-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.features-carousel-btn:hover {
    background: white;
}

.features-carousel-btn.prev {
    left: -10px;
}

.features-carousel-btn.next {
    right: -10px;
}

@media (max-width: 768px) {
    .features-carousel-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .features-carousel-wrap.show-mobile-arrows .features-carousel-btn {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Even when mobile arrows are enabled, keep end-state arrows hidden */
    .features-carousel-wrap.show-mobile-arrows .features-carousel-btn.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Feature cards (image style like reference) */
.feature-card.feature-card-media {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: none;
    display: grid;
    grid-template-rows: 1fr;
    --feature-card-h: clamp(420px, 72vw, 640px);
    height: var(--feature-card-h);
    position: relative;
}

@media (min-width: 768px) {
    .feature-card.feature-card-media {
        --feature-card-h: 560px;
    }
}

@media (min-width: 1200px) {
    .feature-card.feature-card-media {
        --feature-card-h: 600px;
    }
}

.feature-media {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #e2e8f0;
    height: 100%;
    grid-row: 1;
}

/* When open, expand to the right: image left + details panel right */
.feature-card.feature-card-media.is-open {
    grid-template-columns: 1fr 0.70fr;
    grid-template-rows: 1fr;
    height: var(--feature-card-h);
}

.feature-card.feature-card-media.is-open .feature-media {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
}

/* Closed: keep same card height by overlaying the copy on the image */
.feature-card.feature-card-media .feature-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.1rem 1.1rem 1.25rem;
    background: linear-gradient(180deg,
        rgba(15, 23, 42, 0.00) 0%,
        rgba(15, 23, 42, 0.62) 55%,
        rgba(15, 23, 42, 0.80) 100%
    );
}

.feature-card.feature-card-media .feature-title,
.feature-card.feature-card-media .feature-description {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.feature-card.feature-card-media.is-open .feature-copy {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    overflow: auto;
    background: rgba(255, 255, 255, 0.96);
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 0;
}

.feature-card.feature-card-media.is-open .feature-title,
.feature-card.feature-card-media.is-open .feature-description {
    color: var(--text-dark);
    text-shadow: none;
}

/* <=912px: when a feature card is opened, make it text-only (hide image) */
@media (max-width: 912px) {
    .feature-card.feature-card-media.is-open {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .feature-card.feature-card-media.is-open .feature-media {
        display: none;
    }

    .feature-card.feature-card-media.is-open .feature-copy {
        grid-column: 1;
        grid-row: 1;
    }
}

/* Mobile: no text overlay on the image.
    Closed: image + title below. Open: text-only (image hidden). */
@media (max-width: 768px) {
    .feature-card.feature-card-media {
        grid-template-rows: 1fr auto;
    }

    /* Closed on mobile: keep title over the image (no white strip) */
    .feature-card.feature-card-media:not(.is-open) {
        grid-template-rows: 1fr;
    }

    .feature-media {
        grid-row: 1;
    }

    .feature-card.feature-card-media .feature-copy {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 0;
        grid-row: 2;
        background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.00) 0%,
            rgba(15, 23, 42, 0.62) 55%,
            rgba(15, 23, 42, 0.80) 100%
        );
        padding: 1rem 1.1rem 1.15rem;
    }

    .feature-card.feature-card-media:not(.is-open) .feature-copy {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        grid-row: 1;
        padding: 1.05rem 1.1rem 1.15rem;
        background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.00) 0%,
            rgba(15, 23, 42, 0.62) 55%,
            rgba(15, 23, 42, 0.86) 100%
        );
    }

    .feature-card.feature-card-media .feature-title,
    .feature-card.feature-card-media .feature-description {
        color: rgba(255, 255, 255, 0.96);
        text-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    }

    /* Closed: hide long description until opened */
    .feature-card.feature-card-media .feature-expand {
        grid-template-rows: 0fr;
        opacity: 0;
    }

    /* Open: hide the image and show the full text */
    .feature-card.feature-card-media.is-open {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .feature-card.feature-card-media.is-open .feature-media {
        display: none;
    }

    .feature-card.feature-card-media.is-open .feature-copy {
        grid-column: 1;
        grid-row: 1;
        height: 100%;
        overflow: auto;
        background: rgba(255, 255, 255, 0.96);
    }

    .feature-card.feature-card-media.is-open .feature-title,
    .feature-card.feature-card-media.is-open .feature-description {
        color: var(--text-dark);
        text-shadow: none;
    }
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.feature-chip.chip-blue { background: rgba(59, 130, 246, 0.90); color: white; border-color: rgba(255,255,255,0.15); }
.feature-chip.chip-yellow { background: rgba(250, 204, 21, 0.95); color: #0f172a; }
.feature-chip.chip-pink { background: rgba(236, 72, 153, 0.92); color: white; border-color: rgba(255,255,255,0.15); }
.feature-chip.chip-green { background: rgba(163, 230, 53, 0.92); color: #0f172a; }

.feature-plus {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(15, 23, 42, 0.10);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.feature-plus i {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.feature-card.feature-card-media:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.55);
    outline-offset: 3px;
}

.feature-expand {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 260ms ease, opacity 200ms ease;
}

.feature-expand-inner {
    overflow: hidden;
}

.feature-expand-inner .feature-description {
    margin: 0.75rem 0 0;
}

.feature-card.feature-card-media.is-open .feature-expand {
    grid-template-rows: 1fr;
    opacity: 1;
}



.feature-card.feature-card-media.is-open .feature-plus {
    background: rgba(15, 23, 42, 0.22);
    transform: scale(1.02);
}

.feature-card.feature-card-media.is-open .feature-plus i {
    transform: rotate(45deg);
}

.feature-copy {
    padding: 1.25rem 1.25rem 1.5rem;
}

/* Widen the slide when a feature card is open (makes room for the side panel) */
.features-slide.is-expanded {
    /* Mobile: make it almost full-width for readable text */
    flex-basis: 96%;
    max-width: 680px;
}

@media (min-width: 768px) {
    .features-slide.is-expanded {
        flex-basis: 67%;
        max-width: 870px;
    }
}

@media (min-width: 1200px) {
    .features-slide.is-expanded {
        flex-basis: 67%;
        max-width: 925px;
    }
}

.feature-card.feature-card-media .feature-title {
    margin-bottom: 0.5rem;
}

.feature-card.feature-card-media .feature-description {
    margin: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

/* Touch devices: prevent sticky :hover styles */
@media (hover: none), (pointer: coarse) {
    .feature-card:hover {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Cookbook Section */
.cookbook-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.cookbook-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
}

.cookbook-subtitle {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    max-width: 40rem;
}

.cookbook-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.cookbook-point {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.cookbook-point i {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Keep media (images/frames) consistent width across key sections */
.cookbook-media,
.benefits-media,
.reminders-media,
.zmanim-frame-wrap {
    width: 100%;
    max-width: var(--section-media-max-width);
    margin-left: auto;
    margin-right: auto;
}

.cookbook-media img,
.reminders-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
    background: #fff;
}

.reviews-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 2.75rem;
}

.reviews-summary .rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.10);
    border: 1px solid rgba(102, 126, 234, 0.22);
    font-weight: 800;
    color: var(--text-dark);
}

.reviews-summary .stars {
    color: #f6ad55;
    letter-spacing: 0.08em;
}

.reviews-summary .rating-meta {
    color: var(--text-light);
    font-weight: 600;
}

.review-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.review-card .review-quote {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.review-card .review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.review-card .review-author {
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0;
}

.review-card .review-context {
    margin: 0;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--bs-body-bg, #fff);
}

.jcal-page-hero {
    border-radius: 1rem;
    overflow: hidden;
}

.jcal-page-hero__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
}

.faq-accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid rgba(8, 32, 80, 0.14);
    background: transparent;
}

.faq-accordion .accordion-item:first-child {
    border-top: 1px solid rgba(8, 32, 80, 0.14);
}

.faq-accordion .accordion-button {
    background: transparent;
    box-shadow: none;
    padding: 1.15rem 0;
    font-weight: 800;
    color: var(--secondary-color);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    background-image: none;
    content: '+';
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--secondary-color);
    border: 1px solid rgba(8, 32, 80, 0.22);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    content: '–';
}

.faq-accordion .accordion-body {
    padding: 0 0 1.2rem 0;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Device + Zmanim Engine Section */
.zmanim-engine-section {
    padding: 6rem 0;
    background: #f8fafc;
    --section-media-max-width: 520px;
}

.zmanim-engine-section .section-title,
.zmanim-engine-section .section-subtitle {
    text-align: left;
}

.zmanim-engine-section .section-subtitle {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.75rem;
}

.subtitle-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color));
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-right: 0.6rem;
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.25);
    vertical-align: middle;
}

.zmanim-engine-section .subscription-note {
    margin-top: 0.25rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.zmanim-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    justify-items: center;
}

.zmanim-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

/* Birthday + Anniversary Reminders Section */
.reminders-section {
    padding: 6rem 0;
    background: #fff;
}

.reminders-subtitle {
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 42rem;
}

.reminders-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.reminders-point {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.reminders-point i {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary-color);
    font-size: 1.25rem;
}

.reminders-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(8, 32, 80, 0.08));
    border: 1px solid rgba(8, 32, 80, 0.10);
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
}

.reminders-card .reminders-mini {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

@media (min-width: 768px) {
    .reminders-card .reminders-mini {
        grid-template-columns: 1fr 1fr;
    }
}

.reminders-tile {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 1.15rem 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.reminders-tile .tile-title {
    margin: 0 0 0.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.reminders-tile .tile-sub {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 600;
    font-size: 0.95rem;
}

.zmanim-frame-wrap {
    position: relative;
    display: block;
    max-width: var(--section-media-max-width);
}

/* Make the Zmanim visual larger on desktop without cropping */
@media (min-width: 992px) {
	.zmanim-engine-section .zmanim-frame-wrap {
		max-width: 600px;
	}
}

.zmanim-frame {
    width: 100%;
    max-width: none;
    position: relative;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    /* White “card” that now hugs the image size */
    background: #fff;
    overflow: hidden;
}

.zmanim-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.88);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zmanim-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Zmanim crossfade (click-to-toggle) */
.swap-img--base {
    transition: opacity 350ms ease;
}

/* Base image defines the frame height (no extra background area) */
.swap-img--base {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.swap-img--base {
    opacity: 1;
}

.swap-img--hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    opacity: 0;
    transition: opacity 350ms ease;
}

/* Click-to-toggle state (works alongside hover) */
.swap-card.is-toggled .swap-img--base {
    opacity: 0;
}

.swap-card.is-toggled .swap-img--hover {
    opacity: 1;
}

/* Round image-button in top-right corner */
.swap-toggle {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    padding: 0;
    overflow: visible;
}


.swap-toggle:hover {
    transform: translateY(-1px);
}

.swap-toggle:active {
    transform: translateY(0);
}

.swap-toggle img {
    width: 112px;
    height: 112px;
    display: block;
    pointer-events: none;
}

.swap-toggle .zmanim-license-badge {
    width: 100%;
    height: 100%;
    display: block;
}

.swap-toggle .zmanim-license-badge svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

@keyframes zmanimBadgePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    }
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
    }
}

.swap-toggle.is-pulsing .zmanim-license-badge svg {
    animation: zmanimBadgePulse 1.15s ease-in-out infinite;
    transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
    .swap-toggle.is-pulsing .zmanim-license-badge svg {
        animation: none;
    }
}

.badge-ring {
    position: relative;
    width: 100%;
    height: 100%;
}

.badge-ring img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Curved text sits above the badge (outside the image) */
.badge-ring__text {
    position: absolute;
    left: 50%;
    top: -22px;
    width: 260px;
    height: 92px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

/* Curved text styling */
.badge-ring__label {
    font: 900 19px system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    fill: #111827;
    letter-spacing: 0.7px;
}

@media (max-width: 576px) {
    .swap-toggle {
        top: -12px;
        right: -12px;
        width: 84px;
        height: 84px;
    }

    .swap-toggle img {
        width: 84px;
        height: 84px;
    }

    .badge-ring__label {
        font-size: 16px;
    }

    .badge-ring__text {
        top: -18px;
        width: 230px;
        height: 84px;
    }
}

@media (max-width: 992px) {
    .zmanim-images {
        grid-template-columns: 1fr;
    }

    .zmanim-frame {
        height: auto;
    }
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    background: white;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.benefit-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.benefit-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.benefits-media {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.benefits-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: #082050 100%;
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Device Mockup */
.device-mockup {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    margin-bottom: 0;
}

/* Note: desktop positioning for #deviceWrap is defined in the Hero Section block above. */

@keyframes floatDevice {
    0%, 100% { transform: translateY(72px); }
    50% { transform: translateY(0px); }
}

@keyframes floatDeviceSmall {
    0%, 100% { transform: translateY(22px); }
    50% { transform: translateY(0px); }
}

.device-screen {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    max-width: 1000px;
    margin: 0 auto;
    overflow: visible;
    animation: floatDevice 3s ease-in-out infinite;
}

.calendar-preview {
    background: transparent;
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
    height: 50vh;
    height: 50dvh;
    min-height: 420px;
}

.calendar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        min-height: 100vh;
        padding: calc(1.25rem + var(--nav-height)) 0 2.5rem;
        margin-bottom: 0;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .features-section,
    .benefits-section {
        padding: 4rem 0;
    }
    
    .cta-section {
        padding: 4rem 0;
    }

    .benefits-media {
        position: static;
        top: auto;
    }

    /* Benefits: stack number above content on mobile/tablet */
    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .benefit-number {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .device-mockup {
        margin-top: 4rem;
    }

    .hero-section {
        min-height: 100vh;
        padding: calc(0rem + var(--nav-height)) 0 2rem;
        text-align: center;
        margin-bottom: 0;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 1.05rem 2.4rem;
        font-size: 1.12rem;
        width: 100%;
        max-width: 360px;
    }
    
    .cta-button-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
        max-width: 360px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .features-section,
    .benefits-section {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .benefit-number {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .benefit-content h3 {
        font-size: 1.3rem;
    }
    
    .benefit-content p {
        font-size: 0.95rem;
    }
    
    .device-mockup {
        margin-top: 2rem;
    }
    
    .device-screen {
        padding: 0;
        border: none;
        max-width: 300px;
    }
    
    .calendar-preview {
        height: 50vh;
        height: 50dvh;
        min-height: 340px;
        font-size: 3rem;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links a {
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.15rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .benefit-item {
        padding: 1rem;
    }

    .benefit-number {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }
}

/* Small screens: make hero device image fill the hero height */
@media (max-width: 912px) {
    .hero-section > .container {
        height: 100%;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .hero-content {
        flex: 0 0 auto;
    }

    .device-mockup {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: stretch;
        margin-top: 1.25rem;
        transform: translateY(20%);
    }

    .device-screen {
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        max-width: none;
        animation: floatDeviceSmall 3s ease-in-out infinite;
        overflow: hidden;
    }

    .calendar-preview {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }
}
/*
  ------------------------------------------------------------
  Shop page additions (inlined from shop.php)
  Keep base navbar behaviour from shop_style.css.
  ------------------------------------------------------------
*/

:root {
  --surface-soft: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 20px 70px rgba(10, 10, 10, 0.08);
  --max: 1120px;
}

@media (min-width: 1200px) {
  :root { --max: 1280px; }
}

@media (min-width: 1400px) {
  :root { --max: 1360px; }
}

.shop-shell { max-width: var(--max); }
.shop-main { padding: calc(1.25rem + var(--nav-height)) 0 3rem; }
body.nav-not-fixed .shop-main { padding: 1.25rem 0 3rem; }

.shop-kicker { letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; font-size: 0.78rem; color: rgba(8, 32, 80, 0.72); }
.shop-title { font-size: clamp(1.9rem, 3.3vw, 3rem); font-weight: 650; letter-spacing: 0.01em; line-height: 1.1; }
.shop-title-logo { height: clamp(48px, 5.75vw, 78px); width: auto; display: block; }
.shop-price { font-size: 1.6rem; font-weight: 800; color: var(--secondary-color); }

.shop-glass { background: rgba(255,255,255,0.90); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(10, 10, 10, 0.06); }
.shop-muted { color: var(--text-light); }

.btn-jcal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  box-shadow: 0 16px 45px rgba(113, 157, 245, 0.28);
  transition: transform 160ms ease, filter 160ms ease;
}
.btn-jcal:hover { transform: translateY(-1px); filter: brightness(1.03); color: #fff; }

.btn-jcal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 32, 80, 0.22);
  color: var(--secondary-color);
  transition: transform 160ms ease, background 160ms ease;
}
.btn-jcal-outline:hover { transform: translateY(-1px); background: #fff; color: var(--secondary-color); }

/*
    ------------------------------------------------------------
    Cart page additions (inlined from cart.php)
    Scoped to body.cart-page to avoid affecting other pages.
    ------------------------------------------------------------
*/

body.cart-page {
    --surface-soft: #f7fafc;
    background: var(--surface-soft);
    color: var(--text-dark);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    overflow-x: hidden;
}

body.cart-page .cart-main { padding: calc(1.25rem + var(--nav-height)) 0 3rem; }
body.cart-page.nav-not-fixed .cart-main { padding: 1.25rem 0 3rem; }
body.cart-page .cart-shell { max-width: 1100px; }
body.cart-page .cart-glass { background: rgba(255,255,255,0.90); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(10, 10, 10, 0.06); }
body.cart-page .cart-muted { color: var(--text-light); }
body.cart-page .item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
body.cart-page .qty-input { max-width: 88px; }

/* Cart button sizing: keep a slightly tighter fit than shop */
body.cart-page .btn-jcal {
    padding: 0.55rem 0.9rem;
    box-shadow: 0 14px 35px rgba(113, 157, 245, 0.24);
}

body.cart-page .btn-jcal:hover { transform: none; filter: brightness(1.03); color: #fff; }
body.cart-page .btn-jcal-outline { padding: 0.55rem 0.9rem; transition: background 160ms ease; }
body.cart-page .btn-jcal-outline:hover { transform: none; background: #fff; color: var(--secondary-color); }

body.cart-page .table thead th { color: var(--text-light); font-weight: 700; }

.shop-media { display: block; }
.shop-gallery-mobile { display: none; }
.shop-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-gallery-tile {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
}
.shop-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 991.98px) {
  .shop-gallery-mobile { display: block; }
  .shop-gallery-grid { display: none; }
}

.shop-gallery-mobile-main {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.shop-gallery-mobile-main img { display: block; width: 100%; height: 100%; object-fit: cover; }

.shop-gallery-mobile-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-gallery-mobile-thumbs::-webkit-scrollbar { height: 0; }

.shop-gallery-mobile-thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.06);
}
.shop-gallery-mobile-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-gallery-mobile-thumb.is-active { border-color: rgba(8, 32, 80, 0.55); box-shadow: 0 14px 34px rgba(113, 157, 245, 0.18); }

@media (max-width: 420px) {
  .shop-gallery-mobile-thumb { width: 64px; height: 64px; }
}

.shop-lightbox .modal-content { background: transparent; border: 0; box-shadow: none; }
.shop-lightbox .modal-body { padding: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.shop-lightbox-img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #0b1220;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}

.shop-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 160ms ease, transform 160ms ease;
  z-index: 1;
}
.shop-lightbox-nav:hover { background: rgba(15, 23, 42, 0.60); }
.shop-lightbox-nav:active { transform: translateY(-50%) scale(0.98); }
.shop-lightbox-prev { left: 12px; }
.shop-lightbox-next { right: 12px; }
.shop-lightbox-nav i { font-size: 1.25rem; line-height: 1; }

.shop-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.shop-sticky-buy { position: relative; top: auto; }

@media (min-width: 992px) {
  .shop-media {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    max-height: calc(100vh - var(--nav-height) - 1rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding-right: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .shop-media::-webkit-scrollbar { display: none; }
  .shop-sticky-buy { position: sticky; top: calc(var(--nav-height) + 1rem); }
}

.shop-feature li { margin-bottom: 0.55rem; }

.shop-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.85rem;
  color: var(--text-light);
}

.shop-trust-card {
  margin-top: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(8, 32, 80, 0.14);
  background: rgba(8, 32, 80, 0.03);
}

.shop-trust-item { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }

.shop-plan-list { margin: 0.9rem 0 0; padding-left: 1.1rem; color: var(--text-light); font-size: 0.95rem; line-height: 1.55; }
.shop-plan-title { margin: 1rem 0 0.35rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary-color); font-size: 0.85rem; }
.shop-plan-list li { margin-bottom: 0.55rem; }
.shop-plan-list li:last-child { margin-bottom: 0; }
.shop-plan-list strong { color: var(--text-dark); }
.shop-plan-list .plan-note { margin-top: 0.15rem; font-size: 0.9em; }

.shop-trust-icon { font-size: 0.95rem; line-height: 1; }

.shop-info-accordion { --line: rgba(8, 32, 80, 0.18); }
.shop-info-accordion .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.shop-info-accordion .accordion-item:first-child { border-top: 1px solid var(--line); }
.shop-info-accordion .accordion-button {
  background: transparent;
  box-shadow: none;
  padding: 16px 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.92rem;
  color: var(--secondary-color);
}
.shop-info-accordion .accordion-button:focus { box-shadow: none; }
.shop-info-accordion .accordion-button::after {
  background-image: none;
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--secondary-color);
  font-weight: 900;
  transform: none;
}
.shop-info-accordion .accordion-button:not(.collapsed)::after { content: '–'; }
.shop-info-accordion .accordion-body { padding: 0 0 16px 0; color: var(--text-light); }

.shop-info-band {
  background: rgba(255, 255, 255, 0.90);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.04);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.shop-info-inner { padding: 1.25rem 1.5rem; }

@media (max-width: 576px) {
  .shop-info-inner { padding: 1.1rem 1.1rem; }
}

.shop-lifestyle-band {
  margin-top: 2.25rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, rgba(8, 32, 80, 0.03), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(8, 32, 80, 0.08);
}

.shop-lifestyle-inner { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1.25rem; }

@media (max-width: 576px) {
  .shop-lifestyle-inner { padding: 1.1rem 1.1rem; }
}

.shop-lifestyle-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 55px rgba(10, 10, 10, 0.06);
  overflow: hidden;
}

.shop-lifestyle-head { padding: 1.1rem 1.25rem 0.95rem; }
.shop-lifestyle-title { margin: 0; font-weight: 950; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--secondary-color); }
.shop-lifestyle-caption { margin: 0.35rem 0 0; color: var(--text-light); font-weight: 600; }

.shop-lifestyle-media { width: 100%; }
.shop-lifestyle-media img { width: 100%; height: clamp(260px, 40vw, 520px); object-fit: cover; display: block; }

.shop-reviews { margin-top: 2.25rem; }
.shop-reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.shop-reviews-title { font-weight: 900; font-size: 1.35rem; margin: 0; color: var(--secondary-color); }
.shop-reviews-sub { margin: 0.25rem 0 0; color: var(--text-light); }

.shop-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 32, 80, 0.14);
  background: rgba(8, 32, 80, 0.03);
  font-weight: 800;
  color: var(--text-dark);
}

.review-stars { color: #f59e0b; letter-spacing: 0.08em; }
.review-count { color: var(--text-light); font-weight: 700; font-size: 0.95rem; }

.shop-review-grid { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .shop-review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.shop-review-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 14px 45px rgba(10, 10, 10, 0.06);
  padding: 1.1rem 1.1rem;
  height: 100%;
}

.shop-review-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

.shop-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  flex: 0 0 auto;
}

.shop-review-name { margin: 0; font-weight: 900; color: var(--text-dark); font-size: 1rem; }
.shop-review-meta { margin: 0.1rem 0 0; color: var(--text-light); font-size: 0.9rem; }
.shop-review-quote { margin: 0.85rem 0 0; color: var(--text-dark); line-height: 1.6; }
