/* =======================================================
   ShinyCards – unified CSS
   Dark/Purple theme is scoped by .theme-purple
   (Put .theme-purple on <body> in base.html)
   ======================================================= */


/* --------------------------------------
   LIGHT / GENERIC STYLES (existing)
   These keep working in light mode; the
   .theme-purple overrides above take precedence.
   -------------------------------------- */

/* === Page layout === */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Only use the light grey when theme-purple is NOT active */
body:not(.theme-purple) {
    background-color: #f0f2f5;
}

main {
    flex-grow: 1;
}

/* Auth */
.auth-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    font-weight: 500;
    margin-bottom: .3rem;
    display: block;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 400px;
}

.auth-form input {
    width: 100%;
    padding: .5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Footer (light) */


/* Fades */
.fade-carousel {
    position: relative;
}

.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, #dde0ff 0%, transparent 100%);
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, #dde0ff 0%, transparent 100%);
}

/* === Card Styles === */
.card-hover {
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    z-index: 10;
}

.card-fixed {
    max-width: 260px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
}

/* Wishlist btn (light) */
.wishlist-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: background .2s ease;
    position: relative;
    z-index: 15;
}

.wishlist-btn:hover {
    background: #ffecec;
}

/* Hover overlay (light) */
.hover-overlay {
    opacity: 0;
    transition: opacity .3s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
    color: white;
    padding: .8rem 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 5;
}

.card-hover:hover .hover-overlay {
    opacity: 1;
    pointer-events: auto;
}

.hover-overlay form,
.hover-overlay button {
    pointer-events: auto;
    z-index: 20;
}

/* stars */
.rating-stars {
    position: relative;
    display: flex;
    gap: 2px;
    cursor: pointer;
    z-index: 5;
    margin-top: .3rem;
    pointer-events: auto !important;
}

.rating-stars .star {
    font-size: 20px;
    color: #f1c40f;
    transition: transform .2s ease;
    pointer-events: auto;
    z-index: 5;
}

.rating-stars .star:hover {
    transform: scale(1.2);
}

.star {
    cursor: pointer;
    font-size: 1.2rem;
    color: gold;
}

/* images */
.card-img-top {
    display: block;
    width: 100%;
    border-radius: 12px 12px 0 0;
}

/* Browse grid/cards */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.browse-card-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 10px;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, height .3s ease;
    align-self: start;
    min-height: auto;
    pointer-events: auto !important;
}

.browse-card-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transform: scale(1.02);
}

.carousel-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel-cards .card {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.browse-card-img {
    flex: 0 0 130px;
}

.browse-card-img img {
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
}

.browse-card-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.add-to-cart-form {
    opacity: 0;
    height: 0;
    visibility: hidden;
    transition: opacity .3s ease, height .3s ease, margin-top .3s ease;
}

.browse-card-container:hover .add-to-cart-form {
    opacity: 1;
    visibility: visible;
    height: auto;
    margin-top: .5rem;
}

/* Image modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .85);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 0 25px #000;
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1100;
}

.image-modal-close:hover {
    color: #bbb;
}

/* Carousel track */
.card-carousel {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    overflow-x: hidden;
    position: relative;
}

@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-2%);
    }
}

.card-track {
    display: flex;
    gap: 1rem;
    animation: scroll-loop 30s linear infinite;
}

.card-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    padding: .5rem;
    text-align: center;
}


/* Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");


/* Headings / links (readable on light) */
body.theme-purple h1,
body.theme-purple h2,
body.theme-purple h3,
body.theme-purple .section-title {
    color: var(--text-900);
    font-weight: 700;
}

body.theme-purple a {
    color: var(--primary-500);
}

body.theme-purple a:hover {
    color: var(--primary-400);
    text-decoration: none;
}

body.theme-purple .text-muted {
    color: var(--muted) !important;
}

body.theme-purple ::placeholder {
    color: #a39dd0;
    opacity: 1;
}


/* =======================================================
   CARDS (home carousels & browse grid)
   ======================================================= */
body.theme-purple .card-hover,
body.theme-purple .card-item,
body.theme-purple .browse-card-container,
body.theme-purple .auth-box {
    background: #ffffff;
    border: 1px solid #e7e8f2;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 22px rgba(17, 12, 46, .06);
    color: var(--text-900);
}

body.theme-purple .card-hover:hover,
body.theme-purple .card-item:hover,
body.theme-purple .browse-card-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 12, 46, .10);
}

body.theme-purple .card-img-top,
body.theme-purple .browse-card-img img,
body.theme-purple .card-item img {
    border-radius: 12px;
}

/* Wishlist + rating color */
body.theme-purple .wishlist-btn {
    background: #fff;
    border: 1px solid #e7e8f2;
    color: var(--text-900);
}

body.theme-purple .rating-stars .star {
    color: #ffd166;
}

/* subtle fades for the home carousel */
body.theme-purple .fade-left {
    background: linear-gradient(to right, #dde0ff 0%, transparent 100%);
}

body.theme-purple .fade-right {
    background: linear-gradient(to left, #dde0ff 0%, transparent 100%);
}

/* =======================================================
   BUTTONS / BADGES
   ======================================================= */
body.theme-purple .btn-primary,
body.theme-purple .btn-dark {
    background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
    border: 1px solid rgba(123, 92, 255, .35);
    color: #fff;
    box-shadow: 0 10px 22px rgba(123, 92, 255, .35);
}

body.theme-purple .btn-primary:hover,
body.theme-purple .btn-dark:hover {
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    box-shadow: 0 12px 26px rgba(123, 92, 255, .45);
}

body.theme-purple .btn-outline-primary {
    border-color: var(--primary-500);
    color: var(--primary-500);
}

body.theme-purple .btn-outline-primary:hover {
    background: var(--primary-500);
    color: #fff;
}

body.theme-purple .badge.bg-warning {
    color: #2b254f;
    background-color: #ffd166 !important;
}

body.theme-purple .badge.bg-success {
    background-color: #3ddc97 !important;
}

/* =======================================================
   TABLES
   ======================================================= */
body.theme-purple .table {
    color: var(--text-900);
}

body.theme-purple .table thead th {
    border-bottom-color: #ececf6;
}

body.theme-purple .table tbody tr {
    border-color: #ececf6;
}

/* =======================================================
   FORMS (profile / edit / address / contact)
   ======================================================= */
body.theme-purple .form-control,
body.theme-purple .form-select,
body.theme-purple textarea {
    background: #fff;
    border: 1px solid #dde0f0;
    color: var(--text-900);
    border-radius: 10px;
}

body.theme-purple .form-control:focus,
body.theme-purple .form-select:focus,
body.theme-purple textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 0.2rem rgba(123, 92, 255, .2);
}




html {
    height: 100%;

}

body {
    display: flex;
    flex-direction: column;
    height: 100%;


}

main {

    flex: 1 0 auto;

    margin-bottom: 120px;

}

/* =======================================================
   FOOTER
   ======================================================= */
body.theme-purple footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, #7d68f4 0%, #6a55eb 100%);
    /* purple stripe */
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding: 12px 0;
    position: relative;
    z-index: 1;
    /* keep above any backgrounds */
    min-height: 5vh;



}

.site-footer .footer-link {
    color: #fff;
    text-decoration: none;
}

.site-footer .footer-link:hover {
    text-decoration: underline;
}




/* =======================================================
   LAYOUT HELPERS & LEGACY PIECES (kept from your file)
   ======================================================= */

/* general page structure */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

main {
    flex: 1 0 auto;
}

/* search sizes */
.search-form,
.search-form-mobile {
    position: relative;
}

.search-form .form-control,
.search-form-mobile .form-control {
    width: 200px;
    padding: .45rem 2.5rem .45rem 1rem;
    border-radius: 50px;
    transition: width .3s ease;
}

.search-form .form-control:focus,
.search-form-mobile .form-control:focus {
    width: 260px;
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: inherit;
}

/* browse grid */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.browse-card-container {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    position: relative;
    align-self: start;
}

.browse-card-img {
    flex: 0 0 130px;
}

.browse-card-img img {
    max-height: 350px;
    object-fit: contain;
}

.browse-card-details {
    display: flex;
    flex-direction: column;
}

/* modal image viewer */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    inset: 0;
    background: rgba(0, 0, 0, .85);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 0 25px #000;
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
}

/* small screens */
@media (max-width: 768px) {
    .browse-grid {
        grid-template-columns: 1fr;
    }

    .search-form .form-control {
        width: 100%;
    }
}


/* ======================================================
   ShinyCards — Purple Theme
   (scoped via body.theme-purple)
   ====================================================== */

/* ---------- Theme variables (slightly lighter purple) ---------- */
:root {
    --sc-bg: hsl(233, 100%, 93%);
    --sc-text: #1f2230;
    --sc-text-muted: #7b7f97;

    --sc-surface-700: #2b2461;
    /* lighter */
    --sc-surface-600: #3a317b;
    /* lighter */
    --sc-primary-600: #6a55eb;
    --sc-primary-500: #7d68f4;
    /* main */
    --sc-primary-400: #9987fb;
    --sc-accent: #00d1ff;

    --sc-border: rgba(15, 10, 35, .08);
    --sc-shadow: 0 14px 36px rgba(15, 10, 35, .24);

    --sc-radius-xl: 22px;
    --sc-radius-lg: 16px;
    --sc-radius-md: 12px;
}

/* ---------- Base (content stays dark on light bg) ---------- */


body.theme-purple h1,
body.theme-purple h2,
body.theme-purple h3,
body.theme-purple h4,
body.theme-purple h5,
body.theme-purple h6 {
    color: var(--sc-text);
}

body.theme-purple a {
    color: var(--sc-primary-500);
}

body.theme-purple a:hover {
    color: var(--sc-primary-400);
    text-decoration: none;
}


/* ======================================================
   CARDS (home carousel + browse list)
   ====================================================== */

.card-item,
.card-hover,
.browse-card-container,
.auth-box {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    color: var(--sc-text);
    box-shadow: 0 10px 24px rgba(15, 10, 35, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card-item:hover,
.card-hover:hover,
.browse-card-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 10, 35, .14);
}

.card-img-top,
.browse-card-img img,
.card-item img {
    border-radius: 12px;
}

/* rating color */
.rating-stars .star {
    color: #ffd166;
}

/* fade masks over light background */
.fade-left {
    background: linear-gradient(to right, var(--sc-bg) 0%, transparent 100%);
}

.fade-right {
    background: linear-gradient(to left, var(--sc-bg) 0%, transparent 100%);
}

/* “Add to cart” reveal on hover in browse cards */
.add-to-cart-form {
    opacity: 0;
    height: 0;
    visibility: hidden;
    transition: .25s;
}

