/* Extracted inline page styles */

/* hide 3D control panel */
.dg,
.dg.ac,
.lil-gui {
    display: none !important;
}

/* blog grid section background etc. (from index.html) */
:root {
    --Saniklear-yellow: #fee023;
    --Saniklear-green: #4caf50;
    --Saniklear-blue: #01244a;
    --Saniklear-white: #ffffff;
    --Saniklear-blue-deep: #00142e;
}

.blog-grid {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: radial-gradient(circle at top,
            #06427d 0%,
            var(--Saniklear-blue) 45%,
            var(--Saniklear-blue-deep) 100%);
    padding-top: 70px;
    padding-bottom: 70px;
}

/* (additional blog grid rules should be added here as needed) */

/* shop product cards (from shop.html) */
.product-item {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-item .product__img {
    position: relative;
    overflow: hidden;
}

.product-item .product__img img {
    width: 100%;
    transition: transform 0.35s ease;
}

.product-item:hover .product__img img {
    transform: scale(1.05);
}

.product-item .product__action {
    position: static;
    width: 100%;
}

.product-item .product__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0;
    overflow: hidden;
}

/* ...continue copying any remainder of inline rules from shop.html... */

/* login page background-glow (from login.html) */
:root {
    --blue-dark: #021C3F;
    --blue-light: #004C93;
    --green-accent: #20D68F;
    --yellow-accent: #FFD84D;
    --white: #ffffff;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Fira Sans', sans-serif;
}

.auth-page-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    overflow: hidden;
}

.auth-page-wrapper::before,
.auth-page-wrapper::after {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.25;
    z-index: 0;
}

.auth-page-wrapper::before {
    background: var(--yellow-accent);
    top: -150px;
    left: -150px;
}

.auth-page-wrapper::after {
    background: var(--green-accent);
    bottom: -150px;
    right: -150px;
}

.auth-container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 420px;
    width: 90%;
}

/* checkbox/radio customization (used on several service pages) */
.custom-checkbox .custom-control-label::before {
    border-radius: 4px;
}

.custom-control-input:checked~.custom-control-label::before {
    background-color: #2983fd;
    border-color: #2983fd;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M6.173 12.252L2.4 8.48l1.414-1.414 2.359 2.358 5.014-5.013 1.414 1.414z'/%3e%3c/svg%3e");
    background-size: 12px 12px;
}

.contact-panel__form .custom-radio .custom-control-label::before {
    border-radius: 4px;
}

.contact-panel__form .custom-radio .custom-control-input:checked~.custom-control-label::before {
    background-color: #2983fd;
    border-color: #2983fd;
}

.contact-panel__form .custom-radio .custom-control-input:checked~.custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M6.173 12.252L2.4 8.48l1.414-1.414 2.359 2.358 5.014-5.013 1.414 1.414z'/%3e%3c/svg%3e");
    background-size: 12px 12px;
    background-position: center;
}

/* (extra rules from other pages can be appended here) */

/* styles extracted from index.html */
/* Yellow/green corner lines */
.blog-grid::before,
.blog-grid::after {
    content: "";
    position: absolute;
    border-radius: 32px;
    pointer-events: none;
    z-index: 0;
}

.blog-grid::before {
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-top: 2px solid rgba(254, 224, 35, 0.9);
    /* yellow */
    border-left: 2px solid rgba(76, 175, 80, 0.8);
    /* green */
}

.blog-grid::after {
    right: 0;
    bottom: 0;
    width: 120px;
    height: 120px;
    border-bottom: 2px solid rgba(254, 224, 35, 0.9);
    border-right: 2px solid rgba(76, 175, 80, 0.8);
}

/* Ensure content sits above corner accents */
.blog-grid .container,
.blog-grid .heading,
.blog-grid .row {
    position: relative;
    z-index: 1;
}

/* === Heading styling inside blog-grid only === */
.blog-grid .heading__subtitle {
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.blog-grid .heading__title {
    color: var(--Saniklear-white);
    font-size: 2rem;
    font-weight: 700;
}

/* Accent line under heading */
.blog-grid .heading::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg,
            var(--Saniklear-yellow),
            var(--Saniklear-green));
    opacity: 0.9;
}

/* === Core blog cards === */
.blog-grid .post-item {
    background: linear-gradient(145deg,
            rgba(1, 36, 74, 0.96),
            rgba(0, 20, 46, 0.98));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

/* Subtle glowing gradient bar at bottom edge */
.blog-grid .post-item::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            var(--Saniklear-yellow),
            var(--Saniklear-green));
    opacity: 0;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    transform: translateY(6px);
}

