html, body {
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =========================================================
   COLOR SCHEME (from Change.docx)
   Background: #EDE5DA
   Secondary:  #D4C3AF
   Text:       #302820
   Highlight:  #927354
   ========================================================= */
:root {
    --cw-bg: #EDE5DA;
    --cw-secondary: #D4C3AF;
    --cw-text: #302820;
    --cw-highlight: #927354;
    --cw-highlight-dark: #7a5e44;
}

body {
    background: var(--cw-bg);
    color: var(--cw-text);
}

*, *::before, *::after {
    box-sizing: border-box;
}

a, .btn-link {
    color: var(--cw-highlight);
}

.btn-primary {
    color: #fff;
    background-color: #927354;
    border-color: #7a5e44;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #7a5e44;
    border-color: #634b37;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #EDE5DA, 0 0 0 0.25rem #927354;
}

/*.content {
    padding-top: 1.1rem;
}*/

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmb3c9ImhpZGRlbiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwMCI+PHJlY3QgeD0iMjM1IiB5PSI1MSIgd2lkdGg9IjU2IiBoZWlnaHQ9IjQ5Ii8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzNSAtNTEpIj48cGF0aCBkPSJNMjYzLjUwNiA1MUMyNjQuNzE3IDUxIDI2NS44MTMgNTEuNDgzNyAyNjYuNjA2IDUyLjI2NThMMjY3LjA1MiA1Mi43OTg3IDI2Ny41MzkgNTMuNjI4MyAyOTAuMTg1IDkyLjE4MzEgMjkwLjU0NSA5Mi43OTUgMjkwLjY1NiA5Mi45OTZDMjkwLjg3NyA5My41MTMgMjkxIDk0LjA4MTUgMjkxIDk0LjY3ODIgMjkxIDk3LjA2NTEgMjg5LjAzOCA5OSAyODYuNjE3IDk5TDI0MC4zODMgOTlDMjM3Ljk2MyA5OSAyMzYgOTcuMDY1MSAyMzYgOTQuNjc4MiAyMzYgOTQuMzc5OSAyMzYuMDMxIDk0LjA4ODYgMjM2LjA4OSA5My44MDcyTDIzNi4zMzggOTMuMDE2MiAyMzYuODU4IDkyLjEzMTQgMjU5LjQ3MyA1My42Mjk0IDI1OS45NjEgNTIuNzk4NSAyNjAuNDA3IDUyLjI2NThDMjYxLjIgNTEuNDgzNyAyNjIuMjk2IDUxIDI2My41MDYgNTFaTTI2My41ODYgNjYuMDE4M0MyNjAuNzM3IDY2LjAxODMgMjU5LjMxMyA2Ny4xMjQ1IDI1OS4zMTMgNjkuMzM3IDI1OS4zMTMgNjkuNjEwMiAyNTkuMzMyIDY5Ljg2MDggMjU5LjM3MSA3MC4wODg3TDI2MS43OTUgODQuMDE2MSAyNjUuMzggODQuMDE2MSAyNjcuODIxIDY5Ljc0NzVDMjY3Ljg2IDY5LjczMDkgMjY3Ljg3OSA2OS41ODc3IDI2Ny44NzkgNjkuMzE3OSAyNjcuODc5IDY3LjExODIgMjY2LjQ0OCA2Ni4wMTgzIDI2My41ODYgNjYuMDE4M1pNMjYzLjU3NiA4Ni4wNTQ3QzI2MS4wNDkgODYuMDU0NyAyNTkuNzg2IDg3LjMwMDUgMjU5Ljc4NiA4OS43OTIxIDI1OS43ODYgOTIuMjgzNyAyNjEuMDQ5IDkzLjUyOTUgMjYzLjU3NiA5My41Mjk1IDI2Ni4xMTYgOTMuNTI5NSAyNjcuMzg3IDkyLjI4MzcgMjY3LjM4NyA4OS43OTIxIDI2Ny4zODcgODcuMzAwNSAyNjYuMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRTUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.product-dialog .rz-dialog-titlebar {
    background-color: #927354 !important;
    padding-bottom: 20px !important;
}

.product-dialog .rz-dialog-title, .notranslate {
    color: white !important;
}

/* Category image dialog (Radzen override) */
.category-image-dialog .rz-dialog-titlebar {
    background-color: #927354 !important;
    padding: 14px 20px !important;
}

.category-image-dialog .rz-dialog-title {
    color: #EDE5DA !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 600 !important;
}

.category-image-dialog .rz-dialog-content {
    padding: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 860px) {
    .category-image-dialog {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .category-image-dialog .rz-dialog {
        width: 100% !important;
        height: 100% !important;
    }
}

/* =========================================================
   UNIFIED HEADER
   ========================================================= */
.site-header {
    background: #D4C3AF;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(48, 40, 32, 0.12);
}

.site-header-inner {
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #302820;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.site-logo:hover {
    opacity: 0.9;
}

.site-logo-img {
    height:77px !important;
    width: auto;
    object-fit: contain;
}

.site-insta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.site-insta:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
}

.site-insta svg {
    width: 15px;
    height: 15px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav-link {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #302820;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: #ffffff;
    background: #927354;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-search {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search-input {
    width: 200px;
    height: 34px;
    padding: 0 12px 0 34px;
    border: 1.5px solid rgba(146, 115, 84, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
    color: #302820;
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    transition: all 0.25s ease;
}

.site-search-input::placeholder {
    color: rgba(48, 40, 32, 0.45);
}

.site-search-input:focus {
    border-color: #927354;
    background: #EDE5DA;
    width: 260px;
}

.site-search-icon {
    position: absolute;
    left: 10px;
    color: #927354;
    pointer-events: none;
}

.site-admin-badge {
    padding: 4px 10px;
    background: rgba(146, 115, 84, 0.15);
    color: #927354;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
}

/* =========================================================
   UNIFIED FOOTER
   ========================================================= */
.site-footer {
    background: #302820;
    color: rgba(237, 229, 218, 0.75);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer-brand .site-logo {
    font-size: 1.1rem;
}

.site-footer-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(237, 229, 218, 0.55);
    margin: 0;
}

.site-footer-col h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #D4C3AF;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.site-footer-col a {
    display: block;
    font-size: 0.82rem;
    color: rgba(237, 229, 218, 0.55);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s;
}

.site-footer-col a:hover {
    color: #D4C3AF;
}

.site-footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(237, 229, 218, 0.12);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(237, 229, 218, 0.4);
}

/* =========================================================
   UNIFIED RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .site-header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 8px;
    }

    .site-header-left {
        order: 1;
        flex: 1;
        gap: 1rem;
    }

    .site-logo {
        flex: unset;
    }

    .site-logo-img {
        height: 32px;
    }

    .site-header-right {
        order: 2;
    }

    .site-nav {
        display: none;
    }

    .site-nav-link {
        width: 100%;
        padding: 10px 14px;
        border-radius: 8px;
    }

    .site-search-input {
        width: 140px;
    }

    .site-search-input:focus {
        width: 180px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0 1rem;
    }

    .site-search-input {
        width: 110px;
        font-size: 0.78rem;
    }

    .site-search-input:focus {
        width: 150px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-footer {
        padding: 2rem 1rem 1rem;
    }

    .site-search {
        display: none;
    }

    .site-nav-link {
        font-size: 1rem;
        padding: 12px 14px;
    }
}

/* =========================================================
   PRODUCT DETAILS PAGE (ProductDetails.razor)
   ========================================================= */
.pd-page {
    background: var(--cw-bg);
    min-height: 100vh;
    padding-bottom: 4rem;
}

.pd-loading-wrap,
.pd-empty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
}