.browse-card-container:hover .add-to-cart-form {
    opacity: 1;
    height: auto;
    visibility: visible;
    margin-top: .5rem;
}

/* grid for browse page */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.browse-card-img {
    flex: 0 0 130px;
}

.browse-card-img img {
    max-height: 350px;
    object-fit: contain;
}

/* wishlist heart */
.wishlist-btn {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    line-height: 34px;
}

/* ======================================================
   FORMS / TABLES (ensure dark text on light surfaces)
   ====================================================== */

body.theme-purple .form-control,
body.theme-purple .form-select,
body.theme-purple textarea {
    background: #fff;
    color: var(--sc-text);
    border: 1px solid #e7e8f1;
}

body.theme-purple .form-control::placeholder {
    color: var(--sc-text-muted);
}

body.theme-purple .form-control:focus,
body.theme-purple .form-select:focus,
body.theme-purple textarea:focus {
    outline: none;
    border-color: var(--sc-primary-500);
    box-shadow: 0 0 0 .22rem rgba(125, 104, 244, .25);
}

body.theme-purple .table {
    color: var(--sc-text);
}

body.theme-purple .table thead th {
    border-bottom-color: #ececf5;
}

body.theme-purple .table tbody tr {
    border-color: #ececf5;
}

/* ======================================================
   BUTTONS / BADGES (purple accents)
   ====================================================== */

.btn-primary,
.btn-dark {
    background: linear-gradient(90deg, var(--sc-primary-600), var(--sc-primary-500));
    border: 1px solid rgba(0, 0, 0, .05);
    color: #fff;
    box-shadow: 0 10px 22px rgba(125, 104, 244, .35);
}

.btn-primary:hover,
.btn-dark:hover {
    background: linear-gradient(90deg, var(--sc-primary-500), var(--sc-primary-400));
    box-shadow: 0 12px 26px rgba(125, 104, 244, .45);
}

.badge.bg-warning {
    color: #2b254f;
    background-color: #ffd166 !important;
}

.badge.bg-success {
    background-color: #3ddc97 !important;
}




/* ======================================================
   HOME: banner carousel corner rounding
   ====================================================== */
#homepageBannerCarousel .carousel-inner {
    border-radius: 1.25rem;
    overflow: hidden;
}

/* ======================================================
   Small helpers / responsiveness
   ====================================================== */
.navbar-nav {
    gap: .75rem;
}

@media (max-width: 991.98px) {
    .theme-nav .search-form {
        width: 100%;
        margin-top: .5rem;
    }
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");


/* =========================
   NAVBAR – single INNER bar
   ========================= */

/* Outer <nav> stays transparent (prevents background pill) */
.theme-nav {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 1.75rem auto 0;
    position: relative;
    width: clamp(860px, 72vw, 1100px);
    padding: 0;
    /* no outer padding */

    /* let logo hang outside */
}

/* The ONLY visible bar — make it squarer with a subtle white outline */
.theme-nav>.container-fluid {
    background: linear-gradient(90deg, var(--sc-surface-700), var(--sc-surface-600));
    border-radius: 18px;
    /* squarer than pill */
    border: 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .14),
        /* thin white outline */
        var(--sc-shadow);
    padding: 12px 28px 12px 132px;
    /* room for the outside logo */
    position: relative;
    padding-left: 43px;
}

/* Brand (floats outside to the left) */
.theme-nav .navbar-brand {
    position: absolute;
    left: -130px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    line-height: 0;
    z-index: 10;
}

.theme-nav .brand-logo {
    height: 84px;
    width: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
}

/* Links & search (readable on dark bar) */
.theme-nav .nav-link,
.theme-nav .btn.btn-link,
.theme-nav .navbar-toggler {
    color: #efeaff;
    transition: .2s;
}

.theme-nav .nav-link:hover,
.theme-nav .btn.btn-link:hover {
    color: #fff;
}

.theme-nav .search-form {
    position: relative;
}

.theme-nav .search-form .form-control {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    width: 200px;
    padding: .45rem 2.5rem .45rem 1rem;
    border-radius: 50px;
    transition: width .3s;
}

.theme-nav .search-form .form-control:focus {
    width: 260px;
    outline: none;
    box-shadow: 0 0 0 .22rem rgba(153, 135, 251, .25);
    border-color: #d9d4ff;
}

.theme-nav .search-form .form-control::placeholder {
    color: #d9d4ff;
}

.theme-nav .search-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Collapsed drawer look only on mobile/tablet */
.theme-nav .navbar-collapse {
    background: linear-gradient(180deg, var(--sc-surface-700), var(--sc-surface-600));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    margin-top: 12px;
    padding: .75rem;
}

/* On desktop, collapse area is transparent (no second inner box) */
@media (min-width: 992px) {
    .theme-nav .navbar-collapse {
        background: transparent;
        border: 0;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        box-shadow: none;
    }
}

/* Responsive logo spacing */
@media (max-width: 991.98px) {
    .theme-nav>.container-fluid {
        padding-left: 132px;
    }

    .theme-nav .navbar-brand {
        left: -68px;
    }

    .theme-nav .brand-logo {
        height: 66px;
    }
}

@media (max-width: 575.98px) {
    .theme-nav>.container-fluid {
        padding-left: 98px;
    }

    .theme-nav .navbar-brand {
        left: -58px;
    }

    .theme-nav .brand-logo {
        height: 56px;
    }
}

/* Hard override – ensure <nav> itself never paints a background */
body.theme-purple .navbar.theme-nav,
.theme-nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

@media (min-width: 992px) {
    .theme-nav .search-form {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        /* neutralize mx-lg-3 from the HTML */
        z-index: 2;
    }
}

/* Mobile/tablet keeps the “drawer” style you already have */
@media (max-width: 991.98px) {
    .theme-nav .search-form {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: .5rem;
    }
}



/* Fill ALL normal buttons; keep .btn-link text-only and keep outline variants thin by default */
.btn:not(.btn-link) {
    background: linear-gradient(90deg, var(--sc-primary-600), var(--sc-primary-500));
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 10px 22px rgba(125, 104, 244, .30);
}

.btn:hover:not(.btn-link) {
    background: linear-gradient(90deg, var(--sc-primary-500), var(--sc-primary-400));
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(125, 104, 244, .45);
}

/* Outline primary still looks like an outline but fills on hover */
.btn-outline-primary {
    border-color: var(--sc-primary-500);
    color: var(--sc-primary-500) !important;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--sc-primary-500);
    color: #fff !important;
}


/* Make card shells contain their children and stay uniform */
.card-hover,
.card-item,
.browse-card-container {
    overflow: hidden;
    /* prevents overlay/image spill */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-item img,
.card-hover img,
.browse-card-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* keeps image inside card */
}

/* If a row of cards is inside a grid/row, prevent subtle jiggle/overflow */
.browse-grid {
    align-items: stretch;
}


/* ===== Make every Bootstrap-style button purple with white text ===== */
/* Keeps .btn-link as a text link so your navbar "Logout" stays a link.  */
/* The search icon button in the input is not touched (class = search-btn). */

:root {
    /* tweak these two if you want a different purple */
    --btn-purple: var(--sc-primary-600, #6a55eb);
    --btn-purple-hover: var(--sc-primary-500, #7d68f4);
}

/* Fill ALL main button variants */
button.btn,
a.btn,
input[type="submit"].btn,
input[type="button"].btn,
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark {
    background: var(--btn-purple) !important;
    border-color: var(--btn-purple) !important;
    color: #fff !important;
    text-shadow: none !important;
}

/* Outline variants become filled, too */
[class*="btn-outline-"] {
    background: var(--btn-purple) !important;
    border-color: var(--btn-purple) !important;
    color: #fff !important;
}

/* Hover / active / focus */
.btn:hover,
.btn:focus,
.btn:active,
[class*="btn-outline-"]:hover,
[class*="btn-outline-"]:focus,
[class*="btn-outline-"]:active {
    background: var(--btn-purple-hover) !important;
    border-color: var(--btn-purple-hover) !important;
    color: #fff !important;
}

/* Disabled look (still purple, just dimmed) */
.btn:disabled,
.btn.disabled {
    background: var(--btn-purple) !important;
    border-color: var(--btn-purple) !important;
    color: #fff !important;
    opacity: .65 !important;
}

/* Keep text-only buttons as links (navbar logout) */
.btn-link {
    background: transparent !important;
    border-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}



/* =====================================================
   BROWSE LIST — image left, details right (fix override)
   ===================================================== */

/* Force horizontal layout even if Bootstrap .card is present */
.browse-card-container,
.card.browse-card-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 16px;
}

/* Left column: fixed image rail */
.browse-card-img {
    flex: 0 0 180px;
    /* width of the image column */
    max-width: 180px;
}

.browse-card-img img,
.browse-card-container .card-img-top {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Right column: details stretch */
.browse-card-details {
    flex: 1 1 auto;
    min-width: 0;
    /* prevents overflow when long titles */
}

/* If template uses .card-body inside the container, neutralize it */
.browse-card-container .card-body {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Keep the “Add to cart” reveal on hover (optional) */
.add-to-cart-form {
    opacity: 0;
    height: 0;
    visibility: hidden;
    transition: .25s;
}

.browse-card-container:hover .add-to-cart-form {
    opacity: 1;
    height: auto;
    visibility: visible;
    margin-top: .5rem;
}

/* Mobile: stack image above details */
@media (max-width: 768px) {

    .browse-card-container,
    .card.browse-card-container {
        flex-direction: column !important;
        border-radius: 16px;
    }

    .browse-card-img {
        max-width: 100%;
        flex: 0 0 auto;
    }
}



/* Reserve space for the add-to-cart area so row height never changes */


/* Only reveal visually; no height change */
.browse-card-container:hover .add-to-cart-form {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Rounder corners for white boxes + clip children */
.browse-card-container,
.card-hover,
.card-item,
.auth-box {
    border-radius: 16px !important;
    /* tiny bit rounder */
    overflow: hidden;
}

/* If you also want images inside to match */
.browse-card-img img,
.card-img-top {
    border-radius: 0px;
}



/* === Home banner caption: always white & readable === */
#homepageBannerCarousel .carousel-caption,
#homepageBannerCarousel .carousel-caption * {
    color: #fff !important;
}

#homepageBannerCarousel .carousel-caption {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

/* === Navbar links: unify style & fix Logout === */
.theme-nav .nav-link,
.theme-nav .btn.btn-link.nav-link {
    /* catches the Logout button */
    color: #efeaff;
    background: transparent !important;
    /* kill purple fill */
    border: 0 !important;
    box-shadow: none !important;
    padding: .45rem .75rem;
    border-radius: 10px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
    text-decoration: none;
}

/* Hover/active/focus states (subtle lift + glow) */
.theme-nav .nav-link:hover,
.theme-nav .btn.btn-link.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.theme-nav .nav-link:focus-visible,
.theme-nav .btn.btn-link.nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(153, 135, 251, .35);
}

.theme-nav .nav-link.active {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}


/* === NAVBAR polish (font, white outline, hover) === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');

/* shorten the bar a bit (optional) */
.theme-nav {
    width: min(1120px, 92vw);
}

/* inner pill gets a white outline + subtle inner ring + deeper shadow */
.theme-nav>.container-fluid {
    border: 2px solid rgba(255, 255, 255, .92);
    box-shadow:
        0 18px 36px rgba(26, 16, 63, .25),
        /* drop */
        inset 0 0 0 3px rgba(255, 255, 255, .15);
    /* inner white ring */
}

/* nav link typography & base state (also catches Logout button form link) */
.theme-nav .nav-link,
.theme-nav .btn.btn-link.nav-link {
    font-family: "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: .2px;
    color: #efeaff;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: .55rem .9rem;
    border-radius: 10px;
    position: relative;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
    text-decoration: none;
}

/* animated underline on hover */
.theme-nav .nav-link::after,
.theme-nav .btn.btn-link.nav-link::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .35rem;
    height: 2px;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .65) 60%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease-out;
    opacity: .95;
    border-radius: 2px;
}

