﻿/* ============================================================
   Product Sidebar — unified single-card design
   ============================================================ */

.vsb-sidebar {
    padding: 0;
    margin: 0;
    margin-top: 1rem;
}

.vsb-sidebar__sticky {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Single card ── */
.vsb-card {
    background: var(--product-sidebar-bg, rgba(255, 255, 255, 0.35));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 90, 99, 0.18);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(200, 90, 99, 0.10);
    overflow: hidden;
}

/* ── Card header ── */
.vsb-card__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--product-sidebar-bg, rgba(255, 255, 255, 0.35));
    color: var(--product-sidebar-color, var(--color-primary, #3d1d04));
}
.vsb-card__header i { font-size: 1rem; }
.vsb-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--product-sidebar-color, var(--color-primary, #3d1d04));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vsb-card__body { padding: 0.5rem 0.4rem; }

/* ── Section divider ── */
.vsb-section-divider {
    height: 1px;
    background: rgba(200, 90, 99, 0.15);
    margin: 0 0.75rem;
}

/* ── Extra sections (social / contact) ── */
.vsb-extra-section {
    padding: 0.6rem 0.75rem 0.5rem;
}
.vsb-extra-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #E68A8F;
    margin-bottom: 0.45rem;
}

/* ── Categories list ── */
.vsb-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vsb-cat-item + .vsb-cat-item {
    border-top: 1px solid rgba(200, 90, 99, 0.08);
}
.vsb-cat-row {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    min-height: 44px;
}
.vsb-cat-link {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    color: var(--product-sidebar-color, var(--color-primary, #3d1d04));
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.vsb-cat-link:focus:not(:focus-visible) { background: transparent; outline: none; }
.vsb-cat-link:hover,
.vsb-cat-link:focus-visible {
    background: var(--product-sidebar-hover-bg, rgba(200, 90, 99, 0.08));
    color: var(--product-sidebar-color, var(--color-primary, #7e4414));
    outline: none;
}
.vsb-cat-link.is-active {
    background: var(--product-sidebar-hover-bg, rgba(200, 90, 99, 0.08));
    color: var(--product-sidebar-color, var(--color-primary, #7e4414));
}
.vsb-cat-link.is-active:hover { background: rgba(200, 90, 99, 0.12); color: var(--color-primary-700, #7e4414); }
.vsb-cat-name { flex: 1; min-width: 0; word-break: break-word; }
.vsb-cat-count {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(200, 90, 99, 0.10);
    color: var(--color-primary, #3d1d04);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}
.vsb-cat-link.is-active .vsb-cat-count {
    background: rgba(107, 58, 42, 0.15);
    color: #6B3A2A;
}

/* ── Toggle button ── */
.vsb-cat-toggle {
    flex: 0 0 38px;
    width: 38px;
    background: transparent;
    border: 0;
    padding: 0;
    color: #3d1d04;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s, transform 0.2s;
}
.vsb-cat-toggle:hover { background: rgba(200, 90, 99, 0.12); }
.vsb-cat-toggle i { transition: transform 0.25s ease; }
.vsb-cat-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* ── Subcategory list ── */
.vsb-subcat-list {
    list-style: none;
    margin: 0 0 0.25rem 1rem;
    padding: 0.25rem 0 0.5rem 1.25rem;
    border-left: 2px solid rgba(200, 90, 99, 0.25);
}
.vsb-subcat-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    color: var(--product-sidebar-color, var(--color-primary, #3d1d04));
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.vsb-subcat-link::before {
    content: "›";
    margin-right: 4px;
    color: var(--product-sidebar-color, var(--color-primary, #3d1d04));
    font-weight: 700;
}
.vsb-subcat-link:focus:not(:focus-visible) { background: transparent; outline: none; }
.vsb-subcat-link:hover,
.vsb-subcat-link:focus-visible {
    background: var(--product-sidebar-hover-bg, rgba(200, 90, 99, 0.08));
    color: var(--product-sidebar-color, var(--color-primary, #7e4414));
    outline: none;
}
.vsb-subcat-link:hover::before,
.vsb-subcat-link:focus-visible::before { color: var(--product-sidebar-color, var(--color-primary, #7e4414)); }
.vsb-subcat-link.is-active {
    background: var(--product-sidebar-hover-bg, rgba(200, 90, 99, 0.08));
    color: var(--product-sidebar-color, var(--color-primary, #7e4414));
}
.vsb-subcat-link.is-active::before { color: var(--product-sidebar-color, var(--color-primary, #7e4414)); }

/* ── Back link ── */
.vsb-back-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary, #3d1d04);
    gap: 0.5rem;
}
.vsb-back-link i { font-size: 0.8rem; flex: 0 0 auto; }
.vsb-back-link:hover,
.vsb-back-link:focus-visible {
    background: rgba(200, 90, 99, 0.08);
    color: var(--color-primary-700, #7e4414);
}

/* ── Social ── */
.vsb-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.vsb-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(200, 90, 99, 0.12);
    color: var(--product-sidebar-color, #E68A8F);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    font-size: 0.95rem;
    border: 1px solid rgba(200, 90, 99, 0.25);
}
.vsb-social-btn:hover {
    background: var(--product-sidebar-hover-bg, #E68A8F);
    color: #fff;
    transform: translateY(-2px);
    border-color: var(--product-sidebar-hover-bg, #E68A8F);
}

/* ── Contact list ── */
.vsb-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vsb-contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.5rem;
    color: #3d1d04;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    word-break: break-word;
}
.vsb-contact-item i {
    font-size: 1rem;
    color: #E68A8F;
    width: 20px;
    text-align: center;
    flex: 0 0 20px;
}
.vsb-contact-item img { flex: 0 0 22px; }
.vsb-contact-wa { color: #25D366 !important; font-size: 1.2rem !important; }
.vsb-contact-item:focus,
.vsb-contact-item:focus:not(:focus-visible) { background: transparent; outline: none; }
.vsb-contact-item:hover {
    background: rgba(200, 90, 99, 0.08);
    color: var(--color-primary-700, #7e4414);
}
.vsb-contact-list li + li { border-top: 1px solid rgba(200, 90, 99, 0.06); }

/* ── Mobile FAB ── */
.vsb-mobile-fab {
    position: fixed;
    top: 50%;
    right: -1px;
    transform: translateY(-50%);
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.8rem;
    background: linear-gradient(180deg, #E68A8F, #a0404a);
    color: #fff;
    border: 0;
    border-radius: 8px 0 0 8px;
    box-shadow: -3px 0 10px rgba(200, 90, 99, 0.30);
    cursor: pointer;
    transition: width 0.2s ease, box-shadow 0.2s;
}
.vsb-mobile-fab:hover,
.vsb-mobile-fab:focus {
    width: 2.6rem;
    box-shadow: -4px 0 14px rgba(200, 90, 99, 0.45);
    outline: none;
}
.vsb-mobile-fab i { font-size: 1rem; }

/* ── Mobile offcanvas ── */
.vsb-offcanvas {
    background: #fff8f8;
    width: min(85vw, 380px) !important;
}
.vsb-offcanvas .offcanvas-header {
    background: #ffffff;
    color: #6B3A2A;
    border-bottom: 1px solid rgba(200, 90, 99, 0.15);
}
.vsb-offcanvas .offcanvas-title { color: #6B3A2A !important; }
.vsb-offcanvas .btn-close { filter: none; }
.vsb-offcanvas .offcanvas-body { padding: 1rem; }

/* ── Responsive ── */

@media (max-width: 1199.98px) {
    .vsb-sidebar__sticky { top: 140px; }
}

@media (max-width: 991.98px) {
    /* Το offcanvas ξεκινά κάτω από το σταθερό header (100px) ώστε το περιεχόμενο να είναι ορατό */
    .vsb-offcanvas {
        top: 100px !important;
        height: calc(100% - 100px) !important;
    }
    .vsb-sidebar__sticky { top: 120px; }
    .vsb-card__header { padding: 0.6rem 0.7rem; gap: 0.4rem; }
    .vsb-card__title { font-size: 0.82rem; letter-spacing: 0.3px; }
    .vsb-card__body { padding: 0.35rem 0.25rem; }
    .vsb-cat-link { font-size: 0.82rem; padding: 0.5rem 0.55rem; gap: 0.35rem; }
    .vsb-cat-name { overflow-wrap: anywhere; word-break: normal; hyphens: auto; line-height: 1.25; }
    .vsb-cat-count { font-size: 0.7rem; padding: 1px 6px; min-width: 22px; }
    .vsb-cat-toggle { flex: 0 0 30px; width: 30px; }
    .vsb-subcat-list { padding-left: 0.6rem; margin-left: 0.5rem; }
    .vsb-subcat-link { font-size: 0.85rem; padding: 0.35rem 0.4rem; }
    .vsb-social-row { gap: 0.3rem; }
    .vsb-social-btn { width: 34px; height: 34px; font-size: 0.85rem; }
    .vsb-contact-item { font-size: 0.78rem; padding: 0.45rem 0.35rem; gap: 0.4rem; word-break: break-all; }
    .vsb-extra-section { padding: 0.5rem 0.5rem 0.4rem; }
}

@media (max-width: 767.98px) {
    .vsb-sidebar { display: none !important; }
}

@media (max-width: 575.98px) {
    .vsb-mobile-fab { width: 2rem; height: 2.5rem; }
}

/* ── Print ── */
@media print {
    .vsb-mobile-fab, .vsb-offcanvas { display: none !important; }
    .vsb-sidebar__sticky { position: static; }
}

/* ── Layout helpers ── */
.bgrnd-sidebar-mobile {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.808) 99%, rgba(255, 255, 255, 0.87) 100%);
}

@media (min-width: 768px) {
    .product-layout-row { justify-content: center; }
}