.pd-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--cw-secondary);
    border-top-color: var(--cw-highlight);
    border-radius: 50%;
    animation: pd-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes pd-spin {
    to { transform: rotate(360deg); }
}

.pd-empty-icon {
    color: #bbb;
    margin-bottom: 1rem;
}

.pd-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--cw-text);
}

.pd-empty-sub {
    margin: 0 0 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.pd-floating-back {
    position: fixed;
    top: 90px;
    left: 1rem;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--cw-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.pd-floating-back:hover {
    border-color: var(--cw-highlight);
    transform: translateY(-2px);
}

.pd-floating-back svg {
    width: 18px;
    height: 18px;
    stroke: var(--cw-text);
}

.pd-card {
    max-width: 880px;
    margin: 1.5rem auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cw-secondary);
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Image section */
.pd-image-wrap {
    position: relative;
    background: var(--cw-secondary);
    aspect-ratio: 1;
}

.pd-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.pd-store-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    font-weight: 500;
}

.pd-img-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.pd-img-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--cw-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pd-img-zoom svg {
    width: 16px;
    height: 16px;
    stroke: #333;
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border-top: 1px solid var(--cw-secondary);
    overflow-x: auto;
}

.pd-thumb {
    width: 68px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pd-thumb:hover {
    border-color: var(--cw-highlight);
}

.pd-thumb.pd-thumb-active {
    border-color: var(--cw-highlight);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info section */
.pd-info {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cw-text);
    line-height: 1.3;
}

.pd-code {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.pd-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cw-text);
    margin: 0;
}

.pd-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--cw-text);
}