.theme-nav .nav-link:hover::after,
.theme-nav .btn.btn-link.nav-link:hover::after {
    transform: scaleX(1);
}

/* hover/focus lift */
.theme-nav .nav-link:hover,
.theme-nav .btn.btn-link.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.theme-nav .nav-link:focus-visible,
.theme-nav .btn.btn-link.nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .28);
}

/* make the mobile drawer border match the white outline */
.theme-nav .navbar-collapse {
    border-color: rgba(255, 255, 255, .5);
}

/* search field: slightly brighter hover/focus */
.theme-nav .search-form .form-control {
    backdrop-filter: blur(6px);
    transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.theme-nav .search-form .form-control:hover {
    background: rgba(255, 255, 255, .14);
}

.theme-nav .search-form .form-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .25), 0 10px 20px rgba(0, 0, 0, .18);
}



/* Page background that matches the navbar (soft lavender + halos) */
:root {
    /* tweak these two to nudge overall tint */
    --page-bg-1: #ECEBFF;
    /* top */
    --page-bg-2: #E4E1FF;
    /* bottom */

    /* faint halos that pick up navbar hue */
    --page-halo-1: rgba(58, 49, 123, .14);
    /* near left/top */
    --page-halo-2: rgba(58, 49, 123, .10);
    /* near right/top */
}

/* === FINAL PAGE BACKGROUND OVERRIDE === */
/* Force our background to win, even with duplicate earlier rules */




/* Optional: a tiny bit of texture so big areas don’t look flat */








/* ===== Profile tabs (Bootstrap .nav-tabs) ===== */
.theme-purple .nav-tabs {
    border-bottom: 0;
    /* no default underline */
    padding: 8px 10px 0;
    gap: .4rem;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(58, 49, 123, .20), rgba(58, 49, 123, .12));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

/* base tab */
.theme-purple .nav-tabs .nav-link {
    border: 0;
    color: #EDEAFF;
    background: transparent;
    border-radius: 10px 10px 0 0;
    padding: .55rem .9rem;
    transition: background .18s ease, color .18s ease;
}

.theme-purple .nav-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .10);
}

/* active tab merges with the content panel */
.theme-purple .nav-tabs .nav-link.active {
    color: var(--sc-text);
    background: #fff;
    position: relative;
    z-index: 2;
    /* sit above panel border */
    box-shadow: 0 -1px 0 #fff inset, 0 -2px 10px rgba(17, 12, 46, .06);
}

/* the content wrapper right after tabs */
.theme-purple .nav-tabs+.tab-content {
    margin-top: -1px;
    /* kill the hairline gap */
}

/* style the inner panel so it connects to the active tab */
.theme-purple .nav-tabs+.tab-content,
.theme-purple .nav-tabs+.tab-content .card,
.theme-purple .nav-tabs+.tab-content .list-group,
.theme-purple .nav-tabs+.tab-content>.tab-pane>.card {
    background: #fff;
    border: 1px solid #e7e8f1;
    border-top: 0;
    /* merge with active tab */
    border-radius: 0 12px 12px 12px;
    /* rounded corners */
    box-shadow: 0 10px 24px rgba(17, 12, 46, .06);
}

/* optional: make the section header inside the panel look cleaner */
.theme-purple .nav-tabs+.tab-content .card-header {
    background: transparent;
    border-bottom-color: #ececf5;
    font-weight: 600;
}


/* Address panel tidy */
.address-panel .list-group-item {
    border-left: 0;
    border-right: 0;
}

/* Address form polish */
.address-form .form-label {
    font-weight: 600;
    color: #2b254f;
    margin-bottom: .35rem;
}

.address-form .form-control,
.address-form .form-select {
    border: 1px solid rgba(125, 104, 244, .25);
    border-radius: 12px;
    background: #fff;
}

.address-form .form-control:focus,
.address-form .form-select:focus {
    border-color: var(--sc-primary-500);
    box-shadow: 0 0 0 .2rem rgba(125, 104, 244, .25);
}

/* Nice purple switch */
.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.3rem;
    background-color: #e9e6ff;
    border-color: rgba(125, 104, 244, .35);
}

.form-switch .form-check-input:checked {
    background-color: var(--sc-primary-500);
    border-color: var(--sc-primary-500);
}


/* --- grading image carousel --- */
.grade-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gc-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* card-like shape */
    background: #fff;
}

.gc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .25s ease;
    background: #fff;
}

.gc-img.gc-active {
    opacity: 1;
}

.gc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
}

.gc-prev {
    left: 10px;
}

.gc-next {
    right: 10px;
}

.gc-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.gc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
}

.gc-dot.gc-dot-active {
    background: rgba(0, 0, 0, .6);
}





/* ===== Footer / layout normalizer (put at END of stylesheet) ===== */

/* Canonical page structure: one flex column that fills the viewport */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Use padding (not margin) to create space above the footer */
:root {
    --footer-safe-space: 96px;
}

/* tweak 72–120px if you want more/less space */
main {
    flex: 1 0 auto;
    padding-bottom: var(--footer-safe-space);
    margin-bottom: 0 !important;
    /* kill any earlier margin-bottom */
}

/* Keep the footer at the bottom without overlapping content */

/* Make sure decorative page background is behind the footer */


/* Safety guard: if a template accidentally renders two footers, hide extras */
footer.site-footer:not(:first-of-type),
body footer:not(:first-of-type) {
    display: none !important;
}



/* ===== FIX GHOST STRIPE UNDER CONTENT (put at very end) ===== */
main {
    /* space above footer without exposing the body background */
    padding-bottom: 100px;
    margin-bottom: 0 !important;
    /* override earlier margin-bottom */
    flex: 1 0 auto;
    /* keep the page-flex layout */
}

/* Prevent last child margins from collapsing out of <main> */
main>*:last-child {
    margin-bottom: 0 !important;
}

/* Make sure only one footer can ever show (safety) */
footer.site-footer:not(:first-of-type),
body footer:not(:first-of-type) {
    display: none !important;
}




/* Force page base to white so nothing shows below footer */
html,
body {
    background: #fff !important;
}

/* Paint the gradient only behind the main content area */
main#page-content {
    position: relative;
    /* create a containing block */
    z-index: 0;
}

/* The gradient layer */
main#page-content::before {
    content: "";
    position: absolute;
    /* Start a little above main to blend under the navbar; end exactly at the bottom of main */
    top: -32px;
    /* tweak if you want more/less under the navbar */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    /* sit behind content */
    pointer-events: none;

    /* Your previous gradient, unchanged */
    background:
        radial-gradient(900px 380px at 140px 24px, rgba(58, 49, 123, .14) 0%, rgba(58, 49, 123, 0) 60%),
        radial-gradient(900px 420px at calc(100% - 140px) 40px, rgba(58, 49, 123, .12) 0%, rgba(58, 49, 123, 0) 55%),
        linear-gradient(180deg, #8576f8 100%, #8576f8 100%);
}

/* Keep the footer above the gradient layer */
footer.site-footer,
footer {
    position: relative;
    z-index: 1;
}



/* Make the gradient layer span the viewport width */
main#page-content {
    position: relative;
    z-index: 0;
}

main#page-content::before {
    content: "";
    position: absolute;
    top: 20px;
    /* how far it sits under the navbar */
    left: 50%;
    width: 100vw;
    /* full viewport width */
    transform: translateX(-50%);
    /* center the layer under the centered container */
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    /* replaces your current background on main#page-content::before */
    background:
        /* NEW: soft center halo to balance the sides */


        /* existing side halos (you can keep your exact sizes if you prefer) */


        /* smoother top→bottom blend */
        linear-gradient(180deg, #8576f8 10%, #ffffff 100%);

}