.blog-grid .post-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(254, 224, 35, 0.35);
    border-color: rgba(254, 224, 35, 0.4);
    background: linear-gradient(145deg,
            rgba(1, 36, 74, 1),
            rgba(0, 31, 72, 1));
}

.blog-grid .post-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* === Image area === */
.blog-grid .post__img {
    position: relative;
    overflow: hidden;
}

.blog-grid .post__img img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.blog-grid .post-item:hover .post__img img {
    transform: scale(1.07);
}

.blog-grid .post__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25),
            transparent 40%);
    pointer-events: none;
}

/* === Card body === */
.blog-grid .post__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta row */
.blog-grid .post__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.blog-grid .post__meta-cat a {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 4px;
    margin-bottom: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    font-weight: 600;
}

.blog-grid .post__meta-cat.has-category-highlight a:first-child {
    background: rgba(254, 224, 35, 0.18);
    color: var(--Saniklear-yellow);
}

.blog-grid .post__meta-date {
    /* date block matches category ribbon color */
    color: #062a59;
    /* dark blue number */
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    background: #2983fd;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Title + author */
.blog-grid .post__title {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 6px;
    color: var(--Saniklear-white);
    font-weight: 600;
}

.blog-grid .post__title a {
    color: inherit;
    text-decoration: none;
}

.blog-grid .post__title a:hover {
    color: var(--Saniklear-yellow);
}

.blog-grid .post__meta-author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.blog-grid .post__meta-author a {
    color: rgba(254, 224, 35, 0.9);
}

.blog-grid .post__meta-author a:hover {
    color: var(--Saniklear-green);
}

/* Description text */
.blog-grid .post__desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 16px;
}

/* Keep Read More buttons aligned across cards */
.blog-grid .post__body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* === "Read more" button – independent hover animation === */
.blog-grid .post__body .btn__link {
    margin-top: auto;
    padding-left: 0;
    padding-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    border-radius: 999px;
}

/* gradient pill that animates on button hover only */
.blog-grid .post__body .btn__link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg,
            var(--Saniklear-yellow),
            var(--Saniklear-green));
    transform: scaleX(0);
    transform-origin: left center;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
    opacity: 0;
}

.blog-grid .post__body .btn__link span,
.blog-grid .post__body .btn__link i {
    position: relative;
    z-index: 1;
}

.blog-grid .post__body .btn__link span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.blog-grid .post__body .btn__link i {
    font-size: 0.9rem;
    color: var(--Saniklear-yellow);
    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.blog-grid .post__body .btn__link:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.blog-grid .post__body .btn__link:hover span {
    color: var(--Saniklear-blue);
}

.blog-grid .post__body .btn__link:hover i {
    transform: translateX(4px);
    color: var(--Saniklear-blue);
}

/* === Responsive tweaks === */
@media (max-width: 991.98px) {
    .blog-grid {
        padding-top: 55px;
        padding-bottom: 55px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .blog-grid .post__body {
        padding: 16px 16px 18px;
    }
}

@media (max-width: 575.98px) {
    .blog-grid .heading__title {
        font-size: 1.6rem;
    }

    .blog-grid .post__title {
        font-size: 1rem;
    }
}

/* === Bounce Animation for Icons === */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-8px) scale(1.1);
    }

    50% {
        transform: translateY(0) scale(1);
    }

    75% {
        transform: translateY(-4px) scale(1.05);
    }
}

div#topbarProfileMenu {
    left: 1665px !important;
}

button#topbarProfileDropdown {
    margin-right: unset !important;
}

/* styles extracted from login.html */
/* === Logo + title styles (Massive size preserved) === */
.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.auth-logo img {
    /* ADJUSTED SIZE: Reduced to 150px for a more balanced, centered look */
    height: 150px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.auth-logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--yellow-accent);
    letter-spacing: 1px;
}

/* === END Logo styles === */

/* Welcome heading */
.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.auth-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Glass login card */
.contact-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    padding: 40px 35px;
    color: var(--white);
    text-align: left;
}

.form-group label {
    color: var(--white);
    font-weight: 500;
}

.form-control {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    height: 50px;
    color: #0a1a3f;
    font-weight: 500;
}