.pd-detail-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.pd-detail-label {
    font-weight: 600;
    color: var(--cw-highlight-dark);
}

.pd-detail-value {
    font-weight: 500;
}

.pd-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pd-feature {
    font-size: 0.85rem;
    color: #555;
    padding: 4px 10px;
    background: #f2efe9;
    border-radius: 20px;
    border: 1px solid var(--cw-secondary);
}

.pd-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--cw-secondary);
}

.pd-btn-chat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cw-highlight);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.pd-btn-chat:hover {
    background: var(--cw-highlight-dark);
    transform: translateY(-1px);
}

.pd-btn-chat svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

/* Lightbox */
.pd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pd-lb-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pd-lb-close:hover {
    background: rgba(255,255,255,0.3);
}

.pd-lb-close svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.pd-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pd-lb-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.pd-lb-arrow.pd-lb-prev { left: 2rem; }
.pd-lb-arrow.pd-lb-next { right: 2rem; }

.pd-lb-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.pd-lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.pd-lb-counter {
    position: absolute;
    bottom: 2rem;
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.5);
    padding: 4px 12px;
    border-radius: 20px;
}

/* =========================================================
   RESPONSIVE - PRODUCT DETAILS
   ========================================================= */
@media (min-width: 768px) {
    .pd-card {
        grid-template-columns: 1.1fr 1fr;
    }

    .pd-image-wrap {
        aspect-ratio: auto;
    }

    .pd-thumbs {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
        gap: 8px;
        border-top: none;
        border-right: 1px solid var(--cw-secondary);
    }

    .pd-info {
        padding: 2.5rem;
    }

    .pd-name {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .pd-floating-back {
        top: 80px;
        left: 0.75rem;
        width: 40px;
        height: 40px;
    }

    .pd-floating-back svg {
        width: 16px;
        height: 16px;
    }

    .pd-card {
        margin: 0.75rem;
        border-radius: 12px;
    }

    .pd-info {
        padding: 1.5rem;
    }

    .pd-name {
        font-size: 1.25rem;
    }

    .pd-price {
        font-size: 1.5rem;
    }
}

/* =========================================================
   ADMIN PRODUCT TABLE UPDATES
   ========================================================= */
.ap-category-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--cw-secondary);
    color: var(--cw-text);
    display: inline-block;
}

.ap-offer {
    font-size: 0.8rem;
}

.ap-offer-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cw-highlight-dark);
    background: rgba(146, 115, 84, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.ap-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.ap-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.ap-badge-new {
    background: #10b981;
    color: #fff;
}

.ap-badge-offer {
    background: var(--cw-highlight);
    color: #fff;
}

/* =========================================================
   PRODUCT FORM DIALOG - NEW FIELDS
   ========================================================= */
.pf-toggle-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cw-secondary);
}

.pf-toggle-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--cw-highlight);
}

.pf-checkbox-label {
    font-size: 0.9rem;
    color: var(--cw-text);
    cursor: pointer;
}

/* =========================================================
   HOMEPAGE WINTER BANNER (HomePage.razor)
   ========================================================= */
.cw-page .cw-winter-banner {
    margin-bottom: 0;
}

/* =========================================================
   WINTER OFFER BANNER
   ========================================================= */
.cw-winter-banner,
.mk-winter-banner {
    background: var(--cw-highlight);
    color: #fff;
    padding: 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cw-winter-banner-inner,
.mk-winter-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cw-winter-badge,
.mk-winter-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.cw-winter-title,
.mk-winter-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
}

.cw-winter-offer,
.mk-winter-offer {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 6px;
    color: #fff;
}

.cw-winter-sub,
.mk-winter-sub {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.95);
}

.cw-winter-btn,
.mk-winter-btn {
    background: #fff;
    color: var(--cw-text);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.cw-winter-btn:hover,
.mk-winter-btn:hover {
    background: var(--cw-secondary);
    color: var(--cw-text);
    transform: translateY(-1px);
}

.cw-winter-btn svg,
.mk-winter-btn svg {
    stroke: var(--cw-text);
}

/* =========================================================
   SHOP / CATALOGUE FILTERING (Home.razor)
   ========================================================= */
.mk-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mk-body {
    display: flex;
    flex: 1;
    padding: 0;
}

/* Filter sidebar (desktop) */
.mk-filter-sidebar {
    width: 320px;
    max-width: 28vw;
    flex-shrink: 0;
    padding: 1.5rem;
    background: #fff;
    border-right: 1px solid var(--cw-secondary);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    position: sticky;
    top: 0;
    box-sizing: border-box;
}

.mk-filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cw-secondary);
}