/* ===== FINAL PAGE BACKDROP (single source of truth) ===== */
html {
    /* full-page gradient (same one you liked) */
    background:

        linear-gradient(180deg, #8576f8 100%, #8576f8 100%) !important;
    background-attachment: fixed;
    /* keeps it steady while scrolling */
    min-height: 100%;
}

/* Body layout: content grows, footer sticks to bottom */
body {
    background: transparent !important;
    /* gradient only on html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    /* kill tiny horizontal scroll */
}

/* Main should take remaining height above footer */
main {
    flex: 1 0 auto;
}

/* Footer visual */
footer {
    position: relative;
    z-index: 1;
    /* keep your purple footer look */
    background: linear-gradient(180deg, #7d68f4 0%, #7d68f4 100%);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

/* The navbar pill has a brand positioned outside the pill.
   Prevent it from extending document width. */


/* Fallback for older browsers if needed: */
/* body { overflow-x: hidden; }  -- already set above */




/* Keep the page from getting a horizontal scrollbar, but don't clip the navbar */
body {
    overflow-x: hidden;
}

.theme-nav,
.theme-nav>.container-fluid {
    overflow: visible;
    /* allow rounded corners / shadow to render */
}

/* Give the navbar just a hair of breathing room so nothing touches its edge */


/* adjust 0–4px to taste */
/* Hide Add to Cart button initially */
.add-to-cart-form {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Show on hover */
.browse-card-container:hover .add-to-cart-form {
    opacity: 1;
    transform: translateY(0);
}

/* Keep layout stable even when hidden */
.add-to-cart-form {
    min-height: 40px;
    /* same height as button to prevent jump */
}

/* Give the details area room so the absolute button doesn't overlap text */
.browse-card-details {
    padding-bottom: 52px;
    /* ~btn height + spacing */
}

/* Position the Add-to-Cart button at the bottom of each card, hidden by default */
.add-to-cart-btn {
    position: absolute;
    /* relative to .browse-card-container (has Bootstrap's position-relative) */
    left: 12px;
    right: 12px;
    bottom: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    /* prevent focus/click when hidden */
    z-index: 2;
    /* sit above the content */
}

/* Reveal the button when hovering the card */
.browse-card-container:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* (Optional) a touch more polish for the card hover */
.browse-card-container {
    overflow: hidden;
    /* avoid any overflow during the slide-in */
}

/* The text column becomes the positioning context */
.browse-card-details {
    position: relative;
    /* <- important */
    padding-bottom: 52px;
    /* space for the hidden button */
}

/* Hide the button by default and place it at the bottom of the text column */
.browse-card-details .add-to-cart-btn {
    position: absolute;
    /* now relative to .browse-card-details */
    left: 0;
    /* span only the text column width */
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    /* avoid clicks when hidden */
    z-index: 1;
}

/* Reveal on hover of the whole card */
.browse-card-container:hover .browse-card-details .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* keep this if you added it earlier for neatness */
.browse-card-container {
    overflow: hidden;
}

/* Ensure the card is a positioning context */
.browse-card-container {
    position: relative;
}

/* Make sure the absolute wishlist form sits above the image/content */
.browse-card-container>form.position-absolute {
    z-index: 30;
    /* higher than image/content */
    pointer-events: auto;
}

/* Heart button styling (visible and clickable) */
.wishlist-btn {
    /* reset and layout */
    appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    /* size/shape */
    width: 34px;
    height: 34px;
    border-radius: 50%;

    /* visuals */
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);

    /* icon */
    font-size: 18px;
    line-height: 1;
    color: #7b5cf3;
    /* purple outline/filled heart */

    /* behavior */
    cursor: pointer;
    z-index: 31;
    /* higher than its parent just in case */
}

.wishlist-btn:hover {
    background: #f5f0ff;
    box-shadow: 0 3px 10px rgba(123, 92, 243, 0.25);
}

.wishlist-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 92, 243, 0.25);
}

/* If any global img overlay tries to cover it, keep clicks on the heart */
.browse-card-img,
.browse-card-img img {
    position: relative;
    z-index: 1;
}

/* Make each card a positioning context (Bootstrap already adds position-relative in your HTML) */
.browse-card-container {
    position: relative;
}

/* Ensure the absolute wishlist form sits ABOVE image/content */
.browse-card-container>form.position-absolute {
    z-index: 50;
    /* higher than anything inside the card */
    pointer-events: auto;
}

/* Image should NOT sit above the heart */
.browse-card-img,
.browse-card-img img {
    position: relative;
    z-index: 1;
}

/* Heart button: visible, sized, styled */
.wishlist-btn {
    display: inline-flex !important;
    /* defeat any hidden/inline-block overrides */
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-size: 18px;
    line-height: 1;
    color: #7b5cf3;
    cursor: pointer;
    z-index: 51;
    /* above its parent just in case */
}

.wishlist-btn:hover {
    background: #f5f0ff;
    box-shadow: 0 3px 10px rgba(123, 92, 243, 0.25);
}

.wishlist-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 92, 243, 0.25);
}

/* --- WISHLIST HEART: force it above everything --- */

/* The absolute form that wraps the heart has .z-3 (Bootstrap uses !important).
   We must beat it with a higher z-index AND !important. */
.browse-card-container>form.position-absolute.z-3 {
    z-index: 999 !important;
    /* sit above image, overlays, etc. */
    pointer-events: auto;
}

/* Image stack should be below the heart */
.browse-card-img,
.browse-card-img img {
    position: relative;
    z-index: 1;
}

/* Heart button styling (visible & clickable) */
.wishlist-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-size: 18px;
    line-height: 1;
    color: #7b5cf3;
    cursor: pointer;
    z-index: 1000;
    /* higher than its parent just in case */
}

.wishlist-btn:hover {
    background: #f5f0ff;
    box-shadow: 0 3px 10px rgba(123, 92, 243, 0.25);
}

.wishlist-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 92, 243, 0.25);
}



/* --- WISHLIST HEART: pin and stack above everything --- */

/* Target exactly the wishlist form in your HTML */
.browse-card-container>form.position-absolute.top-0.end-0.m-2.z-3 {
    position: absolute !important;
    /* make sure it is absolute */
    top: 8px !important;
    /* don't rely on utility margins */
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 2000 !important;
    /* beat Bootstrap's z-* and any overlays */
    pointer-events: auto;
}

/* Ensure the image never sits over the heart */
.browse-card-img,
.browse-card-img img {
    position: relative;
    z-index: 1;
    /* below the form above */
}

/* Force the heart button to render visibly and be clickable */
.browse-card-container>form.position-absolute.top-0.end-0.m-2.z-3 .wishlist-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-size: 18px;
    line-height: 1;
    color: #7b5cf3;
    cursor: pointer;
    z-index: 2100;
    /* higher than its parent just in case */
}

.browse-card-container>form.position-absolute.top-0.end-0.m-2.z-3 .wishlist-btn:hover {
    background: #f5f0ff;
    box-shadow: 0 3px 10px rgba(123, 92, 243, 0.25);
}



/* --- WISHLIST HEART: force visible, pinned top-right, above everything --- */

/* Make each card its own stacking context so z-index works predictably */
.browse-card-container {
    position: relative;
    /* you already have this in HTML */
    isolation: isolate;
    /* NEW: creates a new stacking context */
}

/* Target the exact wishlist form you have in HTML */
.browse-card-container>form.position-absolute.top-0.end-0.m-2.z-3 {
    position: absolute !important;
    inset: 8px 8px auto auto !important;
    /* top/right with !important */
    z-index: 9999 !important;
    /* beat Bootstrap's z-* and overlays */
    pointer-events: auto;
}

/* The image/content should sit below the heart */
.browse-card-img,
.browse-card-img img {
    position: relative;
    z-index: 1;
}

/* Heart button: visible & clickable no matter what */
.browse-card-container>form.position-absolute.top-0.end-0.m-2.z-3 .wishlist-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-size: 18px;
    line-height: 1;
    color: #7b5cf3 !important;
    /* ensure the heart is visible */
    cursor: pointer;
    z-index: 10000;
    /* above its parent just in case */
}

/* Hover polish */
.browse-card-container>form.position-absolute.top-0.end-0.m-2.z-3 .wishlist-btn:hover {
    background: #f5f0ff;
    box-shadow: 0 3px 10px rgba(123, 92, 243, 0.25);
}


/* Page background */
.gs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: radial-gradient(1200px 600px at 10% 0%, #c6b7ff 0%, #a890ff 15%, #8f78ff 30%, #6e65f5 55%, #6a5ae7 100%);
    color: #fff;
}

/* Floating blobs */
.gs-blob {
    position: absolute;
    filter: blur(40px);
    opacity: .35;
    border-radius: 999px;
}

.gs-blob.one {
    width: 320px;
    height: 320px;
    top: -60px;
    right: -60px;
    background: #ffb1c1;
}


/* Glass cards */
.gs-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.gs-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    font-weight: 600;
}

.gs-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3be17a;
    color: #0b3b22;
    font-weight: 800;
    font-size: 14px;
}

.gs-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 22px;
}

.gs-list li+li {
    margin-top: .65rem;
}

.gs-muted {
    color: rgba(255, 255, 255, .85);
}

/* Light section below */
.gs-tip {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
}

.site-footer .footer-link {
    color: inherit;
    opacity: .85;
}

.site-footer .footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}


/* sizing + colors */
.ig-img {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: -2px;
}

/* choose colors per area */
.navbar .ig-link {
    color: #ffffff;
}

/* white icon on purple nav */
.site-footer .ig-link {
    color: #E4405F;
}

/* brand color in footer */

/* subtle hover */
.ig-link:hover {
    opacity: .85;
    transform: translateY(-1px);
    transition: .15s ease;
}

.browse-grid {
    align-items: start;
}

.browse-card-container {
    align-self: start;
}

.browse-card-container {
    padding-bottom: 0px;

}



/* Modern rounded inputs for the address form only */
.address-form .form-control,
.address-form .form-select {
    height: 46px;
    padding: .6rem .95rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .14);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, .03);
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* Placeholder style (your form already provides placeholder text) */
.address-form .form-control::placeholder {
    color: #8A94A6;
    /* soft gray */
    opacity: 1;
    /* ensure visible on all browsers */
}

/* Focus ring */
.address-form .form-control:focus,
.address-form .form-select:focus {
    border-color: #7d5cff;
    box-shadow: 0 0 0 .2rem rgba(125, 92, 255, .16);
    outline: 0;
}

/* Make the select look consistent + nicer caret */
.address-form .form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.2rem;
    /* room for caret */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%2399A1B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    background-size: .9rem;
}

/* Labels (keep them, just refine look) */
.address-form .form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: .3rem;
}

/* Keep Country & "Make default" from colliding on small screens */
@media (max-width: 767.98px) {
    .address-form .country-col {
        margin-bottom: .5rem;
    }
}


/* Logo sizing (keeps it tidy on phones) */
.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .brand-logo {
        height: 32px;
    }
}

@media (min-width: 992px) {
    .brand-logo {
        height: 40px;
    }
}

/* Compact navbar padding on mobile */
.theme-nav {
    padding-top: .4rem;
    padding-bottom: .4rem;
}

/* Mobile search that sits next to the hamburger */
.nav-search-sm .form-control {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.nav-search-sm .form-control::placeholder {
    color: rgba(255, 255, 255, .75);
}

.nav-search-sm .btn.btn-search {
    margin-left: .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding: .375rem .75rem;
}

/* Optional: a little breathing room inside the collapsed menu on mobile */
@media (max-width: 991.98px) {
    #mainNav {
        padding-top: .5rem;
    }
}

/* ===========================
   New Arrivals (prefix-free)
   =========================== */

#newArrivalsCarousel {
    --na-radius: 16px;
    --na-shadow: 0 10px 30px rgba(25, 7, 65, .18);
    --na-glass: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    position: relative;
    border-radius: var(--na-radius);
    padding: 1rem 0 1.25rem;
    background: var(--na-glass);
    backdrop-filter: blur(6px);
    /* progressive enhancement */
    box-shadow: var(--na-shadow);
    border: 1px solid rgba(255, 255, 255, .18);
}

#newArrivalsCarousel .carousel-inner {
    padding-inline: .5rem;
}

/* Cards with gradient "ring" using background-clip (no masks) */
#newArrivalsCarousel .card {
    border: 1px solid transparent;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .94)) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(121, 99, 255, .40), rgba(255, 200, 0, .38)) border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

