/* Berry Menu - Global Styles */

:root {
    --bm-deepBlueberry: #1C2B48;
    --bm-blueberry: #303A63;
    --bm-berryPurple: #51417C;
    --bm-softPurple: #f2e9f2;
    --bm-sage: #71896B;
    --bm-softSage: #E8EFE5;
    --bm-honey: #F5C858;
    --bm-gray: #cbcbc7;
    --bm-charcoal: #202A3C;
    --bm-warmCream: #f9f5f1;
    --bm-white: #fff;
}

/* CSS Reset & Base */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bm-warmCream);
    color: var(--bm-charcoal);
}

body {
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
    color: var(--bm-deepBlueberry);
}

h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--bm-deepBlueberry);
}

h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.5rem, 2vm, 2rem);
    font-weight: 600;
    color: var(--bm-deepBlueberry);
}

h6{
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 500;
}

p {
    margin-top: 0;
    line-height: 1.6;
}

a {
    color: var(--bm-blueberry);
    text-decoration: none;
}

a:hover {
    color: var(--bm-charcoal);
}

/* Utility Classes */
.text-muted {
    color: #6b7280 !important;
}

.text-berry{
    color: var(--bm-deepBlueberry);
}

.text-berrypurple{
    color: var(--bm-berryPurple);
}

.text-sage {
    color: var(--bm-sage);
}

.text-gold {
    color: #B6841E;
}

.text-red {
    color: #D64545;
}

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

.no-bottom-border {
    border-bottom: 0px;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }

.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

/* Container */
.container-fluid {
    width: 100%;
    padding: 1.5rem;    
    margin-right: auto;
    margin-left: auto;
}

.container {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}


.bg-primary{
    background: var(--bm-deepBlueberry) !important;
    color: #fff !important;

}

.bg-secondary{
    background: var(--bm-sage) !important;
    color: var(--bm-charcoal) !important;
}

.bg-cream{
    background: var(--bm-warmCream) !important;
    color: var(--bm-blueberry) !important;
}
/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.alert-danger {
    color: #b91c1c;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.alert-success {
    color: var(--bm-deepBlueberry);
    background-color: var(--bm-softSage);
    border-color: var(--bm-sage);
}

.alert-warning {
    color: #a16207;
    background-color: #fffbeb;
    border-color: #fef3c7;
}

.alert-info {
    color: var(--bm-berryPurple);
    background-color: rgba(81, 65, 124, .06);
    border-color: var(--bm-berryPurple);
}

.alert-dismissible {
    position: relative;
    padding-right: 3rem;
}

.btn-close {    
    border: 0;
    font-size: .75rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 0.25rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.btn-close:hover {
    opacity: 0.75;
}

.btn-outline-secondary, .btn-outline-danger, .btn-outline-warning {
    border: 1px solid !important;
}

/* Forms */
.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 0.625rem, 0, 0.625rem, 1.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control.same-border:focus{
    border: var(--bs-border-width) solid var(--bs-border-color);
}

    .form-control::placeholder {
        color: #adb5bd;
        font-size: 0.875rem;
        opacity: 1;
    }

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    vertical-align: top;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--bm-berryPurple);
    border-color: var(--bm-berryPurple);
}

/* Validation */
.validation-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-errors {
    color: #dc2626;
    margin-bottom: 1rem;
}



.sticky-top {
    top: 1rem;
}

/* Cards */
.card {
    background-color: var(--bm-warmCream) !important;
    border: 1px solid #e6e2DA;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-header {
    padding: 0.75rem 1.25rem;    
    border-bottom: 1px solid #e5e7eb;
    border-radius: 1rem 1rem 0 0 !important;
}

.card-body {
    padding: 0.75rem;
}

.card-footer {
    padding: 0 1.25rem 1rem 1.25rem;
    background-color: #f9fafb;
    border: 0px;
    border-radius: 0 0 0.5rem 0.5rem;
}

.card-title {
    margin-bottom: .25rem;
    font-size: 1rem;
    font-weight: 600;
}

.card-text{
    padding: 0px;
    margin: 0px;
}