.mk-filter-sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cw-text);
}

.mk-filter-clear {
    background: none;
    border: 1px solid var(--cw-highlight);
    color: var(--cw-highlight);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mk-filter-clear:hover {
    background: var(--cw-highlight);
    color: #fff;
}

.mk-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mk-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mk-filter-group-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cw-text);
    margin-bottom: 0.25rem;
}

.mk-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.9rem;
}

.mk-filter-option:hover {
    background: var(--cw-secondary);
}

.mk-filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--cw-highlight);
    cursor: pointer;
}

.mk-option-label {
    flex: 1;
}

.mk-option-unavailable {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

.mk-filter-option.mk-option-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mk-filter-option.mk-option-disabled:hover {
    background: transparent;
}

/* Product area */
.mk-product-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Sort bar */
.mk-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cw-secondary);
    flex-wrap: wrap;
    gap: 1rem;
}

.mk-sort-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cw-text);
}

.mk-sort-select {
    padding: 6px 12px;
    border: 1px solid var(--cw-secondary);
    border-radius: 6px;
    background: #fff;
    color: var(--cw-text);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 200px;
}

.mk-sort-select:focus {
    outline: none;
    border-color: var(--cw-highlight);
}

.mk-result-count {
    font-size: 0.85rem;
    color: #666;
}

/* Product grid */
.mk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.mk-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cw-secondary);
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.mk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--cw-highlight);
}

.mk-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cw-secondary);
}

.mk-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mk-card:hover .mk-media img {
    transform: scale(1.05);
}

.mk-img-muted {
    opacity: 0.6;
    filter: grayscale(100%);
}

.mk-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.mk-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.mk-tag-new {
    background: #10b981;
    color: #fff;
}

.mk-tag-offer {
    background: var(--cw-highlight);
    color: #fff;
}

.mk-tag-out {
    background: #ef4444;
    color: #fff;
}

.mk-offer-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--cw-highlight);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.mk-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
}

.mk-favorite:hover {
    background: #fff;
    transform: scale(1.1);
}

.mk-favorite svg {
    width: 16px;
    height: 16px;
    stroke: #333;
}

.mk-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mk-brand {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cw-highlight);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.mk-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cw-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.mk-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.mk-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cw-text);
}

.mk-price-original {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
}

.mk-stock-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin-top: auto;
}

.mk-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.mk-stock-dot.mk-stock-in {
    background: #10b981;
}

.mk-stock-dot.mk-stock-out {
    background: #ef4444;
}

/* Empty state */
.mk-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.mk-empty-icon {
    color: #bbb;
    margin-bottom: 1rem;
}

.mk-empty div {
    font-size: 1rem;
    color: var(--cw-text);
    margin-bottom: 1rem;
}

.mk-btn-reset {
    background: var(--cw-highlight);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.mk-btn-reset:hover {
    background: var(--cw-highlight-dark);
}

/* Mobile filter trigger */
.mk-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--cw-secondary);
    border-radius: 6px;
    color: var(--cw-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mk-mobile-filter-btn:hover {
    border-color: var(--cw-highlight);
}

.mk-filter-count {
    background: var(--cw-highlight);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* Mobile filter panel */
.mk-mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    backdrop-filter: blur(2px);
}

.mk-mobile-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    overscroll-behavior: contain;
}

.mk-mobile-filter-panel.open {
    transform: translateX(0);
}

.mk-mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--cw-secondary);
}

.mk-mobile-filter-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cw-text);
}

.mk-mobile-filter-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--cw-text);
}

.mk-mobile-filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.mk-mobile-filter-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--cw-secondary);
    display: flex;
    gap: 0.75rem;
}

.mk-mobile-filter-clear {
    flex: 1;
    padding: 10px;
    background: none;
    border: 1px solid var(--cw-secondary);
    border-radius: 6px;
    color: var(--cw-text);
    font-weight: 500;
    cursor: pointer;
}

.mk-mobile-filter-clear:hover {
    border-color: var(--cw-highlight);
    color: var(--cw-highlight);
}