#newArrivalsCarousel .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14), 0 0 0 3px rgba(121, 99, 255, .18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .96)) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(121, 99, 255, .55), rgba(255, 200, 0, .55)) border-box;
}

/* Images */
#newArrivalsCarousel .card-img-top {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background: radial-gradient(120% 120% at 50% 0%, rgba(0, 0, 0, .05), transparent 60%);
    aspect-ratio: 3/4;
    /* keep all thumbnails consistent */
    object-fit: cover;
}

/* Title: robust 2-line fallback without vendor prefixes */
#newArrivalsCarousel .card-body {
    padding: .6rem .75rem .8rem;
}

#newArrivalsCarousel .card-body .fw-semibold {
    color: #1b1635;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    max-height: 2.4em;
    /* ~2 lines at 1rem line-height */
    letter-spacing: .1px;
}

/* If the browser supports line-clamp, upgrade to true clamping */
@supports (line-clamp: 2) or (-webkit-line-clamp: 2) {
    #newArrivalsCarousel .card-body .fw-semibold {
        display: -webkit-box;
        /* works in WebKit/Blink; ignored elsewhere */
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* unprefixed for newer engines */
        max-height: none;
    }
}

/* Controls */
#newArrivalsCarousel .carousel-control-prev,
#newArrivalsCarousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    opacity: 1;
}

#newArrivalsCarousel .carousel-control-prev {
    left: -12px;
}

#newArrivalsCarousel .carousel-control-next {
    right: -12px;
}

#newArrivalsCarousel .carousel-control-prev:hover,
#newArrivalsCarousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .38);
}

#newArrivalsCarousel .carousel-control-prev-icon,
#newArrivalsCarousel .carousel-control-next-icon {
    filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
}

/* Small screens */
@media (max-width: 576px) {
    #newArrivalsCarousel {
        padding: .5rem 0 .75rem;
        border-radius: 12px;
    }

    #newArrivalsCarousel .carousel-inner {
        padding-inline: .35rem;
    }

    #newArrivalsCarousel .carousel-control-prev,
    #newArrivalsCarousel .carousel-control-next {
        width: 38px;
        height: 38px;
    }

    #newArrivalsCarousel .card {
        border-radius: 12px;
    }

    #newArrivalsCarousel .card-img-top {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
}


/***********************
 * MOBILE-ONLY OVERRIDES
 * (desktop remains unchanged)
 ***********************/

/* NAVBAR: keep logo + search + burger on one line, inside purple area */
@media (max-width: 991.98px) {

    /* < lg */
    .theme-nav {
        padding-block: .35rem;
    }

    .theme-nav .container-fluid {
        display: flex;
        align-items: center;
        gap: .5rem;
        flex-wrap: nowrap;
        /* stay on one row */
        min-height: 56px;
    }

    .theme-nav .brand-logo {
        height: 34px;
        width: auto;
    }

    /* Mobile search in purple bar */
    .theme-nav .nav-search-sm {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        background: rgba(255, 255, 255, .08);
        border-radius: 999px;
        padding: .25rem;
    }

    .theme-nav .nav-search-sm input.form-control {
        height: 38px;
        border: 0;
        background: transparent;
        color: #fff;
        padding-left: .75rem;
        padding-right: .5rem;
        box-shadow: none;
    }

    .theme-nav .nav-search-sm input.form-control::placeholder {
        color: rgba(255, 255, 255, .7);
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        border: 0;
        background: rgba(255, 255, 255, .15);
        border-radius: 999px;
        padding: .375rem .65rem;
        line-height: 1;
    }

    /* Burger sits to the right of search (no wrap) */
    .theme-nav .navbar-toggler {
        flex: 0 0 auto;
        margin-left: .25rem;
        border: 0;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Opened collapse: soft panel look */
    #mainNav {
        background: rgba(0, 0, 0, .25);
        border-radius: .75rem;
        padding: .5rem .5rem 1rem;
        margin-top: .5rem;
    }

    #mainNav .nav-link {
        padding: .5rem .75rem;
        border-radius: .5rem;
    }

    #mainNav .nav-link:hover {
        background: rgba(255, 255, 255, .08);
    }
}

/* BROWSE GRID: tidy two-per-row and compact card body on phones */
@media (max-width: 575.98px) {

    /* phones */
    /* force exactly 2 columns on phones; let your desktop CSS handle larger screens */
    .browse-grid {
        display: grid;
        /* only set on phones so we don't override desktop */
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .browse-card-container {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        transition: transform .15s ease, box-shadow .15s ease;
    }

    .browse-card-img {
        position: relative;
        overflow: hidden;
    }

    .browse-card-img img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        display: block;
    }

    .browse-card-details {
        padding: .6rem .6rem 0 .6rem;
    }

    .browse-card-details h5 {
        font-weight: 700;
        font-size: .98rem;
        /* compact, no desktop impact */
        margin-bottom: .35rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .browse-card-details .fs-5 {
        font-size: 1.05rem !important;
        /* price slightly emphasized */
    }

    /* Hide non-critical metadata to reduce clutter on phones */
    .browse-card-details p.text-secondary {
        display: none;
    }

    .wishlist-btn {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, .06);
        border-radius: 999px;
        padding: .25rem .5rem;
        line-height: 1;
    }

    .add-to-cart-btn {
        margin-top: .25rem;
    }

    .browse-card-details form .btn {
        min-height: 36px;
        border-radius: 10px;
    }
}

/* FILTERS CARD: tighter spacing on phones */
@media (max-width: 575.98px) {
    .container .card .card-body .row.g-2>[class*="col-"] {
        margin-bottom: .25rem;
    }

    .container .card {
        border-radius: 14px;
    }

    .container .card .form-label {
        margin-bottom: .25rem !important;
        font-size: .85rem;
    }

    .container .card .form-control,
    .container .card .form-select {
        border-radius: 10px;
    }

    .container .card .d-grid.d-md-flex .btn {
        width: 100%;
    }
}

/* Toast safe areas (harmless on desktop, improves mobile) */
@supports (padding: max(0px)) {
    .toast {
        margin-top: max(.5rem, env(safe-area-inset-top));
        margin-right: max(.5rem, env(safe-area-inset-right));
    }
}


/* ===========================
   MOBILE NAVBAR TWEAKS ONLY
   =========================== */
@media (max-width: 991.98px) {

    /* Keep everything on one row inside the purple pill */
    .theme-nav .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        flex-wrap: nowrap;
        /* prevent wrap */
        min-height: 56px;
    }

    /* Brand: move inside pill (override any desktop absolute/offset rules) */
    .theme-nav .navbar-brand {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto;
    }

    .theme-nav .brand-logo {
        height: 32px;
        /* tidy size on phones */
        width: auto;
        display: block;
    }

    /* Mobile search sits in the middle and flexes */
    .theme-nav .nav-search-sm {
        display: flex !important;
        /* ensure visible on mobile */
        align-items: center;
        flex: 1 1 60%;
        /* leaves room for logo + burger */
        min-width: 0;
        /* allow shrink without wrapping */
        margin: 0 .25rem;
        background: rgba(255, 255, 255, .08);
        border-radius: 999px;
        padding: .25rem;
    }

    .theme-nav .nav-search-sm input.form-control {
        border: 0;
        background: transparent;
        color: #fff;
        height: 38px;
        padding-left: .75rem;
        padding-right: .5rem;
        box-shadow: none;
    }

    .theme-nav .nav-search-sm input.form-control::placeholder {
        color: rgba(255, 255, 255, .7);
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        border: 0;
        background: rgba(255, 255, 255, .16);
        border-radius: 999px;
        padding: .38rem .65rem;
        line-height: 1;
    }

    /* Burger aligned to the right, never drops below */
    .theme-nav .navbar-toggler {
        flex: 0 0 auto;
        margin: 0;
        border: 0;
        box-shadow: none !important;
        align-self: center;
    }

    /* Opened menu panel styling (unchanged behavior) */
    #mainNav {
        background: rgba(0, 0, 0, .25);
        border-radius: .75rem;
        padding: .5rem .5rem 1rem;
        margin-top: .5rem;
    }

    #mainNav .nav-link {
        padding: .5rem .75rem;
        border-radius: .5rem;
    }

    #mainNav .nav-link:hover {
        background: rgba(255, 255, 255, .08);
    }
}


/* === Mobile navbar layout (<= lg) === */
@media (max-width: 991.98px) {

    /* keep everything on one line and centered */
    .theme-nav .container-fluid {
        display: flex;
        align-items: center;
        gap: .5rem;
        flex-wrap: nowrap;
        /* prevent wrapping (burger dropping) */
    }

    /* brand/logo */
    .theme-nav .navbar-brand {
        order: 1;
        margin: 0 .25rem 0 0;
        padding: 0;
    }

    .theme-nav .brand-logo {
        height: 28px;
        /* compact logo */
        width: auto;
        display: block;
    }

    /* mobile search (your .d-lg-none form) */
    .theme-nav .nav-search-sm {
        order: 2;
        flex: 1 1 auto;
        /* take remaining width */
        min-width: 0;
        /* allow shrinking (iOS fix) */
        position: relative;
        /* for the inner button placement */
        display: flex;
        align-items: center;
    }

    .theme-nav .nav-search-sm .form-control {
        width: 100%;
        height: 42px;
        border-radius: 16px;
        padding-right: 3rem;
        /* space for the search button inside */
    }

    .theme-nav .nav-search-sm .btn-search {
        position: absolute;
        /* sit inside the input on the right */
        right: .35rem;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* burger aligned to the right of the search */
    .theme-nav .navbar-toggler {
        order: 3;
        flex: 0 0 42px;
        height: 42px;
        margin-left: .35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

    /* small visual tighten so the purple pill looks balanced */
    .theme-nav {
        padding-top: .35rem;
        padding-bottom: .35rem;
    }
}


/* ───────── New Arrivals polish ───────── */
:root {
    --na-card-radius: 14px;
    --na-shadow: 0 6px 18px rgba(37, 0, 73, .10);
    --na-border: rgba(111, 66, 193, .16);
    /* theme purple-ish */
}

/* Section spacing */
#newArrivalsCarousel .carousel-inner {
    padding: .25rem 2rem 1.25rem;
}

/* Card shell */
#newArrivalsCarousel .card {
    position: relative;
    border: 1px solid var(--na-border);
    border-radius: var(--na-card-radius);
    background: linear-gradient(180deg, rgba(111, 66, 193, .04), rgba(111, 66, 193, 0));
    box-shadow: var(--na-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Subtle “NEW” chip (only in this carousel) */
#newArrivalsCarousel .card::after {
    content: "NEW";
    position: absolute;
    top: .5rem;
    left: .5rem;
    font-size: .65rem;
    font-weight: 600;
    color: #fff;
    background: #6f42c1;
    /* bootstrap purple */
    padding: .18rem .45rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(111, 66, 193, .35);
}

/* Image wrapper look (no more over-magnify) */
#newArrivalsCarousel .card-img-top {
    width: 100%;
    aspect-ratio: 3 / 4 !important;
    /* keep card proportions */
    object-fit: contain !important;
    /* show full image, no crop */
    background:
        radial-gradient(60% 60% at 50% 20%, rgba(111, 66, 193, .10), transparent 60%),
        linear-gradient(180deg, rgba(111, 66, 193, .03), rgba(111, 66, 193, 0));
    padding: 10px;
    border-top-left-radius: calc(var(--na-card-radius) - 1px);
    border-top-right-radius: calc(var(--na-card-radius) - 1px);
    transition: transform .2s ease;
}