.form-control::placeholder {
    color: #7c8590;
}

/* Keep existing button styles */
.btn__primary {
    margin-top: 5px;
}

/* Links */
.contact-panel a {
    color: var(--yellow-accent);
    font-weight: 600;
}

.contact-panel a:hover {
    color: var(--green-accent);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        max-width: 95%;
    }

    .contact-panel {
        padding: 30px 25px;
        margin-top: 8rem;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    /* Mobile Positioning Adjustment for Back Button */
    .btn-back.top-left-fixed {
        top: 15px;
        left: 15px;
    }

    /* Mobile logo size adjustment (Reduced to 100px) */
    .auth-logo img {
        height: 100px;
    }
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 130px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fee023;
    cursor: pointer;
    transition: all 0.12s ease-out !important;
    margin-bottom: 14px;
}

.btn-back:hover {
    border-color: #fee023;
    box-shadow: 0 0 10px rgba(254, 224, 35, 0.45);
    transform: translateY(-2px);
}

/* === Positioning for Top-Left Corner (New Style) === */
.btn-back.top-left-fixed {
    position: absolute;
    top: 30px;
    left: 30px;
    margin-bottom: 0;
    z-index: 100;
}

/* Sparkle base style */
.sparkle {
    position: absolute;
    background: radial-gradient(circle, #fee023 30%, rgba(254, 224, 35, 0.2) 80%);
    border-radius: 50%;
    pointer-events: none;
    filter: drop-shadow(0 0 6px #fee023);
    opacity: 1;
    transform-origin: center;
    animation: sparkleFade 0.8s ease-out forwards;
    z-index: 9999;
}

@keyframes sparkleFade {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.3);
        opacity: 0;
    }
}

.shine-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

/* Star shape using clip-path (five-pointed star) */
.shine-star {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #f5e16e;
    /* yellow */
    clip-path: polygon(50% 0%,
            61% 35%,
            98% 35%,
            68% 57%,
            79% 91%,
            50% 70%,
            21% 91%,
            32% 57%,
            2% 35%,
            39% 35%);
    filter: drop-shadow(0 0 6px #fee023);
    opacity: 0.9;
    animation: starBlink 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes starBlink {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }

    40% {
        transform: scale(1.4) rotate(15deg);
        opacity: 0;
    }

    60% {
        transform: scale(0.8) rotate(-15deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }
}

.product-item .product__footer .bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.25;
}

.product-item .product__footer .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px);
    transform: scale(1.15);
}

.product-item .product__footer .package__price {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item .product__footer .package__currency {
    font-size: 18px;
}

.product-item .product__footer .package__amount {
    font-size: 26px;
}

.product-item .product__footer .package__actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* center content; single button will be centered/full width */
    pointer-events: none;
    z-index: 2;
}

.product-item .product__footer .package__actions .btn {
    flex: 1 1 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    border-radius: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    /* Make transform + opacity animate together, same speed */
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
    height: 100%;
    opacity: 0;
    /* Hint to browser to prepare this for animation (reduces tiny delays) */
    will-change: transform, opacity;
}


.product-item .product__footer .package__actions .btn i,
.product-item .product__footer .package__actions .btn span {
    pointer-events: none;
}

.product-item .product__footer .package__actions .btn-add-cart {
    background-color: #fee023 !important;
    color: #063464 !important;
    transform: translateX(-100%);
    border-radius: 8px;
    border: 1px solid #063464 !important;
}

.product-item .product__footer .package__actions .btn-details {
    background-color: #fee023 !important;
    color: #063464 !important;
    transform: translateX(100%);
    border-radius: 8px;
    border: 1px solid #063464 !important;
}

/* When there's only a single action button (like "Check It Now"),
   let it span the full yellow bar */
.product-item .product__footer .package__actions .btn-details:only-child {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

.product-item .product__footer .package__actions .btn:hover {
    background-color: #2983fd !important;
    color: #ffffff !important;
}

.product-item:hover .product__footer .package__price {
    opacity: 0;
    transform: scale(0.9);
}

.product-item:hover .product__footer .package__actions {
    pointer-events: auto;
}

.product-item:hover .product__footer .btn-add-cart,
.product-item:hover .product__footer .btn-details {
    transform: translateX(0);
    opacity: 1;
}

.product-item .product__info {
    padding: 22px 18px 28px;
}

/* Ensure product cards are equal height so footers align
   Make the column containers flex so .product-item can stretch
   and push the footer to the bottom using margin-top:auto. */
#productGrid>[class*="col-"] {
    display: flex;
}

