@font-face {
  font-family: 'Dancing Script';
  src: url('DancingScript-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900; /* variable font từ mảnh 100 → 900 */
  font-style: normal;
  font-display: swap;
}


#flipbook {
z-index:9;}

@media only screen and (max-width:600px) {
.zoom-btn {
display:none;
}}


.catalog-flipbook-container {
    flex: 1;
    position: relative;
}

/* Nút toggle tròn */
.toggle-sidebar {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e293b;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* vừa đủ, không đè sidebar */
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 99;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Offcanvas */
.offcanvas {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.offcanvas.active {
    left: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
}

.offcanvas-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-body li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    cursor: pointer;
}