/* DiyShirt : menu mobile (offcanvas) */
.diy-offcanvas.tpoffcanvas {
    background: linear-gradient(180deg, #2b1f6e 0%, #1a1245 100%) !important;
    padding: 0 0 40px;
    width: min(88vw, 380px);
    -webkit-overflow-scrolling: touch;
}

.diy-offcanvas__top {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #231859;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.diy-offcanvas__brand { color: #fff; font-weight: 700; font-size: 20px; }
.diy-offcanvas__brand img { max-height: 36px; width: auto; }
.diy-offcanvas .tpoffcanvas__close-btn { margin: 0; }
.diy-offcanvas .tpoffcanvas__close-btn button {
    position: static; top: auto; right: auto;
    width: 40px; height: 40px; line-height: 1; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.diy-offcanvas .tpoffcanvas__close-btn button i { font-size: 18px; line-height: 1; }
.diy-offcanvas .tpoffcanvas__close-btn button:hover { background: #cb1968; }

/* Raccourcis */
.diy-offcanvas__quick { display: flex; gap: 10px; padding: 16px 20px 4px; }
.diy-offcanvas__quick a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 8px; border-radius: 10px; font-size: 14px; font-weight: 600;
    color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.diy-offcanvas__quick a:last-child { background: #cb1968; border-color: #cb1968; }
.diy-offcanvas__quick a:active { opacity: .85; }

/* Sections */
.diy-offcanvas__section { padding: 18px 20px 0; }
.diy-offcanvas__title {
    margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: #b9aaff; font-weight: 600;
}

/* Listes (catégories + menu principal) */
.diy-offcanvas__cats ul,
.diy-offcanvas .tp-main-menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.diy-offcanvas .tp-main-menu-mobile { margin-bottom: 0; }

.diy-offcanvas__cats > ul > li,
.diy-offcanvas .tp-main-menu-mobile > nav > ul > li {
    position: relative;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
}
.diy-offcanvas__cats > ul > li > a,
.diy-offcanvas .tp-main-menu-mobile > nav > ul > li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; color: #fff; font-size: 17px; font-weight: 600;
    border: 0 !important; text-transform: none;
}

/* Bouton d'ouverture (chevron) */
.diy-offcanvas .diy-toggle {
    width: 32px; height: 32px; margin-left: 8px; flex: none;
    border: 0; border-radius: 50%; background: rgba(115, 92, 252, .45); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .25s ease, background .25s ease;
}
.diy-offcanvas li.diy-open > a .diy-toggle { transform: rotate(90deg); background: #cb1968; }
/* On masque le bouton ajouté par le JS du parent pour éviter les doublons */
.diy-offcanvas .tp-main-menu-mobile ul li.has-dropdown > a .dropdown-toggle-btn {
    position: static; transform: none; width: 32px; height: 32px; line-height: 30px;
    border: 0; border-radius: 50%; background: rgba(115, 92, 252, .45); color: #fff; flex: none;
}

/* Sous-catégories */
.diy-offcanvas__cats .tp-submenu {
    display: none;
    position: static; opacity: 1; visibility: visible; transform: none;
    background: rgba(0, 0, 0, .22); box-shadow: none; width: 100%; padding: 4px 0;
}
.diy-offcanvas__cats .tp-submenu li { margin: 0; }
.diy-offcanvas__cats .tp-submenu li a {
    display: block; padding: 11px 16px 11px 28px; color: #e4defe;
    font-size: 15px; font-weight: 500; border: 0;
}
.diy-offcanvas__cats .tp-submenu li a:active { background: rgba(115, 92, 252, .35); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .diy-offcanvas .diy-toggle { transition: none; }
}