/* Text area */
#newArrivalsCarousel .card-body {
    padding: .6rem .7rem .85rem !important;
}

#newArrivalsCarousel .card-body .fw-semibold {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.15;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover states */
#newArrivalsCarousel .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 0, 73, .14);
    border-color: rgba(111, 66, 193, .35);
}

#newArrivalsCarousel .card:hover .card-img-top {
    transform: scale(1.02);
}

/* Carousel controls: small, rounded, subtle */
#newArrivalsCarousel .carousel-control-prev,
#newArrivalsCarousel .carousel-control-next {
    width: 2.25rem;
    height: 2.25rem;
    top: 42%;
    transform: translateY(-50%);
    background: rgba(111, 66, 193, .12);
    border: 1px solid rgba(111, 66, 193, .25);
    border-radius: 50%;
}

#newArrivalsCarousel .carousel-control-prev:hover,
#newArrivalsCarousel .carousel-control-next:hover {
    background: rgba(111, 66, 193, .22);
}

#newArrivalsCarousel .carousel-control-prev {
    left: .35rem;
}

#newArrivalsCarousel .carousel-control-next {
    right: .35rem;
}

#newArrivalsCarousel .carousel-control-prev-icon,
#newArrivalsCarousel .carousel-control-next-icon {
    filter: invert(1);
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
    #newArrivalsCarousel .carousel-inner {
        padding: 0 .75rem 1rem;
    }

    #newArrivalsCarousel .row.g-3 {
        --bs-gutter-x: .6rem;
        --bs-gutter-y: .6rem;
    }

    #newArrivalsCarousel .card-body .fw-semibold {
        font-size: .9rem;
    }

    #newArrivalsCarousel .carousel-control-prev,
    #newArrivalsCarousel .carousel-control-next {
        top: 38%;
    }

    /* Hide the NEW chip on very tight screens if it overlaps */
    @media (max-width: 380px) {
        #newArrivalsCarousel .card::after {
            display: none;
        }
    }
}

/* Accessibility: keyboard focus ring */
#newArrivalsCarousel a:focus-visible {
    outline: 2px solid rgba(111, 66, 193, .6);
    outline-offset: 2px;
    border-radius: var(--na-card-radius);
}


/* =====================================
   SHINYVERSE MOBILE-ONLY STYLES
   (applies only to screens < 768 px)
   ===================================== */
@media (max-width: 767.98px) {

    /* ---------- GLOBAL ---------- */
    :root {
        --sv-gap: 12px;
        --sv-radius: 14px;
        --sv-border: #ece8f6;
        --sv-soft: #f7f4ff;
        --sv-purple: #6f42c1;
        --sv-purple-2: #8a5cf1;
    }

    body {
        padding-bottom: 60px;
    }

    /* breathing space */
    .container,
    .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .btn,
    .btn-sm,
    .btn-lg {
        border-radius: 12px;
    }

    .btn {
        padding: .65rem .9rem;
    }

    .card {
        border-radius: var(--sv-radius);
        border-color: var(--sv-border);
    }

    .card-header {
        padding: .65rem .9rem;
    }

    h1,
    h2,
    h3 {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    }

    .table-responsive {
        border-radius: var(--sv-radius);
    }

    /* Stacked table layout */
    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        background: #fff;
        margin-bottom: 10px;
        border: 1px solid var(--sv-border);
        border-radius: 12px;
        padding: 10px;
    }

    .table tbody tr td {
        display: flex;
        justify-content: space-between;
        border: none !important;
        padding: .35rem 0;
    }

    .table tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b6790;
        margin-right: 16px;
    }

    .position-fixed.top-0.start-50 {
        top: .8rem !important;
        transform: translateX(-50%);
    }

    /* ---------- NAVBAR ---------- */
    .navbar.theme-nav {
        padding-top: .4rem;
        padding-bottom: .4rem;
    }

    .navbar .container-fluid {
        gap: 8px;
    }

    .brand-logo {
        height: 32px;
        width: auto;
    }

    .nav-search-sm {
        border: 1px solid #e7e1fb;
        background: #fff;
        border-radius: 999px;
        padding: 4px 6px;
    }

    .nav-search-sm input.form-control {
        border: none;
        box-shadow: none;
        padding: .4rem .6rem;
        font-size: .95rem;
        background: transparent;
    }

    .nav-search-sm .btn.btn-search {
        background: linear-gradient(135deg, #6f42c1, #8a5cf1);
        color: #fff;
        border: none;
        border-radius: 999px;
        padding: .35rem .6rem;
        font-size: .95rem;
    }

    #mainNav {
        border-top: 1px solid #eee9ff;
        padding-top: .6rem;
    }

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

    .navbar-toggler {
        padding: .25rem .5rem;
        border-radius: 10px;
    }

    /* ---------- HOME ---------- */
    #homepageBannerCarousel img {
        height: 210px !important;
        object-fit: cover;
    }

    #homepageBannerCarousel .carousel-caption {
        display: block !important;
        background: rgba(22, 10, 46, .45);
        backdrop-filter: blur(2px);
        left: 6%;
        right: 6%;
        bottom: 10px;
        border-radius: 12px;
        padding: .5rem .7rem;
    }

    #homepageBannerCarousel h2 {
        font-size: 1rem;
        margin-bottom: .15rem;
    }

    #homepageBannerCarousel p {
        font-size: .85rem;
        margin-bottom: .25rem;
    }

    #homepageBannerCarousel .btn {
        padding: .35rem .6rem;
        font-size: .85rem;
        border-radius: 10px;
    }

    .section-title {
        font-size: 1.05rem;
        margin: .6rem 0 .4rem;
    }

    .carousel-wrapper {
        margin-bottom: 1.25rem !important;
    }

    .card-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .card-track {
        display: flex;
        gap: 10px;
        padding: 4px 2px;
    }

    .card-item {
        min-width: 135px;
        max-width: 135px;
    }

    .card-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 12px;
    }

    .card-caption {
        font-size: .85rem;
        padding: .25rem .1rem;
        text-align: center;
    }

    #newArrivalsCarousel .col-6.col-md-3 {
        padding-left: 8px;
        padding-right: 8px;
    }

    #newArrivalsCarousel .card {
        border-radius: 14px;
    }

    #newArrivalsCarousel .card-img-top {
        aspect-ratio: 3/4;
        object-fit: cover;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
        max-height: 220px;
    }

    #newArrivalsCarousel .card-body {
        padding: .45rem .55rem;
    }

    #newArrivalsCarousel .fw-semibold {
        font-size: .9rem;
    }

    .fade-left,
    .fade-right {
        width: 20px !important;
    }

    /* ---------- BROWSE ---------- */
    form[method="GET"] .card-body {
        padding: 10px;
    }

    form[method="GET"] .row.g-2>[class*="col-"] {
        width: 50%;
    }

    form[method="GET"] .col-12 {
        width: 100% !important;
    }

    form[method="GET"] .form-label {
        font-size: .8rem;
        margin-bottom: .25rem;
    }

    form[method="GET"] input.form-control-sm,
    form[method="GET"] select.form-select-sm {
        padding: .35rem .5rem;
        font-size: .9rem;
        border-radius: 10px;
    }

    form[method="GET"] .btn {
        width: 100%;
    }

    .browse-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .browse-card-container {
        border-radius: 14px;
        overflow: hidden;
    }

    .browse-card-img img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 12px;
    }

    .browse-card-details {
        padding: 10px !important;
    }

    .browse-card-details h5 {
        font-size: .98rem;
    }

    .browse-card-details p {
        margin-bottom: .25rem !important;
        font-size: .84rem;
    }

    .browse-card-details .fs-5 {
        font-size: 1rem !important;
    }

    .wishlist-btn {
        background: #fff;
        border: 1px solid #eee9ff;
        border-radius: 10px;
        padding: .25rem .5rem;
    }

    form[action*="reduce_stock"],
    form[action*="delete_card"] {
        margin-top: .35rem !important;
    }

    form[action*="reduce_stock"] .form-control {
        height: 34px;
    }

    #imageModal .modal-dialog {
        margin: 8px;
    }

    /* ---------- CART ---------- */
    .table.align-middle tbody tr td:nth-child(1) {
        --label: "Card";
    }

    .table.align-middle tbody tr td:nth-child(2) {
        --label: "Quantity";
    }

    .table.align-middle tbody tr td:nth-child(3) {
        --label: "Unit Price";
    }

    .table.align-middle tbody tr td:nth-child(4) {
        --label: "Line Total";
    }

    .table.align-middle tbody tr td:nth-child(5) {
        --label: "Action";
    }

    .btn-outline-secondary.btn-sm,
    .btn-outline-danger.btn-sm {
        padding: .4rem .6rem;
        border-radius: 10px;
    }

    .sv-totals {
        padding: 12px;
        border-radius: 12px;
    }

    .sv-totals .grand {
        padding: 8px 10px;
    }

    #btn-checkout {
        width: 100%;
        padding: .75rem 1rem;
        border-radius: 12px;
    }

    /* ---------- CHECKOUT ---------- */
    .sv-steps {
        gap: 6px;
    }

    .sv-step {
        font-size: .85rem;
        padding: 6px 10px;
    }

    .sv-step .num {
        width: 20px;
        height: 20px;
    }

    .sv-summary-table thead {
        display: none;
    }

    .sv-summary-table tbody tr {
        display: block;
        background: #fff;
        margin-bottom: 10px;
        border: 1px solid #ece8f6;
        border-radius: 12px;
        padding: 10px;
    }

    .sv-summary-table td {
        display: flex;
        justify-content: space-between;
        border: none !important;
        padding: .35rem 0;
    }

    .sv-summary-table td:nth-child(1) {
        --label: "Item";
    }

    .sv-summary-table td:nth-child(2) {
        --label: "Qty";
    }

    .sv-summary-table td:nth-child(3) {
        --label: "Price";
    }

    .sv-summary-table td::before {
        content: var(--label);
        font-weight: 600;
        color: #6b6790;
        margin-right: 10px;
    }

    .sv-row-soft,
    .sv-row-total {
        background: transparent !important;
    }

    .sv-row-total {
        border-top: 1px dashed #e5defc;
        padding-top: 6px;
    }

    .sv-sticky {
        position: static;
    }

    #pay-stripe {
        padding: .75rem 1rem;
        border-radius: 12px;
    }

    #paypal-button-container>div {
        transform: scale(.95);
        transform-origin: top center;
    }
}