.mk-mobile-filter-apply {
    flex: 2;
    padding: 10px;
    background: var(--cw-highlight);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.mk-mobile-filter-apply:hover {
    background: var(--cw-highlight-dark);
}

/* =========================================================
   RESPONSIVE - SHOP PAGE
   ========================================================= */

/* Smaller desktops — narrow the sidebar */
@media (max-width: 1024px) {
    .mk-filter-sidebar {
        width: 260px;
    }
}

/* Tablets and mobile — hide desktop sidebar, show mobile filter button */
@media (max-width: 900px) {
    .mk-body {
        flex-direction: column;
    }

    /* Hide the desktop filter sidebar completely on mobile */
    .mk-filter-sidebar {
        display: none;
    }

    .mk-product-area {
        padding: 1rem;
    }

    .mk-mobile-filter-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        margin: 0.75rem;
    }
}

/* Phones — single column product grid */
@media (max-width: 640px) {
    .mk-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .mk-sort-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .mk-sort-select {
        min-width: auto;
    }

    .mk-product-area {
        padding-bottom: 2rem;
    }

    .mk-card .mk-info {
        padding: 0.85rem;
    }

    .mk-name {
        font-size: 0.9rem;
    }

    .mk-price {
        font-size: 0.95rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .mk-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mk-page {
        padding: 0;
    }

    .mk-product-area {
        padding: 0.75rem;
        padding-bottom: 2rem;
    }

    .mk-mobile-filter-btn {
        margin: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .mk-media {
        aspect-ratio: 1;
    }
}

/* =========================================================
   ADMIN PRODUCT TABLE UPDATES
   ========================================================= */
.ap-category-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--cw-secondary);
    color: var(--cw-text);
    display: inline-block;
}

.ap-offer {
    font-size: 0.8rem;
}

.ap-offer-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cw-highlight-dark);
    background: rgba(146, 115, 84, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.ap-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.ap-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.ap-badge-new {
    background: #10b981;
    color: #fff;
}

.ap-badge-offer {
    background: var(--cw-highlight);
    color: #fff;
}

/* =========================================================
   PRODUCT FORM DIALOG - NEW FIELDS
   ========================================================= */
.pf-toggle-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cw-secondary);
}

.pf-toggle-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--cw-highlight);
}

.pf-checkbox-label {
    font-size: 0.9rem;
    color: var(--cw-text);
    cursor: pointer;
}

/* =========================================================
   HOMEPAGE WINTER BANNER (HomePage.razor)
   ========================================================= */
.cw-page .cw-winter-banner {
    margin-bottom: 0;
}

/* =========================================================
   FILTER SECTION - RESPONSIVE
   ========================================================= */

/* Desktop: cap sidebar width on smaller screens */
@media (max-width: 1024px) {
    .mk-filter-sidebar {
        width: 260px;
        max-width: 30vw;
    }
}

/* Mobile filter drawer */
@media (max-width: 900px) {
    .mk-mobile-filter-panel {
        width: 100%;
        max-width: 100%;
        left: 0;
    }

    .mk-page.mk-filter-open {
        overflow: hidden;
        pointer-events: none;
    }

    .mk-page.mk-filter-open .mk-mobile-filter-panel,
    .mk-page.mk-filter-open .mk-mobile-filter-overlay {
        pointer-events: auto;
    }

    .mk-mobile-filter-header {
        padding: 1rem;
    }

    .mk-mobile-filter-header h3 {
        font-size: 1.15rem;
    }

    .mk-mobile-filter-body {
        padding: 1rem;
    }

    .mk-filter-option {
        padding: 10px 12px;
        font-size: 0.95rem;
        min-height: 48px; /* touch target */
    }

    .mk-filter-option input {
        width: 20px;
        height: 20px;
    }

    .mk-option-label {
        font-size: 0.95rem;
    }

    .mk-mobile-filter-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 8px;
    }

    .mk-mobile-filter-clear,
    .mk-mobile-filter-apply {
        width: 100%;
        text-align: center;
    }

    .mk-mobile-filter-btn {
        width: 100%;
        justify-content: center;
        margin: 0.75rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .mk-mobile-filter-panel {
        max-width: 100%;
    }

    .mk-filter-group-title {
        font-size: 0.85rem;
    }

    .mk-filter-option {
        padding: 8px 10px;
        font-size: 0.9rem;
        gap: 10px;
    }

    .mk-mobile-filter-header h3 {
        font-size: 1.1rem;
    }

    .mk-mobile-filter-footer {
        gap: 6px;
    }

    .mk-mobile-filter-clear,
    .mk-mobile-filter-apply {
        padding: 12px;
        font-size: 0.95rem;
    }
}