.recipe-card {
    /* Clip children to the card's inner radius so the image corners follow the
       border no matter how thick it is (1px normally, 2px when queued). */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    /* Let the card do the rounding; a fixed radius here leaves white slivers
       in the corners because the inner radius shrinks with the border width. */
    .recipe-card .card-img-top,
    .recipe-card .card-footer {
        border-radius: 0;
    }

    .recipe-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.recipe-card.is-queue {
    border: 2px solid var(--bm-berryPurple);
}

/* Says why a search result is a result, when the reason - an ingredient, or the description -
   appears nowhere else on the card. Used by both the recipe grid and the meal-plan picker,
   so it lives here rather than in mealplan.css. */
.recipe-match {
    margin-top: .25rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.card-img-top {
    border-bottom: 1px solid rgba(0,0,0,0.125);
    border-top-left-radius: 12px;
    border-top-right-radius:12px;
}

.search-tool {
    background-color: #ffffff !important;
    color: var(--bm-berryPurple);
    font-weight: 600;
}

.list-group-item{
    background-color: var(--bm-warmCream);
    color: var(--bm-blueberry);
}

/* Instructions list */

.instruction-list {
    counter-reset: section;
}

    .instruction-list .list-group-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 0 !important;
        background-color: transparent;
        border-color: rgba(15, 27, 51, .08);
        color: #303A63;
        line-height: 1.7;
    }


    /* Bootstrap-generated number */

    .instruction-list.list-group-numbered > .list-group-item::before {
        min-width: 32px;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        background-color: var(--bm-sage);
        color: #fff;
        border-radius: 50%;
        font-size: .85rem;
        font-weight: 700;
        flex-shrink: 0;
    }

    .list-group-numbered > .list-group-item::before {
        content: counters(section, ".");
    }

    /* First / last item spacing */

    .instruction-list .list-group-item:first-child {
        padding-top: .5rem !important;
    }

    .instruction-list .list-group-item:last-child {
        border-bottom: 0;
        padding-bottom: .5rem !important;
    }


.nutrition-icon {
    color: var(--bm-berryPurple);
}

.notes-icon {
    color: var(--bm-berryPurple);
}

.nutrition-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.nutrition-label {
    margin-top: .15rem;
    color: #5A6478;
    font-size: .78rem;
}



.recipe-notes {
    padding: 1.25rem;
    background-color: rgba(81, 65, 124, .06);
    border: 1px solid rgba(81, 65, 124, .14);
    border-radius: 12px;
}

.recipe-notes h2 {
    margin: 0 0 .35rem;
    color: var(--bm-deepBlueberry); 
    font-size: 1.3rem;
}

.recipe-notes p {
    color: #5A6478;
    font-size: .9rem;
}

/* min-width lets the textarea shrink instead of forcing the flex row wider. */
.recipe-notes-body {
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-notes-input {
    font-size: .875rem;
    resize: vertical;
}

/* =========================================
   Nutrition Heading
   ========================================= */

.nutrition-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nutrition-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #51417C;
    font-size: 1.3rem;
}

.nutrition-heading-content {
    display: flex;
    flex-direction: column;
}


.nutrition-heading-subtitle {
    margin-top: .15rem;
    color: #5A6478;
    font-family: "Inter", sans-serif;
    font-size: .8rem;
    font-weight: 400;
}
/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge.bg-primary { background-color: #4f46e5 !important; }
.badge.bg-secondary { background-color: #6b7280 !important; color: #FFF !important;}
.badge.bg-success { background-color: #10b981 !important; }
.badge.bg-danger { background-color: #ef4444 !important; }
.badge.bg-warning { background-color: #f59e0b !important; color: #1f2937 !important; }
.badge.bg-info { background-color: #3b82f6 !important; }
.badge.bg-sage {background-color: var(--bm-sage) !important; color:#FFF !important;}
.badge.bg-purpleberry-outline{background-color: transparent !important; color:var(--bm-berryPurple) !important; border:1px solid var(--bm-berryPurple)}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid,
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}


.user-menu-container {
    position: relative;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--bm-softSage);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color:#fff;
}

    .user-menu-button:hover {
        background-color: #f9fafb;
        border-color: #d1d5db;
    }

.user-avatar {
    font-size: 1.5rem;
    color: var(--bm-sage);
    line-height: 1;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    z-index: 1001;
}

.dropdown-header {
    padding: 0.75rem 1rem;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

    .dropdown-user-info strong {
        font-size: 0.95rem;
        color: #1f2937;
    }

    .dropdown-user-info small {
        font-size: 0.85rem;
    }

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 1rem;
    color: #4b5563;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .dropdown-item:hover {
        background-color: #f9fafb;
        color: #1f2937;
    }

.logout-item {
    color: #dc2626;
}

    .logout-item:hover {
        background-color: #fef2f2;
    }

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}

.btn-sm-long {
    padding: 0.2rem .75rem !important;
    font-size: .75rem !important;
    width: 15%
}

.btn-berry {

    background-color: var(--bm-deepBlueberry);
    border-color: var(--bm-deepBlueberry);
    color: #ffffff;
    
}

    .btn-berry:hover, .btn-berry:focus {
        background-color: #263A5D;
        border-color: var(--bm-deepBlueberry);
        color: #ffffff;
    }

.btn-sage {    
    color: #ffffff;
    background-color: var(--bm-sage);
    border-color: var(--bm-sage);
   
}

.btn-sage:hover, btn-sage:focus{
    background-color: #60765B;
    border-color: var(--bm-sage);
    color: #ffffff;
}

.btn-outline-sage{
    color: var(--bm-sage);
    border-color: var(--bm-sage);
    background-color: transparent;
}

.btn-outline-sage:hover, btn-outline-sage:focus{
    background-color: var(--bm-sage);
    color: #FFF;
    border-color: var(--bm-sage);
}

.btn-purpleberry {
    
    background-color: var(--bm-berryPurple);
    border-color: var(--bm-berryPurple);
    color: #ffffff;
}

.btn-purpleberry:hover, btn-purpleberry:focus{
    background-color: #433568;
    border-color: var(--bm-berryPurple);
    color:#ffffff;
}

.btn-outline-primary {  
    color: var(--bm-deepBlueberry);
    border-color: var(--bm-deepBlueberry);
    background-color: transparent;
}

    .btn-outline-primary:hover {
        background-color: var(--bm-blueberry);
        color: white;
        border-color: var(--bm-deepBlueberry);
    }


.btn-primary {
    background-color: var(--bm-deepBlueberry);
    color: white;
    border-color: var(--bm-deepBlueberry);
}

    .btn-primary:hover {
        background-color: #1C2B48;
        border-color: var(--bm-deepBlueberry);
    }

/* Bootstrap 5.3 drives every button state off CSS variables set on the variant class
   (--bs-btn-disabled-bg and friends, all #0d6efd), which its generic .btn:disabled and
   .btn:active rules read - and those outrank the plain .btn-primary rules above on
   specificity. So the rules above only hold for the resting state: the moment a button
   is disabled (nothing planned to shop for yet, or mid-save with the spinner up) or
   pressed, it flips to Bootstrap blue. Overriding the variables fixes every state. */
.btn-primary {
    --bs-btn-bg: var(--bm-deepBlueberry);
    --bs-btn-border-color: var(--bm-deepBlueberry);
    --bs-btn-hover-bg: #1C2B48;
    --bs-btn-hover-border-color: var(--bm-deepBlueberry);
    --bs-btn-active-bg: var(--bm-blueberry);
    --bs-btn-active-border-color: var(--bm-deepBlueberry);
    --bs-btn-disabled-bg: var(--bm-deepBlueberry);
    --bs-btn-disabled-border-color: var(--bm-deepBlueberry);
    --bs-btn-focus-shadow-rgb: 28, 43, 72;
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    opacity: .25;
}

.btn-outline-primary {
    --bs-btn-color: var(--bm-deepBlueberry);
    --bs-btn-border-color: var(--bm-deepBlueberry);
    --bs-btn-hover-bg: var(--bm-blueberry);
    --bs-btn-hover-border-color: var(--bm-deepBlueberry);
    --bs-btn-active-bg: var(--bm-blueberry);
    --bs-btn-active-border-color: var(--bm-deepBlueberry);
    --bs-btn-disabled-color: var(--bm-deepBlueberry);
    --bs-btn-focus-shadow-rgb: 28, 43, 72;
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }

    .user-menu-button {
        padding: 0.5rem;
    }

    .auth-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}


/*Pricing page*/
.pricing {
  display: grid;
  gap: 2rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  max-width: 1100px;
  margin: 0 auto;
  color: #111827;
}

/* Simple centered page heading used by pricing, blog and FAQ.
   Renamed off ".hero" so it stops overriding the brand hero in homepage.css. */
.simple-hero { text-align: center; }
.simple-hero h1 { margin: 0; font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.subtitle { color: #6b7280; margin-top: .5rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 12;
  border: 1px solid #e5e7eb;
  background: #fff; 
  position: relative;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
@media (min-width: 720px) { .card { grid-column: span 4; } }

.card.popular {
  border-color: #0b6efd;
  box-shadow: 0 6px 18px rgba(11,110,253,.12);
}

.card h2 { margin: .25rem 0 0 0; font-size: 1.25rem; }
.tagline { color: #6b7280; margin: .25rem 0 1rem 0; }

.price {
  display: flex; align-items: baseline; gap: .35rem; margin: .5rem 0 1rem 0;
}
.amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.per { color: #6b7280; }

.features {
  list-style: none; padding: 0; margin: 0 0 1.25rem 0; display: grid; gap: .5rem;
}
.features li { display: flex; gap: .5rem; }
.check {
  display: inline-block;
  width: 1.15rem; height: 1.15rem; line-height: 1.15rem;
  border-radius: 50%;
  border: 1px solid #0b6efd;
  color: #0b6efd;
  text-align: center; font-weight: 700; font-size: .75rem;
  margin-top: .1rem;
}

.cta {
  width: 100%;
  border: 0; border-radius: 10px;
  padding: .75rem 1rem; font-weight: 700; cursor: pointer;
  background: #0b6efd; color: #fff;
  transition: transform .03s ease, box-shadow .2s ease;
}
.cta:hover { box-shadow: 0 6px 16px rgba(11,110,253,.25); }
.cta:active { transform: translateY(1px); }

.fine-print { margin-top: .75rem; color: #6b7280; font-size: .85rem; }

.faq { margin-top: .5rem; }
.faq h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.faq details {
  border: 1px solid #e5e7eb; border-radius: 12px;
  padding: .75rem 1rem; margin-bottom: .5rem; background: #fafafa;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: #4b5563; margin: .5rem 0 0 0; }


/*FAQ Page*/

.faq-page {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

details {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  padding: 1rem 1.25rem;
  background: #fafafa;
  transition: background .2s ease;
}
details:hover {
  background: #f4f6f8;
}
summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05rem;
}
summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: .75rem;
  color: #4b5563;
  line-height: 1.6;
}


/* My Stores Page*/
.store-card {
    /* Positioning context for .store-favorite. */
    position: relative;
    transition: all 0.2s ease;
}

    .store-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    /* Favourites are purple everywhere on this page, so the saved border matches the heart
       rather than staying the old green. */
    .store-card.is-favorite {
        border-color: var(--bm-berryPurple);
    }

/* Favourite heart. Deliberately the same shape as .queue-bookmark in mealplan.css — 34px
   white disc, same .65rem offset, same shadow — so a saved store reads the same way as a
   bookmarked recipe. A button rather than that file's span, because this one toggles. */
.store-favorite {
    position: absolute;
    top: .65rem;
    right: .65rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background-color: #fff;
    border-radius: 50%;
    color: var(--bm-berryPurple);
    box-shadow: 0 2px 8px rgba(28, 43, 72, .15);
    transition: transform .15s ease, color .15s ease;
    z-index: 2;
}

    .store-favorite:hover:not(:disabled) {
        transform: scale(1.08);
    }

    /* Unsaved: grey outline heart. A grid of unsaved stores should not read as a wall of
       purple — the colour is what marks the ones actually saved. */
    .store-favorite.is-empty {
        color: #9AA1AE;
    }

        .store-favorite.is-empty:hover:not(:disabled) {
            color: var(--bm-berryPurple);
        }

    .store-favorite:disabled {
        opacity: .65;
    }

.store-logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

.store-logo-placeholder {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6c757d;
}

/* About Page*/
.about {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
    color: #111827;
}


.panel {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

    .panel h2 {
        margin: 0 0 .5rem 0;
        font-size: 1.3rem;
    }

    .panel p {
        color: #4b5563;
        line-height: 1.7;
    }

.bullets {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0 0;
    display: grid;
    gap: .4rem;
}

    .bullets li {
        display: flex;
        gap: .5rem;
        align-items: baseline;
    }

    .bullets span {
        display: inline-block;
        width: 1.1rem;
        height: 1.1rem;
        line-height: 1.1rem;
        text-align: center;
        border-radius: 50%;
        border: 1px solid #0b6efd;
        color: #0b6efd;
        font-size: .75rem;
        font-weight: 700;
    }

.steps {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.step {
    grid-column: span 12;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fafafa;
}

@media (min-width: 720px) {
    .step {
        grid-column: span 4;
    }
}

.num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0b6efd;
    color: #0b6efd;
    font-weight: 800;
    margin-bottom: .5rem;
}

.step h3 {
    margin: 0 0 .25rem 0;
    font-size: 1.05rem;
}

.step p {
    margin: 0;
    color: #4b5563;
}

.highlight {
    background: #f7fbff;
    border-color: #cfe4ff;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

    .grid-2 > div {
        grid-column: span 12;
    }

@media (min-width: 720px) {
    .grid-2 > div {
        grid-column: span 6;
    }
}

.grid-2 h4 {
    margin: .2rem 0 .25rem 0;
}

.grid-2 p {
    margin: 0;
    color: #4b5563;
}

.stats {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.stat {
    grid-column: span 12;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

@media (min-width: 720px) {
    .stat {
        grid-column: span 4;
    }
}

.big {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.label {
    color: #6b7280;
}

.cta {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin-top: .5rem;
    flex-wrap: wrap;
}

/*Blog*/
.blog {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
    color: #111827;
}


/* Post grid */
.posts {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.post {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .post:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,.05);
    }

@media (min-width: 720px) {
    .post {
        grid-column: span 4;
    }
}

.post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.content {
    padding: 1rem 1.25rem 1.25rem;
}

    .content h2 {
        font-size: 1.1rem;
        margin-bottom: .4rem;
    }

.meta {
    color: #9ca3af;
    font-size: .85rem;
    margin-bottom: .5rem;
}

.content p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
}



.blog-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: .95rem;
    color: #4b5563;
}

    .blog-footer a {
        color: #0b6efd;
        font-weight: 600;
        text-decoration: none;
    }

        .blog-footer a:hover {
            text-decoration: underline;
        }
        }


/*Term Page*/
.policy {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
    color: #111827;
    line-height: 1.7;
}

    .policy h1 {
        font-size: clamp(1.9rem, 3vw, 2.5rem);
        margin-bottom: 0.25rem;
    }

    .policy h2 {
        margin-top: 1.75rem;
        margin-bottom: 0.5rem;
        font-size: 1.25rem;
        color: #0b6efd;
    }

    .policy ul {
        margin: 0.5rem 0 1rem 1.25rem;
        list-style: disc;
    }

    .policy a {
        color: #0b6efd;
        text-decoration: none;
    }

        .policy a:hover {
            text-decoration: underline;
        }

    .policy .closing {
        margin-top: 2rem;
        font-weight: 500;
        color: #374151;
    }


/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }





/* =========================================
   Coming Soon placeholder (Components/ComingSoon.razor)
   Lives here rather than its own file because the component drops onto arbitrary
   pages: a component-level <HeadContent> link would replace the host page's own
   stylesheet link (HeadOutlet renders only the last-rendered HeadContent), and a
   new file linked from index.html needs a dev-server restart to be picked up.
   app.css is already linked everywhere, so the styles simply cannot go missing.
   ========================================= */

.coming-soon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(34rem, 76vh, 52rem);
    padding: 4.5rem 1.5rem;
    background-color: var(--bm-warmCream);
    background-image: url("../images/coming-soon-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* The art is busiest at the edges (bowls, notebook, linen), so the copy sits on a
   soft cream scrim that fades out toward the corners instead of a flat overlay. */
.coming-soon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient( ellipse at center, rgba(249, 245, 241, .94) 0%, rgba(249, 245, 241, .82) 42%, rgba(249, 245, 241, .28) 100% );
}

.coming-soon-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}

.coming-soon-ornament {
    display: block;
    width: 7.5rem;
    height: auto;
    margin: 0 auto 1.25rem;
}

.coming-soon-title {
    margin-bottom: 1.5rem;
    color: var(--bm-deepBlueberry);
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: .98;
}

.coming-soon-divider {
    width: 10rem;
    height: 1px;
    margin: 0 auto 1.75rem;
    background: linear-gradient( to right, rgba(113, 137, 107, 0), rgba(113, 137, 107, .55), rgba(113, 137, 107, 0) );
}

.coming-soon-lead {
    max-width: 34rem;
    margin: 0 auto 2.5rem;
    color: #5A6478;
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.coming-soon-eyebrow {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--bm-berryPurple);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Social row - the "be the first to know" call, in place of a second email form
   (the footer newsletter box is on every page and feeds the same list). */
.coming-soon-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 0;
}

.coming-soon-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(81, 65, 124, .3);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .72);
    color: var(--bm-berryPurple);
    font-size: 1.15rem;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

    .coming-soon-social-link:hover,
    .coming-soon-social-link:focus {
        border-color: var(--bm-berryPurple);
        background-color: var(--bm-berryPurple);
        color: var(--bm-white);
    }

/* Block, not flex, so the envelope stays with the first word when the line wraps. */
.coming-soon-note {
    margin: 2.25rem 0 0;
    color: #6b7280;
    font-size: .875rem;
}

    .coming-soon-note i {
        margin-right: .35rem;
    }

@media (max-width: 575.98px) {
    .coming-soon {
        min-height: 32rem;
        padding: 3rem 1.25rem;
        /* Keeps the notebook/bowls out of the copy at narrow widths. */
        background-position: 62% center;
    }

    .coming-soon-ornament {
        width: 6rem;
    }
}