@media (max-width: 991.98px) {
    .browse-card-details h5 {
        color: #6f42c1 !important;
    }

    .brand-logo {
        height: 28px !important;
    }
}


/***********************
 * BROWSE CARDS — MOBILE FIX
 * make details readable + keep button in place
 ***********************/
@media (max-width: 575.98px) {

    /* 2-column grid (keeps what you already had) */
    .browse-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .9rem;
    }

    /* Card shell */
    .browse-card-container {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Image */
    .browse-card-img img {
        width: 100%;
        aspect-ratio: 3/4;
        object-fit: cover;
        display: block;
    }

    /* Details area becomes a column with space for the button */
    .browse-card-details {
        display: flex;
        flex-direction: column;
        gap: .35rem;
        padding: .65rem .65rem .65rem;
        min-height: 152px;
        /* ensures room for text + button */
    }

    /* Name: larger, 2-line clamp */
    .browse-card-details h5 {
        font-size: 1rem;
        font-weight: 800;
        margin: 0 0 .15rem !important;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Show *some* metadata again (brand + condition) */
    .browse-card-details p.text-secondary {
        display: none;
        /* start hidden… */
    }

    .browse-card-details p.text-secondary:nth-of-type(1),
    .browse-card-details p.text-secondary:nth-of-type(3) {
        /* 1 = Brand, 3 = Condition in your markup order */
        display: block;
        font-size: .82rem;
        margin: 0;
        color: #6b6b88;
    }

    /* Price & stock */
    .browse-card-details .fs-5 {
        font-size: 1.05rem !important;
        margin: .2rem 0 0;
    }

    .browse-card-details .text-success {
        margin: 0 0 .2rem;
        font-size: .85rem;
    }

    /* Button: full width, never overlaps text */
    .browse-card-details form {
        margin-top: auto;
        /* push button to bottom of the card */
    }

    .browse-card-details .add-to-cart-btn {
        width: 100%;
        display: block;
        margin: .35rem 0 0 !important;
        border-radius: 12px;
        min-height: 40px;
        box-shadow: 0 10px 20px rgba(111, 66, 193, .18);
    }

    /* Kill the old margin that caused overlap in some cards */
    .browse-card-details .add-to-cart-btn.mb-4 {
        margin-bottom: 0 !important;
    }

    /* Slightly tighter outer container so tiles breathe on small screens */
    .container.mt-4,
    .container.mt-5 {
        padding-left: .6rem;
        padding-right: .6rem;
    }
}

/* ===== MOBILE NAVBAR: logo | search | burger ===== */
@media (max-width: 991.98px) {
    .theme-nav {
        padding: .35rem 0;
    }

    .theme-nav .container-fluid {
        display: flex;
        align-items: center;
        gap: .5rem;
        flex-wrap: nowrap;
    }

    .theme-nav .navbar-brand {
        order: 1;
        margin: 0;
        padding: 0;
        flex: 0 0 auto;
    }

    .theme-nav .brand-logo {
        height: 28px;
        width: auto;
        display: block;
    }

    /* show the small search in the middle bar */
    .theme-nav .nav-search-sm {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        display: flex !important;
        align-items: center;
        background: rgba(255, 255, 255, .12);
        border-radius: 999px;
        padding: .25rem;
    }

    .theme-nav .nav-search-sm .form-control {
        height: 38px;
        border: 0;
        background: transparent;
        color: #fff;
        padding-left: .65rem;
        padding-right: .4rem;
        box-shadow: none;
    }

    .theme-nav .nav-search-sm .form-control::placeholder {
        color: rgba(255, 255, 255, .75);
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        border: 0;
        background: rgba(255, 255, 255, .18);
        border-radius: 999px;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .theme-nav .navbar-toggler {
        order: 3;
        flex: 0 0 42px;
        height: 42px;
        margin-left: .35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        box-shadow: none !important;
        border-radius: 12px;
    }

    /* opened panel look */
    #mainNav {
        background: rgba(0, 0, 0, .25);
        border-radius: .75rem;
        padding: .5rem .5rem 1rem;
        margin-top: .5rem;
    }

    #mainNav .nav-link {
        padding: .5rem .75rem;
        border-radius: .5rem;
    }

    #mainNav .nav-link:hover {
        background: rgba(255, 255, 255, .08);
    }
}


/* ===== MOBILE BROWSE CARDS ===== */
@media (max-width: 575.98px) {

    /* two columns grid (keeps desktop untouched) */
    .browse-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .browse-card-container {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(25, 7, 65, .08);
    }

    /* smaller image so more text fits */
    .browse-card-img img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        /* keep card aspect */
        object-fit: contain;
        /* no crop, whole card visible */
        padding: 8px;
        /* shrink visual size further */
        background: radial-gradient(60% 60% at 50% 15%, rgba(111, 66, 193, .06), transparent 60%);
    }

    /* body spacing */
    .browse-card-details {
        padding: .55rem .6rem .65rem;
    }

    /* name: multi-line wrap (up to 2 lines), no overflow outside card */
    .browse-card-details h5 {
        margin: .15rem 0 .25rem !important;
        font-size: .95rem;
        font-weight: 800;
        line-height: 1.15;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        word-break: break-word;
    }

    /* show key meta lines (don’t hide them on mobile) */
    .browse-card-details p.text-secondary {
        display: block !important;
        margin: .15rem 0;
        font-size: .84rem;
        line-height: 1.2;
        color: #6b6785 !important;
        white-space: normal;
        word-break: break-word;
    }

    /* ensure we show Set as well if present */
    .browse-card-details p[data-field="set"],
    .browse-card-details p:has(> strong:contains("Set")) {
        display: block !important;
    }

    /* price */
    .browse-card-details .fs-5 {
        font-size: 1rem !important;
        margin: .2rem 0 .15rem;
    }

    /* stock line */
    .browse-card-details .text-success {
        font-size: .9rem;
        margin-bottom: .35rem;
    }

    /* Add to cart button full width & compact */
    .browse-card-details form .btn {
        width: 100%;
        min-height: 38px;
        border-radius: 10px;
        margin-top: .25rem;
    }

    /* wishlist heart stays top-right and clickable */
    .browse-card-container>form.position-absolute {
        z-index: 30 !important;
    }

    .browse-card-container>form.position-absolute .wishlist-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, .08);
    }
}


/* ============== SHINYVERSE • MOBILE NAVBAR POLISH (<= lg) ============== */
@media (max-width: 991.98px) {

    /* Keep everything on ONE row */
    .theme-nav .container-fluid {
        display: flex;
        align-items: center;
        gap: .5rem;
        flex-wrap: nowrap;
        /* prevent wrapping */
        min-height: 56px;
    }

    /* Brand (left) */
    .theme-nav .navbar-brand {
        order: 1;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 0 !important;
    }

    .theme-nav .brand-logo {
        height: 28px;
        width: auto;
        display: block;
    }

    /* Search (center, flexible) */
    .theme-nav .nav-search-sm {
        order: 2;
        flex: 1 1 auto;
        /* take remaining space */
        min-width: 0;
        /* allow shrinking */
        display: flex !important;
        align-items: center;
        position: relative;
        margin: 0;
        /* remove odd offsets */
        background: rgba(255, 255, 255, .12);
        border-radius: 999px;
        padding: .25rem .4rem;
    }

    .theme-nav .nav-search-sm input.form-control {
        height: 38px;
        border: 0;
        background: transparent;
        color: #fff;
        padding-left: .65rem;
        padding-right: 2.4rem;
        /* room for 🔍 */
        box-shadow: none;
    }

    .theme-nav .nav-search-sm input.form-control::placeholder {
        color: rgba(255, 255, 255, .8);
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        position: absolute;
        right: .35rem;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border-radius: 999px;
        padding: 0;
        border: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, .18);
        color: #fff;
    }

    /* Burger (right) */
    .theme-nav .navbar-toggler {
        order: 3;
        flex: 0 0 40px;
        height: 40px;
        margin-left: .25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        box-shadow: none !important;
        border-radius: 10px;
        background: rgba(255, 255, 255, .10);
    }

    /* Compact nav bar padding */
    .theme-nav {
        padding: .35rem 0;
    }

    /* Collapsed panel styling */
    #mainNav {
        background: rgba(20, 16, 40, .88);
        border: 1px solid rgba(255, 255, 255, .10);
        border-radius: 12px;
        padding: .25rem .5rem .75rem;
        margin-top: .5rem;
        backdrop-filter: saturate(120%) blur(6px);
    }

    #mainNav .navbar-nav .nav-link {
        padding: .55rem .6rem;
        border-radius: .5rem;
        font-size: 1.05rem;
    }

    #mainNav .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, .08);
    }

    /* Remove any stray decorative frames that made the drawer look box-inside-box */
    .theme-nav .container-fluid>*:not(.navbar-brand):not(.nav-search-sm):not(.navbar-toggler) {
        box-shadow: none !important;
        border: none !important;
        background: none !important;
    }
}

/* ============================ END NAVBAR POLISH ============================ */