.product-item {
    flex: 1 1 auto;
}

.product-item .product__action {
    margin-top: auto;
}

.product-item .product__info .product__title {
    margin-bottom: 0;
}

.product-item .product__info .product__title a {
    color: #063464;
}

.product-item .product__info .product__title a:hover {
    color: #2983fd;
}

.cart-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    min-width: 220px;
    padding: 12px 18px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-toast.is-success {
    background-color: #1db954;
}

.cart-toast.is-error {
    background-color: #d9534f;
}

/* Lightweight modal for product details */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .55);
    display: none;
    pointer-events: none
}

.modal-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto
}

.modal-dialog {
    position: relative;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 10
}

.modal-frame {
    border: 0;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto
}

/* Allow scrolling inside iframe container on wheel/touch */
.modal-dialog:has(.modal-frame) {
    overflow: auto
}

body.product-details-modal-open .footer,
body.product-details-modal-open #scrollTopBtn {
    display: none !important
}

/* --- 1. Search & Sort Bar Styling --- */
.sorting-options {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Unified style for both Select and Input */
.sorting-control-style {
    height: 50px;
    /* Consistent Height */
    width: 240px;
    /* Consistent Width */
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.sorting-control-style:focus {
    border-color: #007bff;
    /* Change to your primary color */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* --- 2. Widget Improvements --- */
.widget {
    background: #fff;
    padding: 20px;
    /* Reduced padding slightly to give content more room */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    /* Ensures padding doesn't expand width */
}

.widget__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    white-space: normal;
    /* Allows text to wrap if column is narrow */
}

.widget__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

/* Categories */
.cat-link {
    display: block;
    padding: 12px 0;
    color: #555;
    border-bottom: 1px dashed #eee;
    transition: 0.3s;
    position: relative;
}

.cat-link:hover,
.cat-link.active {
    color: #007bff;
    padding-left: 8px;
    /* Sliding animation */
    font-weight: 600;
}

/* Tags (Pill Design) */
.widget-tags .list-unstyled {
    display: flex;
    flex-wrap: wrap;
    /* Critical: Forces tags to wrap to next line */
    gap: 8px;
}

.tag-link {
    display: inline-block;
    background: #f1f5f9;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tag-link:hover,
.tag-link.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    text-decoration: none;
}

/* Pricing Filter Button */
#rangeSlider {
    height: 6px;
    background: #e6e6e6;
    border: none;
    border-radius: 3px;
    margin: 25px 10px 20px 5px;
    /* Add spacing so handles don't get cut off */
    position: relative;
}

/* The colored bar between handles */
#rangeSlider .ui-slider-range {
    background: #007bff;
    border-radius: 3px;
}

/* The drag handles (rounded pill) */
#rangeSlider .ui-slider-handle {
    width: 26px;
    height: 12px;
    background: #ffffff;
    border: 2px solid #007bff;
    border-radius: 8px;
    /* rounded pill */
    top: 50%;
    /* center vertically with translate */
    margin-left: 0;
    /* let translate center horizontally */
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.12s, background-color 0.12s, box-shadow 0.12s;
    transform: translate(-50%, -50%);
    /* keeps handle centered and prevents jump */
    box-sizing: border-box;
    /* keep border inside size to avoid shifts */
}

#rangeSlider .ui-slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: #007bff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Make the visible price range more prominent */
#rangeSliderResult {
    border: 0 !important;
    color: #003366 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    background: transparent !important;
    text-align: left;
}

/* Hide default jQuery UI ugliness */
.ui-widget-content {
    border: none !important;
}

/* === Modal "View Cart" footer button (Saniklear palette) === */
.modal-cart-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
}

#modalViewCartBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #01244a;
    background-color: #fee023;
    /* Saniklear yellow */
    color: #01244a;
    /* Saniklear dark blue text */
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-transform: none;
}

#modalViewCartBtn i {
    font-size: 14px;
}

#modalViewCartBtn:hover {
    background-color: #4CAF50;
    /* Saniklear green on hover */
    color: #ffffff;
    /* white text on hover */
    border-color: #4CAF50;
}

/* Disabled state when cart is empty */
#modalViewCartBtn.is-disabled,
#modalViewCartBtn:disabled {
    background-color: #d1d5db;
    color: #6b7280;
    border-color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