/* ===== iPhone/iOS Safari mobile navbar hard-fix (<= lg) ===== */
@media (max-width: 991.98px) {
    .theme-nav .container-fluid {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        /* never wrap */
        gap: .5rem;
        min-height: 56px;
    }

    /* Brand (fixed width, left) */
    .theme-nav .navbar-brand {
        order: 1;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 0 !important;
    }

    .theme-nav .brand-logo {
        height: 28px;
        width: auto;
        display: block;
    }

    /* Search (center). The key bits are min-width:0 + max-width */
    .theme-nav .nav-search-sm {
        order: 2;
        flex: 1 1 0;
        /* allow shrink */
        min-width: 0;
        /* iOS: permit shrinking below content width */
        max-width: 62vw;
        /* hard cap so the burger never drops */
        display: flex !important;
        align-items: center;
        position: relative;
        margin: 0;
        background: rgba(255, 255, 255, .12);
        border-radius: 999px;
        padding: .25rem .4rem;
    }

    .theme-nav .nav-search-sm input.form-control {
        width: 100%;
        min-width: 0;
        /* iOS: let the input compress */
        height: 38px;
        border: 0;
        background: transparent;
        color: #fff;
        padding-left: .65rem;
        padding-right: 2.2rem;
        box-shadow: none;
    }

    .theme-nav .nav-search-sm input.form-control::placeholder {
        color: rgba(255, 255, 255, .8);
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        position: absolute;
        right: .35rem;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 999px;
        padding: 0;
        border: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, .18);
        color: #fff;
        flex: 0 0 auto;
        /* don’t let it grow */
    }

    /* Burger (right, fixed) */
    .theme-nav .navbar-toggler {
        order: 3;
        flex: 0 0 40px;
        height: 40px;
        margin-left: .25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        box-shadow: none !important;
        border-radius: 10px;
        background: rgba(255, 255, 255, .10);
    }

    /* Tidy the opened drawer */
    #mainNav {
        background: rgba(20, 16, 40, .88);
        border: 1px solid rgba(255, 255, 255, .10);
        border-radius: 12px;
        padding: .25rem .5rem .75rem;
        margin-top: .5rem;
        backdrop-filter: saturate(120%) blur(6px);
    }

    #mainNav .nav-link {
        padding: .55rem .6rem;
        border-radius: .5rem;
        font-size: 1.05rem;
    }

    #mainNav .nav-link:hover {
        background: rgba(255, 255, 255, .08);
    }
}

/* this is new iOS fix */
/***************
 * MOBILE NAVBAR
 ***************/
@media (max-width: 991.98px) {

    /* Make the purple pill’s inner layout a 3-column grid: logo | search | burger */
    .theme-nav .container-fluid {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: .6rem;
        padding: 8px 12px;
        /* symmetric, prevents drifting right */
    }

    /* exact columns */
    .theme-nav .navbar-brand {
        grid-column: 1;
        margin: 0 !important;
    }

    .theme-nav .nav-search-sm {
        grid-column: 2;
        min-width: 0;
    }

    .theme-nav .navbar-toggler {
        grid-column: 3;
        margin: 0 !important;
    }

    /* logo size balance */
    .theme-nav .brand-logo {
        height: 26px;
        width: auto;
        display: block;
    }

    /* search input sits truly centered and fills the middle column */
    .theme-nav .nav-search-sm {
        display: flex !important;
        align-items: center;
        border-radius: 999px;
        background: rgba(255, 255, 255, .10);
        padding: .25rem .35rem;
    }

    .theme-nav .nav-search-sm .form-control {
        width: 100%;
        height: 40px;
        border: 0;
        background: transparent;
        color: #fff;
        padding-left: .7rem;
        padding-right: 2.4rem;
        /* room for button on the right */
        box-shadow: none;
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        position: relative;
        inset: 0;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        margin-left: .35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: rgba(255, 255, 255, .18);
    }

    /* burger square, same visual weight as search */
    .theme-nav .navbar-toggler {
        width: 44px;
        height: 40px;
        border-radius: 12px;
        border: 0;
        box-shadow: none !important;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .12);
    }

    /* the opened menu: centered, full width under the pill */
    .theme-nav {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .theme-nav .navbar-collapse {
        position: absolute;
        left: 12px;
        right: 12px;
        /* aligns with pill padding */
        top: calc(100% + .5rem);
        margin: 0;
        padding: .75rem .75rem 1rem;
        background: rgba(0, 0, 0, .28);
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, .12);
        backdrop-filter: blur(6px);
    }

    /* ensure it overlays content but stays below modals */
    .theme-nav .navbar-collapse.show {
        z-index: 1029;
    }

    /* menu items look tidy and centered */
    #mainNav .nav-link {
        padding: .6rem .9rem;
        border-radius: .5rem;
    }

    #mainNav .nav-link:hover {
        background: rgba(255, 255, 255, .08);
    }
}

/* =========================
   MOBILE-ONLY FINAL FIXES
   ========================= */
@media (max-width: 991.98px) {

    /* Search pill + icon INSIDE on the RIGHT */
    .theme-nav .nav-search-sm {
        position: relative !important;
        display: flex !important;
        align-items: center;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.10) !important;
        padding: 0 !important;
    }

    .theme-nav .nav-search-sm .form-control {
        width: 100% !important;
        height: 42px !important;
        border: 0 !important;
        background: transparent !important;
        color: #fff !important;
        border-radius: 999px !important;
        padding: 8px 44px 8px 14px !important;
        /* leave room for icon on RIGHT */
        box-shadow: none !important;
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        position: absolute !important;
        right: 6px !important;
        /* keep inside the input */
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.25) !important;
        color: #fff !important;
    }

    /* Opaque dropdown so text is always readable */
    #mainNav {
        background: rgba(30, 20, 60, 0.96) !important;
        /* opaque rich purple */
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 14px !important;
        padding: .5rem .8rem 1rem !important;
        margin-top: .5rem !important;
    }

    #mainNav .nav-link {
        color: #fff !important;
        font-size: 1.1rem !important;
        padding: .65rem 1rem !important;
        border-radius: 10px !important;
        text-align: left !important;
    }

    #mainNav .nav-link:hover {
        background: rgba(255, 255, 255, 0.12) !important;
    }
}


@media (max-width: 991.98px) {

    /* ✅ FINAL FIX — move search icon inside on the right */
    .theme-nav .nav-search-sm {
        position: relative;
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        position: absolute;
        right: 8px;
        /* keeps it fully inside */
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .theme-nav .nav-search-sm .form-control {
        padding-right: 44px;
        /* space for the icon */
    }
}

/* Move mobile search icon to the RIGHT inside the input */
@media (max-width: 991.98px) {
    .theme-nav .nav-search-sm {
        position: relative !important;
    }

    .theme-nav .nav-search-sm .form-control {
        padding-right: 52px !important;
        /* room for the icon on the right */
    }

    .theme-nav .nav-search-sm .btn.btn-search {
        position: absolute !important;
        right: 10px !important;
        /* ⬅ anchor to the right */
        left: auto !important;
        /* ⛔ cancel any left positioning */
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 2 !important;
    }
}


/* Staff quick edit modal */
.qty-group .form-control {
    max-width: 90px;
}

.qty-group .btn {
    width: 40px;
}

.modal .form-label {
    font-weight: 600;
}

.modal .input-group-text {
    min-width: 42px;
    justify-content: center;
}

/* Keep the edit button above images/overlays */
.card .btn.position-absolute {
    z-index: 3;
}

/* --- Modal always above everything --- */
.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1990 !important;
    background: rgba(18, 12, 46, 0.65) !important;
}

/* If you have a nav blur/curtain/overlay on mobile, kill it while a modal is open */
body.modal-open .nav-blur,
body.modal-open .nav-overlay,
body.modal-open .theme-nav .backdrop-blur,
body.modal-open .menu-backdrop,
body.modal-open .navbar-backdrop {
    display: none !important;
    pointer-events: none !important;
}

/* Make sure the modal itself receives clicks */
.modal-dialog,
.modal-content {
    pointer-events: auto;
}

/* Keep the navbar below the modal, but above page content */
.theme-nav {
    z-index: 1050;
    position: relative;
}


/* Modal must beat any nav overlay/blur/backdrop */
.modal {
    z-index: 5000 !important;
}

.modal-backdrop {
    z-index: 4990 !important;
    background: rgba(18, 12, 46, .65) !important;
}

/* When a Bootstrap modal is open, disable any site overlay/blur */
body.modal-open .nav-overlay,
body.modal-open .nav-blur,
body.modal-open .navbar-backdrop,
body.modal-open .menu-backdrop,
body.modal-open .menu-sheet,
body.modal-open .theme-nav .backdrop-blur,
body.modal-open .offcanvas-backdrop,
body.modal-open .mobile-nav-curtain {
    pointer-events: none !important;
    opacity: 0 !important;
    display: none !important;
}

/* Keep navbar below modal but above content */
.theme-nav {
    position: relative;
    z-index: 1200;
}

/* Modal must be the absolute top layer */
.modal {
    z-index: 5000 !important;
}

.modal-backdrop {
    z-index: 4990 !important;
    background: rgba(18, 12, 46, .65) !important;
}

/* Navbar / hero / offcanvas / any blur layers must be below the modal */
.theme-nav,
.hero,
.offcanvas,
.nav-overlay,
.menu-sheet,
.menu-backdrop,
#mobileNavBackdrop {
    z-index: 1100 !important;
}

/* If any page shows a custom overlay, kill it while a modal is open */
body.modal-open .nav-overlay,
body.modal-open .menu-backdrop,
body.modal-open .menu-sheet,
body.modal-open .mobile-nav-curtain {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
}


/* ----- PRICE DISPLAY STYLES ----- */
.price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
}

.new-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e53935;
    /* vivid red */
}

.old-price {
    font-size: 0.9rem;
    color: #888;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge {
    background: linear-gradient(90deg, #ff5252, #d32f2f);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


/* =========================
   Browse cards — MOBILE ONLY
   Keep text inside the white box, no overflow
   ========================= */
@media (max-width: 576px) {

    /* Ensure the whole card clips anything overflowing */
    .browse-card-container {
        overflow: hidden;
        /* clip child overflow */
        border-radius: 14px;
        /* keeps nice rounded corners */
    }

    /* Slightly more inner space and nudge content left */
    .browse-card-details {
        padding: 10px 10px 12px 12px !important;
        /* a touch more left padding */
    }

    /* Title: wrap safely, max 2 lines, never spill */
    .browse-card-details h5 {
        margin: 4px 0 6px !important;
        font-size: 0.98rem;
        /* tiny downsize on mobile */
        line-height: 1.18;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        /* clamp to 2 lines */
        overflow: hidden;
        /* hide overrun */
        text-overflow: ellipsis;
        white-space: normal;
        word-break: break-word;
        /* break long tokens */
        overflow-wrap: anywhere;
        /* hard wrap very long strings */
        hyphens: auto;
        /* graceful hyphenation */
    }

    /* Meta lines (Brand/Type/Condition/Set): wrap & stay inside */
    .browse-card-details p,
    .browse-card-details p.text-secondary {
        margin: 2px 0;
        font-size: 0.92rem;
        line-height: 1.25;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    /* Price row: prevent badges from pushing layout */
    .price-box,
    .price-box * {
        max-width: 100%;
        white-space: nowrap;
    }

    .price-box {
        display: flex;
        align-items: center;
        gap: .4rem;
        flex-wrap: wrap;
        /* allow badge to wrap under if needed */
    }

    /* Make sure strikethrough price can shrink */
    .old-price {
        opacity: .6;
        text-decoration: line-through;
    }

    /* Keep “In stock” line from wrapping awkwardly */
    .browse-card-details .text-success {
        font-size: 0.95rem;
        line-height: 1.2;
        white-space: normal;
    }

    /* Image can’t overflow horizontally */
    .browse-card-img img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}